• 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: Determining when an app has quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Determining when an app has quit (From: Rick Gordon <email@hidden>)

  • Prev by Date: Re: BIZARRE File Type returned...sometimes!
  • Next by Date: Re: Don't waste disk space, use URL redirection services to distribute your scripts...
  • Previous by thread: Determining when an app has quit
  • Next by thread: Re: Automator in OS 10.4 (Tiger)
  • Index(es):
    • Date
    • Thread