Re: Waiting for Godot
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]