• 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: Checking if an application is opened or not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Checking if an application is opened or not
      • From: Christopher Nebel <email@hidden>
References: 
 >Checking if an application is opened or not (From: email@hidden (Guillaume Iacino))

  • Prev by Date: Re: Script for auto mounting a remote server volume?
  • Next by Date: Trouble with Unicode text
  • Previous by thread: Checking if an application is opened or not
  • Next by thread: Re: Checking if an application is opened or not
  • Index(es):
    • Date
    • Thread