Re: Time Delay with AppleScript
Re: Time Delay with AppleScript
- Subject: Re: Time Delay with AppleScript
- From: Timothy Bates <email@hidden>
- Date: Fri, 18 May 2001 00:53:04 +1000
On 17/5/01 11:19 PM, "Steve Suranie" <email@hidden> wrote:
>
Hi folks:
>
>
I'm sure this is rather easy to do but for some reason I can't seem to get
>
it to work.
>
>
I need to have my script pause while an application executes some batch
>
commands on files. After the batch commands are complete I then need to
>
launch a second application to do more stuff to the files. As my script is
>
now, application 1 is merrily doing its thing but my script has moved on to
>
the portion that calls application 2. Because application 1 is still working
>
on the files certain parameters in the script for app 2 are not met and the
>
script crashes/fails.
>
>
I tried using the timeout command
>
>
with timeout of 300 seconds
>
stuff
>
end timeout
>
>
but it didn't seem to have any affect. Any help or clues?
timeout just means your script won't die while it is waiting, but you want
it to wait, which it is not doing. You need either a generous delay (use the
term "delay n" (where n is in seconds), or else a semaphore: iss there some
state that you can read that indicates the app is not finished its batch
job?
like, look for the file you want to touch to be not busy or something?
tim
Dr Timothy Bates <
mailto:email@hidden>
Macquarie Centre for Cognitive Science (MACCS)
Macquarie University
Ph 61 (2) 9850 8623
Fx 61 (2) 9850 6059