Skip to content

Instantly share code, notes, and snippets.

@donthorp
Created November 21, 2010 19:38
Show Gist options
  • Save donthorp/709070 to your computer and use it in GitHub Desktop.
Save donthorp/709070 to your computer and use it in GitHub Desktop.
For use on my laptop when I'm switching between displays. It currently doesn't move the window to the correct coordinates, but it does put it in the spaces like I want.
tell application "System Events"
tell expose preferences
tell spaces preferences
set apps to application bindings
tell application "Finder"
set displayBounds to bounds of window of desktop
if (item 3 of displayBounds > 1680) then
set tweetDeckScreen to 65544
else
set tweetDeckScreen to 4
end if
end tell
set |tweetdeckfast.fff259dc0ce2657847bbb4aff0e62062efc56543.1| of apps to tweetDeckScreen
get apps
set application bindings to apps
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment