Skip to content

Instantly share code, notes, and snippets.

@arleym
Created September 25, 2015 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arleym/8be7e49866f827f15d91 to your computer and use it in GitHub Desktop.
Save arleym/8be7e49866f827f15d91 to your computer and use it in GitHub Desktop.
Alfred Window Layout for Dev
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