Re: Determining when an app has quit
Re: Determining when an app has quit
- Subject: Re: Determining when an app has quit
- From: Andrew Oliver <email@hidden>
- Date: Thu, 01 Jul 2004 16:00:55 -0700
This is pretty straightforward.
-- start artisan startup
tell application "Artisan Startup" to launch
-- wait until it's done
tell application "System Events"
repeat until (exists application process "Artisan Startup") is false
delay 1
end repeat
end tell
-- start Artisan
tell application "Artisan" to activate
On 7/1/04 3:51 PM, "Rick Gordon" <email@hidden> wrote:
>
How does one determine when an application has quit?
>
>
For instance, if I wanted to write a script to run at login that would:
>
>
* Launch Artisan Startup.
>
>
* Wait while Artisan Startup is still running.
>
>
* After it has quit, launch Artisan.app. (If it's launched before Artisan
>
Startup has completed, it will generate an error.)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.