Can anyone show me how I can ask the Finder to tell me if an application is running ?
Thanks
Maruzzo
In OS X, you can use Finder or System Events to check for running processes. It’s my understanding that System Events is the best way to go since Finder (or the system) passes the command to System Events anyway. Here’s the Finder version since that’s what you have asked for. Simply replace “Finder” with “System Events” if you want the System Events version.
tell application "Finder" to set isRunning to exists process "iCal"
if isRunning is true then
display dialog "iCal is running."
else
display dialog "iCal is not running."
end if
– Rob