Re: Checking if an application is opened or not
Re: Checking if an application is opened or not
- Subject: Re: Checking if an application is opened or not
- From: Jeffrey Mattox <email@hidden>
- Date: Wed, 26 Feb 2003 17:44:42 -0600
Okay people, stand back! I'll handle this one. I asked the exact
same thing a few weeks ago. And for the same reason.
Do this:
tell application "Finder" to name of processes
if ("aProcess" is in the result) then
display dialog "aProcess" running"
else
display dialog "aProcess" not running"
end if
Jeff
At 3:17 PM -0800 2/26/03, Guillaume Iacino wrote:
Hi,
Sorry if this question has been asked before, but I am looking for the
proper way to detect if an application is already opened or not.
I have a script that unmounts all my external hard drives and closes some
apps too. My problems is that if the apps are not opened, my script opens
them and then quit them.....
tell application "Finder" to eject (every disk whose local volume is false)
tell application "Notes" to quit
Thank you for your insights.
Guillaume
_______________________________________________
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.