• 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: Testing if another app is running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Testing if another app is running


  • Subject: Re: Testing if another app is running
  • From: Nigel Smith <email@hidden>
  • Date: Mon, 10 Feb 2003 11:57:11 +0000

On 9/2/03 2:08, "Jeffrey Mattox" <email@hidden> wrote:

> But first I need to determine if the other application is running.
> If it's not, then that line launches it before quitting it.
>
> if ( "AnotherApp" is running ) then -- how to do this?
> tell application "AnotherApp" to quit
> end if
>
> There must be an easy way...

Won't

tell application "AnotherApp"
quit
end tell

Either quit AnotherApp if it is running, or launch and then quit it if it
isn't?

Nigel
_______________________________________________
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: 
 >Testing if another app is running (From: Jeffrey Mattox <email@hidden>)

  • Prev by Date: Re: applescript-users digest, Vol 3 #1328 - 6 msgs
  • Next by Date: Finder Search dialog: scriptable?
  • Previous by thread: Re: Testing if another app is running
  • Next by thread: Mail or Smile bug ?
  • Index(es):
    • Date
    • Thread