Re: how do I find out if an application is active?
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.