Skip to content

Instantly share code, notes, and snippets.

@notch8-old
Created August 1, 2011 18:09
Show Gist options
  • Select an option

  • Save notch8-old/1118665 to your computer and use it in GitHub Desktop.

Select an option

Save notch8-old/1118665 to your computer and use it in GitHub Desktop.
GoHome
tell application "iCal"
activate
repeat with aWindow in (get every window)
if aWindow is visible then
set index of aWindow to 1
tell application "SizeUp"
send to space 1
send to monitor 1
do action Full Screen
end tell
end if
end repeat
end tell
tell application "Mail"
activate
repeat with aWindow in (get every window)
if aWindow is visible then
set index of aWindow to 1
tell application "SizeUp"
send to space 2
send to monitor 1
do action Full Screen
end tell
end if
end repeat
end tell
tell application "Google Chrome"
activate
repeat with aWindow in (get every window)
if aWindow is visible then
set index of aWindow to 1
tell application "SizeUp"
send to space 3
send to monitor 1
do action Full Screen
end tell
end if
end repeat
end tell
tell application "iTerm"
activate
repeat with aWindow in (get every window)
if aWindow is visible then
set index of aWindow to 1
tell i term application "SizeUp"
send to space 5
send to monitor 1
do action Full Screen
end tell
end if
end repeat
end tell
tell application "Sublime Text 2"
activate
tell application "SizeUp"
send to space 6
send to monitor 1
end tell
end tell
tell application "Evernote"
activate
tell application "SizeUp"
send to space 7
send to monitor 1
end tell
end tell
tell application "Adium"
activate
repeat with aWindow in (get every window)
if aWindow is visible then
set index of aWindow to 1
tell application "SizeUp"
send to space 4
send to monitor 1
end tell
end if
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment