Friday, July 21, 2017
  • Index
  •  » OS X Finder
  •  » How can I check if a particular application is running?

#1 2005-10-12 07:02:51 am

julifos
Administrator
From:: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

How can I check if a particular application is running?

There are several methods to check it. We will post here one of them:

Applescript:

tell application "System Events" to (name of processes) contains "Safari"

This sentence will return "true" or "false". That's all!

If you don't know the exact name of the application (eg, it could be "InDesign" or "InDesign 2.0.2" or "InDesign�®" or...), you can ask instead for its creator code:

Applescript:

tell application "System Events" to (creator type of processes) contains "InDn"

And... How do you know the creator type of a particular application? Just select its icon in the Finder and run this code:

Applescript:

tell application "Finder" to creator type of (selection as alias)


Filed under: Finder, System

Offline

 
  • Index
  •  » OS X Finder
  •  » How can I check if a particular application is running?

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)