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?
if application "some app" is running then
-- do something
-- do something else
tell application "System Events"
id of process "MacFamilyTree"
display dialog "not running"
I prefer twtwtw's solution!
Retrieving data ...