• 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: how do I find out if an application is active?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do I find out if an application is active?


  • Subject: Re: how do I find out if an application is active?
  • From: Jeffrey Mattox <email@hidden>
  • Date: Mon, 24 Mar 2003 20:54:21 -0600

Try this (with thanks to Chris Nebel):

tell application "Finder" to get exists process "blah"
if the result is true then
tell application "blah" to quit
end if

Jeff

At 2:39 PM -0800 3/24/03, Jennifer Kolar wrote:
Simple newbie question-



I want to have another script that tells that application to quit if it is
actually open..



I have found that just doing



ignoring application responses

tell application "blah" to quit

end ignoring



actually activates the application if it wasn't open!



I know I have seen syntax around along the lines of:



if application "blah" is active then

tell application "blah" to quit

end if



but what I have listed there isn't quite right.. I get an applescript error
on "is active"



can anyone help me w/ the correct syntax?



Thanks

Jennifer

email@hidden
_______________________________________________
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.
_______________________________________________
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: 
 >how do I find out if an application is active? (From: "Jennifer Kolar" <email@hidden>)

  • Prev by Date: Re: Word scripting?
  • Next by Date: re: Mount Volume bugs?
  • Previous by thread: Re: how do I find out if an application is active?
  • Next by thread: Trouble Editing The Contextual Menu Scripts
  • Index(es):
    • Date
    • Thread