• 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: Waiting for Godot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Waiting for Godot


  • Subject: Re: Waiting for Godot
  • From: "Marc K. Myers" <email@hidden>
  • Date: Wed, 12 Dec 2001 00:12:06 -0500
  • Organization: [very little]

> Date: Tue, 11 Dec 2001 23:29:09 -0500
> To: email@hidden
> From: "Ricardo J. Seijo" <email@hidden>
> Subject: Waiting for Godot
>
> I apologize if this is a FAQ, but the archives don't seem very
> searchable. How do I tell a script to sit tight and wait until a specific
> application has been closed before resuming its actions? I want it to make
> a set of changes and launch an application, then wait until the user closes
> said application to reverse the original changes. Thanks in advance!

tell application "Finder"
repeat
delay 1
if not (exists process "appName") then exit repeat
end repeat
end tell

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[12/12/01 12:11:12 AM]


  • Prev by Date: Waiting for Godot
  • Next by Date: Re: Waiting for Godot
  • Previous by thread: Re: Waiting for Godot
  • Next by thread: Re: Waiting for Godot
  • Index(es):
    • Date
    • Thread