• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I make applescript wait for application to finish before continuing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: How do I make applescript wait for application to finish before continuing? (From: Victor Yee <email@hidden>)

  • Prev by Date: Adding Items Delay
  • Next by Date: Re: How do I make applescript wait for application to finish before continuing?
  • Previous by thread: Re: How do I make applescript wait for application to finish before continuing?
  • Next by thread: Tell a script to run within ignore app
  • Index(es):
    • Date
    • Thread