Advertisement
Guest User

Untitled

a guest
Sep 9th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on ApplicationIsRunning(appName)
  2.     tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
  3.     return appNameIsRunning
  4. end ApplicationIsRunning
  5. quit application "GrowlHelperApp"
  6. repeat while ApplicationIsRunning("GrowlHelperApp")
  7.     delay 0.5
  8. end repeat
  9. repeat while not ApplicationIsRunning("GrowlHelperApp")
  10.     launch application "GrowlHelperApp"
  11.     delay 2
  12. end repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement