Guest User

Untitled

a guest
Feb 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. set apps to ["Adium", "Firefox3", "Linkinus", "Terminal", "OmniFocus"]
  2. repeat with appName in apps
  3. tell application "System Events"
  4. set t to (count (every process whose name is appName))
  5. end tell
  6.  
  7. if t < 1 then
  8. tell application appName to activate
  9. end if
  10. end repeat
Add Comment
Please, Sign In to add comment