Re: How do I make applescript wait for application to finish before continuing?
Re: How do I make applescript wait for application to finish before continuing?
- Subject: Re: How do I make applescript wait for application to finish before continuing?
- From: "J.B. Stewart" <email@hidden>
- Date: Fri, 20 Jul 2001 20:55:59 -0400
On 7/20/01 at 4:08 PM, Victor Yee <email@hidden> wrote:
>
On Fri, 20 Jul 2001 13:08:57 -0500, Dave Fugiel wrote,
>
>
> How do I make applescript wait for
>
> application to finish before processing?
>
>
What you need is a "with timeout" statement.
>
>
You can read about it at:
>
http://developer.apple.com/techpubs/macos8/InterproCom/AppleScriptScripters/AppleScriptLangGuide/AppleScript.c9.html
>
>
Victor
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
I believe that "with timeout" isn't what's needed here. "With timeout" adjusts
the time period that applescript will wait for an appleevent reply.
Alternative would be "busy status" from the Standard Additions Info For command.
It's meant for checking the state of a file to see if it's in use by anything.
-- not tested
if busy status of (info for file "file:path") is true then
-- file "file:path" is in use
end if
John