Code to trigger action once progress bar finishes or window disappears

Hi all,
I'm somewhat new to Xcode and I was wondering if anyone knew if it was possible to create an application that interacts with another running application in the form of performing a task once a progress bar completes in the second app. or a window disappears.
thank you,
Kyle

Your code snippet doesn't show any progress bar.
Anyway, if the one works in the one browser and not in the other browser, then this is definitely a problem with a client side language and NOT with a server side language such as Java/JSP.
Doublecheck the cross browser compatibility of your HTML, CSS and Javascript code.

Similar Messages

  • How Do You Display The Rendering Progress Bar In The Windows Dock?

    Is there a preference/setting in Windows that allows you to display a rendering progress bar on the the app icon in the dock for AE the way Premiere does?

    No.
    Mylenium

  • [SOLVED] Trigger action once port is up

    Hi,
    On my computer I have two programs installed that start as systemctl services after the other. The first program is oracle-xe, a non free DBMS which I have installed from AUR. The second program is TOPdesk, a professional service management tool which is not publicly available. TOPdesk depends on oracle-xe; it connects to the oracle-database via port 1521. The problem is that TOPdesk often fails to start because the "systemctl start oracle-xe" commands ends before the functionality of oracle-xe is available. In particular port 1521 is not up yet when the TOPdesk service is started.
    I want to solve this problem with a recursive bash script, which basically stops TOPdesk from starting until port 1521 is up. I then call this script from within the systemctl service, either in the oracle-xe.service after the oracle command, or in the TOPdesk service before the TOPdesk command.
    /usr/bin/port1521check.sh file
    #!/bin/sh
    # this is a recursive bash script
    if [ CHECK-IF-PORT-1521-IS-UP ]; then
    echo oracle-xe is up
    else
    sleep 1
    echo waiting for oracle-xe
    /usr/bin/port1521check.sh
    fi
    The exact issue here is the CHECK-IF-PORT-1521-IS-UP in the script above. How should this be solved?
    These are the two systemctl files that are called. Note the commented line that refers to the script /usr/bin/port1521check.sh
    oracle-xe.service file
    [Unit]
    Description=Oracle XE
    [Service]
    Type=oneshot
    ExecStart=/etc/rc.d/oracle-xe start
    #ExecStart=/usr/bin/port1521check.sh
    ExecStop=/etc/rc.d/oracle-xe stop
    RemainAfterExit=yes
    [Install]
    WantedBy=multi-user.target
    topdesk54.service file
    [Unit]
    Description=TOPdesk 5.4SP1
    Requires=oracle-xe.service
    After=oracle-xe.service
    [Service]
    Type=forking
    PIDFile=/opt/topdesk54/TOPdesk.pid
    ExecStart=
    #ExecStart=/usr/bin/port1521check.sh
    ExecStart=/opt/topdesk54/topdesk start defaults
    ExecStop=/opt/topdesk54/topdesk stop
    RemainAfterExit=yes
    [Install]
    WantedBy=multi-user.target
    Firstly, do you think I am I on the right track with this approach? Secondly, what command or script can I use to actually make this script see that port 1521 is up? Is it possible to use nmap output of a scan of localhost? Google has not been very helpful with this issue.
    Many thanks in advance!
    Last edited by anadyr (2015-05-14 07:14:27)

    Only type=oneshot can have multiple ExecStart= lines, so you cannot call port1521check.sh from topdesk54.service in this manner. I would probably write a wrapper script for topdesk54 that waits for the port then exec's it. You can use nc -z to test a port. Also the env has been sanitized so you may not have a PATH. Also, tail recursion is wierd. So, something like:
    #!/usr/bin/bash
    until /usr/bin/nc -z -w1 localhost 1521 ; do
    echo waiting for oracle-xe
    /usr/bin/sleep 1
    done
    echo oracle-xe is up
    exec /opt/topdesk54/topdesk "$@"

  • I've downloaded movies to my itunes but once they are finished they completely disappear. Also today I opened my itunes and over half of my music and movies that actually show up are gone. Can anyone give me some advice on this problem?

    I have downloaded movies through itunes until the latest version came out. Now the movies will download and then disappear. Everything is up to date so I'm not sure what is wrong. Also I opened my itunes today and over half of my music is missing along with several of the movies that do play. Luckily I have all my music saved, but the movies are completely gone. Does anyone have some ideas that could help me?

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • Problem with the progress bar in swings

    Hi all,
    I need to show a progress bar till another window opens up in swings.Below is the code i used to show the progress bar.My problem is i am able to get the dialog box where i have set the progress bar but i cldnt get the progress bar.But after the specified delay,another window gets loaded.
    Plz tell me how to show a progress bar till another window loads.Any help is greatly appreciated :-)
                    //Show the progress bar till the AJScreens loads.
                    // Create a dialog that will display the progress.
                    final JDialog dlg = new JDialog(this, "Progress Dialog", true);
                    JProgressBar dpb = new JProgressBar();
                    dpb.setVisible(true);
                    dpb.setStringPainted(true);
                    dpb.setBounds(70,60,150,10);
                    dlg.getContentPane().setLayout(new BorderLayout());
                    dlg.getContentPane().add(BorderLayout.CENTER, dpb);
                    dlg.getContentPane().add(BorderLayout.NORTH, new JLabel("Progress..."));
                    dlg.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
                    dlg.setSize(300, 75);
                    dlg.setLocationRelativeTo(this);
                    // Create a new thread and call show within the thread.
                    Thread t = new Thread(new Runnable(){
                        public void run() {
    System.out.println("atleast comes here --->");
                            dlg.show();
                    // Start the thread so that the dialog will show.
    System.out.println("Gonna start the thread --> ");
                    t.start();
    System.out.println("Thread started --> ");
                    // Perform computation. Since the modal dialogs show() was called in
                    // a thread, the main thread is not blocked. We can continue with computation
                    // in the main thread.
                    for(int i =0; i<=100; i++) {
                        // Set the value that the dialog will display on the progressbar.
    System.out.println("i ----------> "+i);
                        dpb.setVisible(true);
                        dpb.setValue(i);
                        try {
                            Thread.sleep(25);
                        } catch (InterruptedException e) {
                            e.printStackTrace();
                    // Finished computation. Now hide the dialog. This will also stop the
                    // thread since the "run" method will return.
                    dlg.hide();regards,
    kani.

    Yeah i have tried that also.But no hope.
    My problem is am able to get the dialog box but not the progressbar,after the specified delay the dialog box goess off and the new window loads up.
    the progress bar is not getting displayed..that is my problem..
    can u plz help me out.

  • IMac won't boot up. Instead I get a progress bar.

    I turned my iMac on today and noticed a gray progress bar under the apple logo as it was booting up. Once the bar finished filling up, my computer turned itself off. I've tried booting it up multiple times but it does the same thing. I've also tried holding Shift as it booted up but it never really did anything. The only reason I can type this out right now is because I can still boot into Windows thanks to Bootcamp.
    I know there was a really quick power outage this morning so I'm not sure if that had anything to do with this.
    Thanks!

    I strongly suggest a trip to an Apple repair station, given you had a power outage.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • Boot continues to fail - gray screen apple logo progress bar...

    I have a mid-2012 MBP.  I upgraded to Yosemite.  Things were working well.  Laptop wasn't used for a week - sleep mode was in use and battery drained.  Upon boot-up, progress bar took longer than usual, and after 15 minutes or so it inched its way to the halfway point and finally got to my desktop.  Sleep mode is great and I kept the battery charged and didn't let it drain.  I needed to do a restart from some updates, but restarting took forever again.  I booted off my usb3 yosemite installer and ran disk utility to repair permissions and repair disk.  Both found problems and the repair to the disk said I needed to backup any files and start over. 
    So I got a smaller SSD and installed Yosemite on there, and did a migration to the new SSD.  Everything seemed great and snappy for a few days, but once again, after using it in sleep mode for those few days, now it takes forever to start up.  I rarely ever restart the Mac, it's awesome.  But, the SSD was too small for all my iTunes backups and apps - so I got a 512GB SSD and decided to start over.  Once again I installed 10.10 and migrated my data, this time from my time machine backup (few days old).  It worked well for one day.  ONE DAY.  And then it wouldn't even boot.  It was slow once, then the next time the stupid progress bar makes it 1/3rd of the way and just quits there.  Disk utility finds no errors now, but it won't boot up.
    The screen dims, the cursor appears, but the screen with the progress bar remains for about an hour until it brings up a screen full of text stating startup wasn't successful in a dozen languages and then it reboots.  Over and over it goes.
    When I boot off the usb install, the same progress happens, 1/3rd of the progress bar fills, screen dims, cursor appears, but eventually it turns into the spinning rainbow and the progress bar finishes.  I never make it to the rainbow part.
    I have reset PRAM as well... Tried different Apple certified RAM.  Not sure what steps to do next, so I'm reinstalling Yosemite as I type this.
    The 512GB SSD and the smaller SSD were both used in windows machines for at least 6 months prior to use in the Mac, so I'm positive they are good drives.  Now I'm not sure if my original HD was even defective or not.  Does anyone have any suggestions of things to try or what the problem might be?  TIA.

    If you can't start up and log in in the usual way, try in safe mode.
    During startup, you’ll see a progress bar, and then the login screen, which appears even if you normally log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Log in as an administrator to carry out these instructions. If you have only one account, you are the administrator.
    ☞ If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    Safe mode is slower than normal, and some things won’t work at all.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t start in safe mode.
    If you're able to log in, launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.

  • Safari 4.0 progress bar and Top Sites bugs (?)

    Hi there,
    I am having a problem with my Safari 4 and been searching for a fix since a few days but could not find a solution, so I hope there is someone who can help me out.
    There are basically two problems, I have with Safari.
    The first one is, that since Safari 4.0 there is a new kind of a "progress bar" which changes its color and is actually at first dark and then gets more light while loading a page. My progress bar is not chaning colors at all. It just stays dark all the time.
    And the second one, is that if you have a site on you "Top Sites" and click that, it fades in, so it comes nearer and gets larger until it fits the window. So, if you go back from that site to you "Top Sites" again, it actually should fade out and move back to its old position on the "Top Sites". And again, my Safari does not do that either.
    I don't know, if that is improtant or not, but I played around with the Safari 4 beta tweaks and changed the progress bar so I have the blue one in the background of my adress bar.
    I already tried to restore my old Safari from my Programs folder with Time Machine and installed the 4.0 again but still, it does not work for me.
    I know that these are not somehow critical bugs but it would be great, if Safari would just work, as it actually should.
    So, is there a way to fix that or reset Safari?
    Thank you in advance!

    Hi
    Latest v of Glims (17) is Safari 4 compatible. Cooliris is functional, although a soon to be released upgrade will correct certain S4 related bugs. Tab Expose is not S4 compatible.
    There is no blue progress bar in Safari 4. In S4 Beta, Terminal code was used to bring that S3 feature back, however, S4 final has removed the related code. Hence, no blue progress bar. Instead, there's a spinning gear to the right of the Address Bar indicating the page is loading.
    Let Apple hear your sentiments about S4. Send feedback to Apple via the Safari Menu>Report bugs to Apple.

  • Computer starts but doesn'tt go past progress bar

    As the title says. Heres the story: the day before it broke, i was watching the simspons for several days. No internet activity whatsoever. After shutting down simpsons, computer died. Then couple days after it died, i replugged it and worked just fine. I thought i would shut it completely down to kind of refresh everything and on reboot was that creepy white screen with progress bar. Once progress bar is done it shuts off. Doesnt go past.
    When i start+option key, I was able to get the disk utility. Scan says all files are ok. Then i went to re-install mavericks.
    Cant re-install is says my hard drive is locked.
    The guy on the phone mentioned a hard drive failure.
    Im a noob with macs i dont know sh-t.
    I want to know alternatives to getting a costly diagnostic+semi costly new hard drive.

    I believe it is enabled. Now it says rhis when i try to repair the 500gb Toshiba thing:
    "The partition map needs to he repaired because there's a problem with the EFI system partition's file system"
    What is efi or a partition map?

  • Mac displays spinning wheel and progress bar at startup.

    Ok, here's the story:
    My account password wasn't being recognized. Since I couldn't access my desktop, I tried the resetpassword command in terminal (in OS X Utilities through Command + R) but it didn't work. I restarted my Mac and it displayed a progress bar and spinning wheel. When the progress bar finished, the spinning wheel kept spinning and it wouldn't stop. Each time I boot the Mac, it does it again. I tried doing repair disk using disk utility (through OS X Utilities) but it said that it couldn't be be fixed. I even tried resetting the PRAM.
    I want to know if it's possible to recover my files through OS X Utilities... i'm really frustrated because it's the second time i've lost my files.

    Try to boot up into safe mode, see if that does anything for you.
    - Holden

  • Progress Bar before page loads......

    Hello -
    I'm able to make progress bars for loading images on the
    screen, but I'm having a hard time figuring out how to make one
    appear before the entire page loads. Do use the Loader component as
    the entire page and have my flash file load into it? I'm pretty
    sure there is an easier way by using actionscript, but my coding
    skills are average........
    Any help or suggestions on this would be greatly appreciated.
    I did do a search on this subject and found a few hints, but not
    everything.
    Thanks again.

    I tried this coding and for some reason I didn't see the
    progress bar before the page loaded. I'm assuming it has something
    to do with the "visible=0" line. I messed around with that, and
    still had no luck. See if I overlooked a small detail. Thanks
    Kglad.
    That url (in the code) will work if you want to try it.
    loadMovieNum("
    http://www.trance-state.com/equipment.swf",2);
    preloadI=setInterval(preloadF,100);
    function preloadF(){
    bl=_level2.getBytesLoaded();
    bt=_level2.getBytesTotal();
    if(bl==bt&&bl>0){
    clearInterval(preloadI);
    _level0._visible=0;
    } else {
    // put code here to update your progress bar and anything
    else you want using bl and bt
    }

  • Progress Bar doesn't look correct in Windows 7

    I use a progress bar control and set ATTR_USE_PROGESS_BAR_VISUAL_STYLES attribute. It works perfect in Windows XP. The progress bar looks identical to Windows ones. Though now check how it looks in Windows 7. No matter either aero windows style is on or off, the progress bar looks very strange. It does not fill smoothly and fill not the whole control - the edges are left unfilled.
    I have attached the screenshot.
    Any ideas what do I do wrong?
    Solved!
    Go to Solution.

    I use VAL_PROGRESSBAR_MANUAL_MODE and call ProgressBar_Start (for any case).
    I call the updating routine manually and call ProgressBar_SetPercentage function.
    After calling it I call ProcessSystemEvents and ProcessDrawEvents (for any case).
    It does not matter either another control is shown over it ot it's own label is being placed over the progress bar. In both cases it is drawn incorrect.
    I noticed that it try to draw progress bar not a Windows 7 style (one filled green bar) but Windows XP (separated green bars) sometime. So perhaps there is a problem with progress bar drawing routine (just a speculation).
    I use CVI 2009 without SP1 (and I did not find a note about fixing something similar in SP1).
    As for the outline around the green portion of the progress bar. I do not mind, I just wanted to know if I do something wrong.
    Thanks for reply.

  • Youtube progress bar keeps flashing

    I don't think this is a FF problem because it also happens when I use IE 10 but I always get better help here than Youtube or IE.
    When I am watching a video at Youtube the progress bar keeps appearing and disappearing every few seconds as if you moved the mouse. I tried moving the mouse to an area off the screen and turning it off (the mouse, it's a Microsoft 3500 wireless) but that made no difference, it just keeps appearing and disappearing every few seconds.
    It does exactly the same thing if I use IE10 so I don't think it's a FF add-on or app. I never use IE10 so I don't have a bunch of apps loaded on it.
    Other video sites don't do this so I believe it is a Yotube problem. It just started happening two days ago. Anybody else have this problem? Or a solution?

    Reload the webpage while bypassing the cache using '''one''' of the following steps:
    *Hold down the ''Shift'' key and click the ''Reload'' button with a left click.
    OR
    *Press ''Ctrl'' + ''F5'' or ''Ctrl'' + ''Shift'' + ''R'' (Windows and Linux)
    *Press ''Command'' + ''Shift'' + ''R'' (Mac)
    Let us know if this solves the issues you are having.

  • Can't Render Video Hangs on the Initializing Video Export Progress bar

    When rendering a video I never get past the Initializing Video Export Progress bar.
    Running windows 8 64bit, Photoshop CC.
    I have Windows CS4, Lightroom 4, LIghtroom 5 and Premier Elements installed. I have no problem exporting video from lightroom or Premier Elements

    I am trying to process a move clip of various types. I don’t even get to the dialogue that presents the parameter entry. I’ve tried .mp4,mts,3gp,f4v & m2t. I don't even have any changes applied to the clip.

  • How to trigger a mail once BG job finished.

    Hi,
    Could anyone please let me know how to trigger a mail once Background job finished. I let you give one scenario where exactly I require this concept. Say, I execute t.code MB52 with particular variants in background to find stuck qty(s) of material(s) in given site(s).Now I want that system will trigger a mail to concern team once job finished.
    Thanks,
    AK

    You can try using workflow transaction SBWP.
    you need to create a distibution list in the above transaction and add the requested mail ids to it.
    then when you create a jon using transaction SM37 you have the option SPOOL LIST RECIPIENT where you can add the created distibution list
    so when ever the job has run sucessfully then a mail is sent to all the mail id's in the list.
    hope this helps.
    cheers
    sundeep

Maybe you are looking for

  • Will Elements 10 Item #65136385 work with Windows Vista?

    Will Elements 10 Item #65136385 work with Windows Vista? I found this on Amazon.com but it lists operatingsystems only for Windows 7 and I have Vista 64 bit. Can I use this as an upgrade from Elements 7? Thnaks.

  • Spry displaying in Firefox & Safari, but not in IE

    Ok, so I was trying to replicate one of the demos: http://labs.adobe.com/technologies/spry/demos/rssreader/index.html Except that we're running on a LAMP platform which meant I had to rerwite the ColdFusion into PHP. I'm hoping the PHP isn't the issu

  • What is the recommended virus software for my apple laptop?

    What is the recomended virus protection software for my apple laptop?

  • NWDI & SLD migration to NW7.3

    Dear all, We are running NWDI 7.01 SP10 and are planning to upgrade to NW CE7.3 with usage development infrastructure. Can NW CE7.3 be installed first and then can the tracks be exported from the old nwdi and imported to new NWDI CE? In this scenario

  • Multiple CSS DIVs or is there another way?

    I am hoping that there is a workaround to my existing (and archaic) approach to reproducing DIV elements to product content blocks on the following page: careers vancancies At present, this entire microsite is hand coded and manually updated without