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

Testing if another app is running


  • Subject: Testing if another app is running
  • From: Jeffrey Mattox <email@hidden>
  • Date: Sat, 8 Feb 2003 20:08:20 -0600

I want to quit another application, as in:

tell application "AnotherApp" to quit

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...

Jeff
_______________________________________________
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.

  • Follow-Ups:
    • Re: Testing if another app is running
      • From: Nigel Smith <email@hidden>
    • Re: Testing if another app is running
      • From: Michael Grant <email@hidden>
    • Re: Testing if another app is running
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Shell script and grep
  • Next by Date: Re: Testing if another app is running
  • Previous by thread: Problems with Network Setup Scripting...continued
  • Next by thread: Re: Testing if another app is running
  • Index(es):
    • Date
    • Thread