How to pause script until
i have a script that is used to convert avchd files to qt formats.
it's got a problem, though, in that it moves from the currently
converting file to the next file too quickly. i thought i'd solved
this behaviour by including a routine that caused the script to
wait until it saw the qt file appear before moving on. problem is
now that, in the case of large files, the qt appears before it's
really finished converting and made usable, as if the container is
placed in the folder but is still being filled with the file contents
when the script moves on to the next file. since only one file can
be processed at a time, the script crashes at that point.
can anyone suggest a method for testing that these large files are
really complete before the script moves on?
thanks,
BabaG
The first approach would be to see what AppleScript support is built into the application you're using to convert the AVCHD files.
You may find the app has support for this, either by invoking some kind of 'convert' command (which would typically return a reference to the converted movie), or by providing some kind of application status (e.g. 'idle', 'processing', etc.) which you could poll until it indicates it's completed.
If that fails and the app isn't scriptable then your next best bet is to look at more detail at the output file. For example it's likely that the file gets created and the data written to it, and it's this writing stage that's taking time. The easiest approach then is to get the size of the file, wait a second or two, then check the file size again. If the size is increasing you know it's still being created. If the size is static then you can assume it's completed and you can continue your script, e.g. assuming your output file is in the variable output_file:
set done to false
set previous_size to 0
repeat until done = true
set file_size to size of (info for output_file)
if file_size > previous_size then
set previous_size to file_size
delay 1 -- wait a second before checking again
else
set done to true
end if
end repeat
-- rest of code here
Similar Messages
-
How to pause a imported .swf logo?
I've exported a 3 seconds turning Logo (.swf file, done by
After Effect)
Pls tell me how to pause the logo after it had fly out (in a
10 seconds slide)?
I've tried to pause the logo in After effect till 10 seconds
but the .swf export file size is HUGE!
I've tried to drag and extend the 3 seconds logo in timeline
to 10 seconds,
but i found out that the logo will became SLOW MOTION and
just turn into 10 seconds animation (won't pause after 3 seconds
turning effect),
So can i let the 3 seconds logo flying out, and pause it at
last frame till 10 seconds in Captivate?
Thanks~!
Lulu
MalaysiaThanks Dexterous!
I've discovered a method to pause swf effect at last frame!
1. Output 3d logo using After Effect:
---- (12 frames per second + Resterized + Jpeg quality low +
no looping).
-----Uncheck the loop continuously box.
2. Import to Captivate using Insert/Animation
3. Under Options: Display for: rest of slide,select
Synchronize with project (Uncheck the loop) and Fade in only.
Now even the slide is 10 seconds,
my 4 seconds spinning .swf animation logo will show in the
slide
and pause at the last frame untill the slide finish!!!
So i can output swf animation with a very small file size!!
(^ v ^)Y
Lulu
Malaysia -
How can "Slow Script" be stopped?
Hi,
How can "Slow Script" be stopped? It happens all the time on Twitter. Someone recommended clearing out the Twitter cookies, then restart Safari, which only works until I go on Twitter again. Then the cookies return and it is repeat cycle! Please help. This is exasperating.
Thanks.This was answered when I asked the question again a little later. Here's what was said:
kcat
Posts: 232
Registered: Dec 26, 2004
Can Slow Script be stopped??? Please help!
Posted: Mar 30, 2010 3:41 PM
Reply Email
Hi,
Can "Slow Script" be stopped? If so, how? It happens all the time on Twitter. Someone recommended clearing out the Twitter cookies, then restart Safari, which only works until I go on Twitter again. Then the cookies return and it is repeat cycle! There's no way to contact Twitter about this. Please help. This is exasperating.
Thanks.
Message was edited by: kcat
iMac2009 Intel Mac OS X (10.6.3) Snow Leopard, iPod nano
~Bee
Posts: 10,953
From: Delaware USA
Registered: Jan 15, 2004
Re: Can Slow Script be stopped??? Please help!
Posted: Mar 30, 2010 4:29 PM in response to: kcat
Solved
Reply Email
I hope this will help:
http://erich13.blogspot.com/2009/05/slow-script-safari-version-4-public.html
15" MBP; 20"iMac Duo; 12 PB G4; mini; and a few more. Mac OS X (10.6.3) LaCie Ext. HD
kcat
Posts: 232
Registered: Dec 26, 2004
Re: Can Slow Script be stopped??? Please help!
Posted: Mar 30, 2010 10:13 PM in response to: ~Bee
Reply Email
Thank you for coming through for me again, Bee! I really appreciate it. Yes, your suggestion worked.
I think Twitter itself has a slowness problem, though, because even with the "Slow Script" message issue removed, Twitter still takes forever to search. I finally found a way to contact Twitter about this. They said it might be my system or speed, but I reassured them it was not, and they said they'd look into it on their end. Cross your fingers for me that Twitter fixes this glitch, won't you?
Thank you again,
Kcat -
How to pause Flash MX Pro slideshow
I've created a slideshow in MX Pro with buttons to scroll
forwards & backwards through the slides.
The client now wants the slideshow to play automatically.
OK, I've done that, and have also kept the buttons so users
can rewind or fast-forward if they choose.
However...
I can't figure out how to pause the
automatic slideshow (using a button) ?
Also, how do you increase the default
time between slides?
I've used transitions between slides, but it would be nice to
allow each slide to be visible for longer.
Any help much appreciated...Thanks Mark. I'm afraid your suggerstions don't work.
quote:
a slide show by default waits for a user to press the left or
right arrow buttons, unless you just created a slideshow on the
timeline and did not use the Flash Slideshow File.
I created a slideshow (for use as an animated banner for a
website) using a slide presentation template, with 3 screens:
Screen 1 - background images, website navigation buttons,
slideshow forward/backward buttons.
Screen 2 - animated text.
Screen 3 - contains 8 nested screens which form the
slideshow.
Final frame of screen 2 (once text animation has completed)
has "go to next screen" behaviour that allows slideshow to play
automatically. I can also use the buttons to move forward/backward.
quote:
If you want to add more time or increase the duration in
which the content stays on the stage, then just add frames.
I added an extra 5 seconds worth of frames to the timeline
for the 1st nested screen... slideshow playback is NOT delayed at
all.
quote:
stop the timeline with a button.
I added a STOP button with appropriate Action Script. It does
NOT stop the slideshow.
Any more ideas? -
How to pause external vdos to play it again after played another vdo
Hey! I have a question.
I have many external vdos which I have loaded and randomly play them once at a time by press some keyboard buttons.
Let's give vdos named a,b,c,... and picture this....
When people press a button a vdo A is playing then someone press another button or the same button the vdo B will be played immediately.
The same thing happen to vdo B if someone press any button on keyboard to play vdo C. After every vdo has been played, the program will set all the vdos back so people can play it again now but, I do want it to play in exact same point where it left.
Right now, my code can ramdomly play all the vdo without repeat them untill it plays them all. But I know because I REMOVE the vdo out so that's why the program don't play it again like this: var NewStore:Array = VdoStore.splice(i,1);
I think this way can't make a program to remember the vdo's timeline. But I don't know whatelse can I do to do what I want.
Anyway,
Someone tell me to try out some index to the array and add ++ after playing. Then after index is more than Array's length, just reset index to 0 again.
So...Any suggestion on how to pause many external vdos??use the shuffle function to randomize your videos and then play from index = 0 to index=videoA.length-1:
function shuffle(a:Array) {
var p:int;
var t:*;
var ivar:int;
for (ivar = a.length-1; ivar>=0; ivar--) {
p=Math.floor((ivar+1)*Math.random());
t = a[ivar];
a[ivar] = a[p];
a[p] = t; -
[Automator]How to pause Dropbox syncing from status bar?
Sorry, i am a new guy.
I don't have idea how to pause Dropbox syncing by using Automator.
How should i do?Hi,
The following script should do the trick. I've used cliclick because the “click at“ command doesn't seem to work any more under Mavericks (see this post for example).
tell application "System Events" to tell process "Dropbox"
set {x, y} to position of menu bar item 1 of menu bar 2
set {x, y} to {x + 13, y + 11} -- center of menu icon
end tell
set cliclick to "/usr/local/bin/cliclick "
do shell script cliclick & "c:" & x & "," & y & " w:250"
set {x, y} to {x + 135, y + 251} -- center of wheel
do shell script cliclick & "c:" & x & "," & y & " w:250"
set {x, y} to {x + 85, y + 102} -- center of menu item
do shell script cliclick & "c:" & x & "," & y
If you prefer, you might also use this more concise version of the script:
tell application "System Events" to tell process "Dropbox"
set {x, y} to position of menu bar item 1 of menu bar 2
end tell
do shell script "/usr/local/bin/cliclick " & "c:" & (x + 13) & "," & (y + 11) & " w:250" & " c:" & (x + 148) & "," & (y + 262) & " w:250" & " c:" & (x + 233) & "," & (y + 364)
Hope it can help. -
How can I script moving paths from one file to another?
Hello. I have 1 image with various color correction layers. The other is the exact same size but only contains paths. How can I script moving paths from one file to another? Thanks, in advance, for any help you can offer. Thanks!
Thanks! This one actually worked for me. Thanks for your help.
http://forums.adobe.com/message/3305389#3305389 -
How can I script a Flash .exe file to always stay on top of all other windows?
Hi All,
I'm new to action script, and I just need this one script
> How can I script a Flash .exe file to always stay on top of
all other windows?
Basically what i want to do is have a flash-created
step-by-step instructional movie, but for the movie to remain on
top of all windows so the instructee is able to follow the
instructions on-screen...
It would be preferable to not have to buy another product
just to do this... as I said, this is the only scripting I need.
Thanks in advance
Cheers
Rickif you create your exe with mProjector you can use one of its
new AS
commands to do this.
setZOrder
http://www.screentime.com/software/mprojector/docs/mWin_setZOrder.htm
all APIS
http://www.screentime.com/software/mprojector/docs/index.html
Demo
http://www.screentime.com/software/mprojector/demo.html
mProjector installs new classes and help into Flash, to
enable them you
must build your app with mProjector (its input is your swf)
John Pattenden
Screentime Media - Flash Tools since 1997
http://www.screentime.com -
How to activate script debugging in Adobe Livecycle designer
Friends,
I would like to know how to activate script debugging in the Adobe Livecycle designer. I need to debug the scripts written in the script editor.
Thanks and Regards.Syntax checking is available in designer from version 8.1 onwards.
If you want to enable in Adobe Reader then go to Edit --> Preferences --> JavaScript --> Enable the option Show console on Errors on messages.
Apart from it the alternative way to debug the scripts is to use xfa.host.messageBox and check the values.
Chintan -
How to use LOOP(Until) step in a Workflow
Hi,
How to use LOOP(Until) step in a Workflow?
What are the steps involved in using the step LOOP(Until).Hmmm... using it is just like using a LOOP UNTIL statement in any programming language. You get at least one loop iteration, as opposed to a WHILE loop which may give you zero iterations.
You simply insert a node of this type in the workflow, and magically there will be a loop inside which you can insert the steps you want to execute in the loop, and by double-clicking at the end node of the loop you can enter the condition for exiting.
What exactly is it you are having trouble understanding about the use of it? -
How to use Script in ADF model?
Hi!
I don't know how to use Script in ADF model. Help me, please!
Detail: javaScript.
Thanks so much!You can put your Javascript code in the Onmouseover property of the column.
I don't have the Javascript code for changing the color but for example the following will pop up an alert
<af:outputText value="#{row.DepartmentId}" onmouseover="alert(\'Unload event fired!\')"> -
Hi Experts.. How to make scripts & SmartFrom Unicode enable
Hi Experts..
How to make Scripts & Smart From Unicode enable? i know for scripts we need to check with driver program &
For smart from we need to check the generated function module. Correct me if am wrong.
I wanna to know how to make layouts & from Unicode conversion....or enable??
Thanks In Advance
Santosh.S
Points for sure ...Hi Donghai,
Have you tried using the command
CHAIN ENDCHAIN.
Try displaying the message for te field you wish to within CHAIN and ENDCHAIN which will allow you to enter the data in the field even after the error message is displayed.
Caution: Mention all the field names in CHAIN and ENDCHAIN which you want to be open for enterin the values into it.
Thanks and Regards,
Kunjal Patel -
How to pause while document printing and wait for user actions.
How to pause while document printing and wait for user actions. (for sample: pressed button). Pause after each printed pages.
Print page by page after considering the user actions!
-
How to call script in jsp
3A-_@. Feb 8, 2007 3:08 AM
Hi,
I have abc.jsp file where i want to call javascript on pressing submit button.
<input type="text" name="UserName" value="" width="30" />
<input type="submit" value="Submit" onclick=" <what should i write here??">
here how to call script?
and in the same abc.jsp file i have javascript ( i am not sure about the way i m accessing text value inside javascript is right or not)
<SCRIPT LANGUAGE="javascript" >
here how can i access UserName field value here??
if(isThisNotNull(UserName))
alert("UserName Is Mandatory");
</SCRIPT>If you do it like Greeks says then the javascript variable will be set when the page loads (userName probably blank). You will want the current value from the input field so use getElementById().
Edited by: gmachamer on Nov 21, 2007 7:23 AM
oops, just noticed Greeks posted both replies... so what I should have said is use his first suggestion as the second is not what you want. -
How to view Script Source for Execution Method type = "Spawned" ?
I finded Concurrent Program Executable of "Actual Cost Worker"
Concurrent Program Executable Information
Executable :CMCTCM
Sort Name : CMCTCM
Apllication : Oracle Bills of Mateial
Description Unified : Cost Manager
Execution Method : Spawned
Excution File Name CMCTCM
Subroutine Name :cmltcm
I want to view script source for CMCTCM.
But. Before I have not view "Spawned' script source.
I only have tech PL/SQL, Form, Report source.
How to confirm script source of Spawned type ?
Message was edited by:
roseok77
Message was edited by:
roseok77Try raising metalink TAR asking for the PRO*C source code.
Maybe you are looking for
-
Hide or remove delete button - ESS personal data iView
Hi, regarding for example ESS(50.4) personal data overview iView. How to hide or remove delete button in the personal data overview iView screen(I know that this can be done on the ITS server side (web studio), but I want to do this in R3) /Best Reg
-
How to base authorization on worksets
Hi All, I see different postings about this topic, but I'm not sure where it stands. We have different users that access PCA reports, CCA reports and a combination of both. We have a PCA workset and a CCA workset that has the BW iView reports assigne
-
Bean confusion - questions - beginner
jsp A <jsp:useBean id="searchHeaders" scope="session" class="database.Tool"/> <p><c:out value="${searchHeaders.searchHeaderMap}"/> // This shows my bean info <p><a href="/<c:out value="${param.newID}"/>/searchTooling.jsp?newID=<c:out value="${param.n
-
Need to install web diagtool in my system
Dear Expert , please help me on below issue once if you know i need to install web diagtool in my ep system but i dont know the process to deploy this on version 700 i checked in note 1045019 but in that note it is not clear to tel how to deploy usin
-
Release strategy does not reset after PO change - tried changeability 4 & 6
Hi, After my PO is released, I change the item quantity/price such that the net PO value (increased) is changed MORE than the tolerance % set in the changeability. I expect that the PO release should be reset but it does not. However if my PO value