Created
September 25, 2015 19:52
-
-
Save arleym/8be7e49866f827f15d91 to your computer and use it in GitHub Desktop.
Alfred Window Layout for Dev
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
on alfred_script(q) | |
tell application "Google Chrome" to activate -- needs to be in front | |
tell application "System Events" to tell application process "Chrome" | |
try | |
repeat with x from 1 to (count windows) | |
get properties of window x | |
set position of window x to {0, 21} | |
set size of window x to {1080, 1419} | |
end repeat | |
end try | |
end tell | |
tell application "Sublime Text" to activate -- needs to be in front | |
tell application "System Events" to tell application process "Sublime Text" | |
try | |
repeat with x from 1 to (count windows) | |
get properties of window x | |
set position of window x to {1080, 21} | |
set size of window x to {1080, 1419} | |
end repeat | |
end try | |
end tell | |
tell application "iTerm" to activate -- needs to be in front | |
tell application "System Events" to tell application process "iTerm" | |
try | |
get properties of window 1 | |
set position of window 1 to {2160, 670} | |
set size of window 1 to {400, 785} | |
end try | |
end tell | |
tell application "HipChat" to activate -- needs to be in front | |
tell application "System Events" to tell application process "HipChat" | |
try | |
get properties of window 1 | |
set position of window 1 to {1960, 21} -- eye ballin' | |
set size of window 1 to {600, 645} | |
end try | |
end tell | |
end alfred_script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment