Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set apps to ["Adium", "Firefox3", "Linkinus", "Terminal", "OmniFocus"]
- repeat with appName in apps
- tell application "System Events"
- set t to (count (every process whose name is appName))
- end tell
- if t < 1 then
- tell application appName to activate
- end if
- end repeat
Add Comment
Please, Sign In to add comment