Created
November 13, 2012 19:59
-
-
Save matthewmueller/4068007 to your computer and use it in GitHub Desktop.
Cycle through webdev apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
property i : 1 | |
set apps to {"Google Chrome Canary", "Sublime Text 2", "iTerm"} | |
set devapp to item i of apps | |
if appIsRunning(devapp) then | |
tell application devapp | |
activate | |
end tell | |
end if | |
if i ≥ the length of apps then | |
set i to 1 | |
else | |
set i to i + 1 | |
end if | |
on appIsRunning(appName) | |
tell application "System Events" to (name of processes) contains appName | |
end appIsRunning |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sexy