1 2 3 4 5 6 7 |
if appIsRunning("Safari") then beep -- or do something ;-) end if on appIsRunning(appName) tell application "System Events" to (name of processes) contains appName end appIsRunning |
1 2 3 4 5 6 7 |
if appIsRunning("Safari") then beep -- or do something ;-) end if on appIsRunning(appName) tell application "System Events" to (name of processes) contains appName end appIsRunning |