Trying to show a progress bar...

Helloo!
I'm having trouble getting my progress bar to update. I post the new control values, but it doesn't get a chance to redraw until either the End, or if I hit a breakpoint using ExtendScript Toolkit.
It DOES correctly disappear (close) at the end.
I'm setting a bunch of keyframes in a big loop. Takes a little time, nice to show the progress.
Oh, I'll show the code too. It's longish, sorry. Thanks for any advices!
b Caller
> var pb = progressBar("Setting " + notes.length + " Keyframes");
for(var i = 0; i < notes.length; i++)
pb.setValue(i / notes.length);
tp.setValueAtTime(note.time,note.text);
pb.close();
b Progress Bar Handy Object
>/*
Easy to use progress bar for ExtendScript.
Written by [email protected], 2007
Enjoy, but this credit must remain intact.
>usage:
> var pb = progressBar("main title","subtitle");
pb.setValue(valueFrom0to1);
pb.setTitle2("new subtitle display!")
if(pb.isCanceled())
pb.close(); // they clicked cancel
function progressBar(title1,title2)
var result = new Object();
result.running = true;
result.p = new Window("palette");
result.p.orientation = "column";
result.p.alignChildren = "left";
> result.t1 = result.p.add("statictext",undefined,title1);
result.t2 = result.p.add("statictext",undefined,title2);
result.b = result.p.add("progressbar");
> result.c = result.p.add("button",undefined,"Cancel");
result.c.onClick = function() {
result.running = false;
> result.isRunning = function() { return this.running; }
result.isCanceled = function() { return !this.isRunning(); }
result.setValue = function(x) { this.b.value = x * 100; }
result.setTitle1 = function(t1) { this.t1.text = t1; }
result.setTitle2 = function(t2) { this.t2.text = t2; }
result.close = function() { this.p.close(); }
> result.p.show();
return result;

As usual, thanks, that worked perfectly Jeff!
(I've gotten a midi-file parser working in ExtendScript, will post soon. Fun fact: adding a keyframe in AE is approximately very much slower than adding a point to a path in Illustrator. Illustrator is fast fast fast.)

Similar Messages

  • Tools sync now doesn't show any progress bar???

    I have created sync module for firefox.
    But when i click on : Tools > sync now
    Why it doesn't show any progress bar???
    Firexfox team should look into this matter.
    I love firefox.
    Best Regards,
    Jason Malaysia

    Yup Okay..
    But i'm now wondering, if it run background:-
    Where does it update sync to?
    Is it into my firefox account?
    Where i can see my backup bookmarks?
    Best Regards,
    Jason Malaysia

  • Syncing problem - showing only progress bar

    The syncing keeps showing the progress bar but not actually showing whats moving onto the iphone, like the song, video, etc. I believe it isnt doing anything because it takes forever 4+ hrs and i've only selected about 200mp3 and 500jpegs.
    How can I find out the problem here?

    Carolyn Samit wrote:
    Login to another user account on your Mac. Try Safari there. If you see the same thing there then log back onto your admin account, launch Disk Utility (Applications/Utilities). Select MacintoshHD in the panel on the left then select the FirstAid tab. Click: Verify Disk.
    Haven't done the (obvious) first step yet, DU reports all is well.
    Also, check Safari / Preferences - Extensions. If you have any installed, turn that OFF. Quit Safari, then relaunch Safari to see if it makes a difference.
    No such item in Safari Preferences (v 4.1.3)
    You may not have a third party toolbar add on but follow the instructions here just in case there's a Safari third party plugin installed.
    No toolbars, but several plugins in the internet plugins folders, one in the User/Library, the rest in the system Library. I'm suspecting one of the recent ones, & will try to get to checking it tonight.
    Make sure there's enough free space on the startup disk. Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure you always have a minimum of 15% free disk space.
    Another probable cause, all right. I'm struggling to get the seemed-big-at-the-time 60GB drive back up to 10% . Ah well, must press on with that quest, I guess.
    Several good leads here. Will post again after checking them out.
    Thanks,
    Barry

  • Hello, my name is Todd, I recently dowloaded PS CC 2014. I have used PS for decades. The crop tool will show the progress bar, then at about 25% it will totally stop. What can I do? Thanks

    Hello, my name is Todd, I recently dowloaded PS CC 2014. I have used PS for decades. The crop tool will show the progress bar, then at about 25% it will totally stop, even on VERY small 72dpi images. What can I do? Thanks!

    Double check all the settings in the crop tool, and make sure you aren't telling it to create a HUGE image as a result of your settings.

  • How to show the progress bar on forms?

    Hello ALL,
    How should we show the progress bar in our forms screen so we can see how much work is remaining?
    For example if we are performing some task through forms, what code and on which trigger we placed this code in order to show the progress bar that inform us about the task in progress.
    Thanks
    malan

    Hi,
    Shouldn't the oracle forms' support the progress
    bar?
    I prefer to have a code which shows progress bar on
    forms.
    Can some one have this code ?
    ThanksPJC progress bars are shown on the form and forms support progress bar and coding itit's relatively easy.
    If I were you I would take Francois' advice and type in "progress bar" in the lil search box :)
    It's a wonder what a lil search can show you
    Tony

  • My ipad is in recovery mode that failed,it shows the progress bar but is frozen. Itunes shows the wrong name for the Ipad but the correct account.

    my ipad is in recovery mode that failed,it shows the progress bar but is frozen. Itunes shows the wrong name for the Ipad but the correct account.

    You're gonna have to restore the iPhone from your last backup with iTunes. You did do a backup before you attempted to update the software didn't you?

  • My ipad has stopped updating apps. It doesn't even ask for password, it just oges to the apps screen showing empty progress bars. I've re-synced account and restarted but with no luck. Other than deleting the apps is there anyway around this?

    My ipad has stopped updating apps. It doesn't even ask for password, it just oges to the apps screen showing empty progress bars. I've re-synced account and restarted but with no luck. Other than deleting the apps is there anyway around this?

    OK. I will work backwards.
    You certainly don't want to have to delete apps every time that they need an update, for any number of reasons. Losing data first and foremost would be a drag, but the overall hassle would be absurd. All things being equal, you should be able to update apps in the future after you delete them and reinstall them. I delete and reinstall apps all the time and I am also able to update them when updates are available for the apps. I just wanted to know if you had any success in any fashion installing apps.
    Resyncing/refreshing the Apple ID/iTunes account wouldn't seem to be the issue either if you can download apps or other content from the iStores. Your ID is being accepted.
    That leaves us with I'm not sure what. But I think I would try this trick fix and see if it helps.
    Go to Settings>General>Date and Time>Set Automatically>Off. Set the date one year ahead. Try to update the apps again. If you get an error message, go back to the settings. Correct the date and time (set automatically) then go back and try to update the apps again.

  • Macbook Pro seems to be bricked by ML install. Upon restart it shows a progress bar which makes it to about 15%, and then the machine simply shuts off. Help?

    Title pretty much says it all. Install seemed to be going fine, then upon restart it hit a gray screen with a progress bar for about 30 seconds. Once the progress bar makes it to about 15% the machine simply shut off. I tried turning the machine on again a few times, but each time I had the same issue. I then tried running the 10.8 recovery disk, but it just showed the gray spinning wheel for about 6 hours. Any ideas?

    Something similar issue with me too. Intallation went fine. Then it started updating java once reboot it got stuck on grey screen. It wont boot at all. That spinning wheel keeps on going forever. :(

  • After waking from sleep, my Macbook Pro shows grey progress bar

    I have the mid 2012 Macbook Pro (13 inch). When I leave it open and let it fall asleep after the time I have chose, it wakes up again fine.
    But if I choose the sleep from the Apple in the menu bar or SHUT the lid, when I wake it up, it shows the grey progress bars and takes about 3-4 minutes before it is responsive again.
    Any advice? I'd just like it to sleep normally. It's a bit embarrassing to have to wait that long if I'm trying to show off how cool my laptop is
    Here are the specs, copied from my System Information:
    Model Name:          MacBook Pro
      Model Identifier:          MacBookPro9,2
      Processor Name:          Intel Core i7
      Processor Speed:          2.9 GHz
      Number of Processors:          1
      Total Number of Cores:          2
      L2 Cache (per Core):          256 KB
      L3 Cache:          4 MB
      Memory:          8 GB
      Boot ROM Version:          MBP91.00D3.B08
      SMC Version (system):          2.2f41
      Serial Number (system):          C2QJF09CF5WW
      Hardware UUID:          494AC457-6424-55C1-ACC3-61DDC76AA035
      Sudden Motion Sensor:
      State:          Enabled
    Thanks for any help!

    This was added to all 2012 model MBPs as part of some bs Euro power saving standard.  By default, when on AC power, the system has to sleep for 14400 seconds before this deeper hibernation state happens.  When that happens, the system takes a while to resume to normal operation.  There is a workaround for this and it is available on this site, but I urge you to call AppleCare and complain about this issue yourself please because without a lot of complaints about it, Apple won't fix it.  The workaround is to simply issue a command in a Terminal prompt that disables this option from happening, but it's not a fix by any means.

  • CS6 Installation package doesn't show a progress bar when installing?

    I'm trying to install an upgrade from CS5.5 Prod Prem to CS6 Prod Prem onto my iMac (10.9.3). I've downloaded the file twice, and tried twice to run it. The install drive will mount from the .dmg, I run it, click on "Install", a progress bar shows up that says "Initializing Installer" which takes maybe a minute or two, then that progress bar disappears and Adobe Application Manager shows up on the doc and nothing else appears to happen. The Activity Monitor does not appear to show any type of installation happening.
    How do I get this to install? Shouldn't I be seeing some kind of progress bar?

    I just remembered something else which might be helpful. We had the exact same thing happen last year when we had to re-install the Flash Player at work. It was supposedly some kind of problem with the installer not being able to function through the company's firewall, which I didn't have the access or permission to turn off or alter in any way. The only thing that worked was locating and using the full installer package.
    So... does anyone know where I could get the full installer package for CS6 Production Premium?

  • How to Reduce Image Size and show upload Progress Bar

    i need to capture an image from the camera and send it to the server. however to reduce the amount of data transmitted i want to shrink the image and lower its resolution.
    I have code that currently does the following :
    UIImage *testImage = [UIImage imageNamed:@"image1.png"]; // this would come from image picker
    NSData * imageData = UIImagePNGRepresentation(testImage);
    // skipped code that showed URL string setup
    NSString *postLength = [NSString stringWithFormat:@"%d", [imageData length]];
    NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
    [request setURL:[NSURL URLWithString:urlString]];
    [request setHTTPMethod:@"POST"];
    [request setValue:postLength forHTTPHeaderField:@"Content-Length"];
    [request setHTTPBody:imageData];
    NSURLConnection *conn=[[NSURLConnection alloc] initWithRequest:request delegate:self];
    1. need some way to shrink the image size to reduce data traffic
    2. need some way to indicate a progress bar as data is being transfered to the server

    1. The size is visible in the metadata panel, set the dropdown to EXIF. In addition, in the Grid, with Ctrl-J, you can set the options so that you will see the cropped size in the rectangle surrounding the photo.
    2. You cannot, in one action, upload to multiple galleries. Each upload is its own action. I don't know if there is a plug-in to let you upload from LR to 500px in one action; clearly there are plug-ins for Flickr and Smugmug and several others. There should be no need to re-import. Normally, the plug-ins I mentioned will take a TIFF, resize it according to your directions, convert to JPG and upload.

  • HT4623 My iPhone 4 has become unresponsive during the update. It's showing a progress bar and has not moved for over half an hour can anyone help ?

    My iPhone 4 has become unresponsive during the latest update I have a progress bar about half way through the update and it hasn't moved for about an hour can anyone help???

    Hey Ali.M27,
    Thanks for the question. I understand you are experiencing issues with your iPhone during an iOS update. If your issues persist, you may need to restore your device in recovery mode:
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    Thanks,
    Matt M.

  • How do i get an audio book to show the progress bar?

    I want to get back to a specific point in an audio book to listen over again without having to listen to an entire chapter. I used to be able to drag the bar that appeared under the title of the book, but that bar is not there any more. I have set it up in options as audio book, remember place etc, but the progress bar has disappeared from all my books.

    What iOS version?
    Are you using the Music app?

  • DFU and tried to recover but progress bar never showed up

      I recently tried to restore my extremely loaded and bugging iPhone 3Gs into a default state via DFU mode. I used a fw file with my 6.1.2 shsh stitched into it so I may recover to 6.1.2. Things went smooth when I put my phone into pwned DFU and choose the fw in iTunes. All that is after iTunes verified that the fw can be installed and prepair to do the recovery by booting into the "bar mode" (Don't ask, just the screen that shows the firmware install progress.) The phone will just try to boot itself up as normal and I recieve a random error like err. 1604, 1643 ect. I am doing it on a Mac but swaping to a windows doesn't help.

    Hello Cyrus,
    not "perhaps" but "sure": read the forums conditions....
    I am sorry, no way,

  • Progress Bar doesnt show

    why doesnt progress bar show on ie/ns?....Thank you all.
    <cfif isdefined('form.Process') and form.process eq "Process" and isdefined('Form.rosterfile') and form.rosterfile neq "">
    <cfset CurrDir = GetDirectoryFromPath(GetTemplatePath())>
      <cfset StorageDir = GetDirectoryFromPath(GetTemplatePath()) & "Storage\">
          <div id="display_while_running">
             <table align="center" border="0" cellpadding="0" cellspacing="0" style="border:solid 1px green; background : #backgroundcolor1#; width:600px;padding:5px; text-align:center;">
              <tr>
                <td >
                  <b>Please wait while it is processing...</b>
                </td>
              </tr>
              <tr>
                <td>
                 <img src="../imgs/progressbar2.gif" width="250" height="20">
                </td>
              </tr>
            </table>
          </div>
        <!---CFOUTPUT>#RepeatString(" ",300)#</CFOUTPUT--->
          <!---cfflush--->
          <cffile action="upload"
          destination="#StorageDir#"
          nameConflict="overwrite"
          fileField="Form.rosterfile">
          <cfset strFilePath ="#StorageDir##cffile.serverFile#">
          <cfset strFile ="#cffile.serverFile#">
          <cfquery datasource="#application.Orc#" name="GetFileName">  
            Select FILE_NAME from ops$rms.HR_File
            where
            lower(file_name) = lower('#strFile#')
         </cfquery>
        <cfif GetFileName.recordcount neq 0>
          <cfset msg = "This file has been already uploaded. Please upload a different one.">
        <cfelse>
            <cfflush interval="10">
            <cfset CurrFilePath ="#CurrDir##cffile.serverFile#">
            <cffile action = "copy" source="#strFilePath#" destination="#CurrDir#">
            <cffile action="rename" source="#CurrFilePath#" destination="#CurrDir#HrXls.xls">
            <cflock name="xlsloader" timeout="300" type="exclusive">
                  <cfset command = "java RMSHRFileReader C:\Inetpub\wwwroot\RMS\hr_loader\HrXls.xls">
                  <cfset syscmd = createObject("java","au.com.webcode.util.SystemCommand").init()>
                  <cfset result = syscmd.execute(command,"300000")> <!---5 mins, must be a string--->
                  <cfif result.getExitValue() neq 0>
                   <cfset msg = "The uploading process has been partially completed.">
           </cfif>
            </cflock>
            <cfquery datasource="#application.Orc#" name="InsFileName">
              insert into ops$rms.HR_File(file_name, updated_on, updated_by)
              values('#strFile#',SYSDATE,'#session.username#')
            </cfquery>
            <cfset stdout = 1> 
            <cffile action = "delete" file="#CurrDir#HrXls.xls">
        </cfif>
      <script language="Javascript">
          document.getElementById('display_while_running').style.display='none';
        </script>
    </cfif>

    Because ColdFusion code starts executing after the contents of the
    file to be uploaded is received by the server. In other words when
    you're trying to show the progress bar there's no need for a progress
    bar because the upload is at 100%.
    Mack

Maybe you are looking for

  • How to move photos edited in Lightroom 2 from external hard drive to Lightroom 5 without losing changes/metadata made in Lightroom 2?

    I had images processed in Lightroom 2 on an old PC that crashed, but were backed to external hard drive. I now have a Macbook Pro with Lightroom 5. When I import the photos from the hard drive the editing/metadata I added in Lightroom 2 are not there

  • Issue While creating Business Objects in SWO1

    Hi all, I just want to add a FM to my Business Object. In the FM, when i define the import and export parameters using "TYPE" the FM is working fine. But while adding that method to a Business Object in SWO1, an error is raised. The details are - Dat

  • Needs help in SQL (problem brought me to headache)

    I wonder to display overdue report, how do i make use of SQL method to search the DATE data in my database was overdue?? i try this method b4.. but it wont work!! TodayDate = new Date(); dateFormatter = DateFormat.getDateInstance(DateFormat.SHORT); T

  • Clueless as to whether I can do this or not in a program like Numbers

    Before I begin - my disclaimer... I have very little training in this area, and am completely clueless whether this can even be done. I am trying to consider whether we will be able to create our own charting system in a medical clinic.  In beginning

  • Lightroom 4.2

    I have 2 lightroom 4.2 installed on my 2 stationary computers. I am planning to go on holyday and I that time I would like to use one on my laptop. But how do I deactivate it on one of my stationary computers? And the other way after my holyday? Best