detect application running
how can i do a script which does one thing if it finds one application running, and does another thing if it finds the same application not running?
thanks!
how can i do a script which does one thing if it finds one application running, and does another thing if it finds the same application not running?
thanks!
if application "some app" is running then
-- do something
else
-- do something else
end if
if application "some app" is running then
-- do something
else
-- do something else
end if
tell application "System Events"
try
id of process "MacFamilyTree"
beep
on error
display dialog "not running"
end try
end tell
I prefer twtwtw's solution!
detect application running