Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on ApplicationIsRunning(appName)
- tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
- return appNameIsRunning
- end ApplicationIsRunning
- quit application "GrowlHelperApp"
- repeat while ApplicationIsRunning("GrowlHelperApp")
- delay 0.5
- end repeat
- repeat while not ApplicationIsRunning("GrowlHelperApp")
- launch application "GrowlHelperApp"
- delay 2
- end repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement