Skip to content

Instantly share code, notes, and snippets.

@zachwaugh
Created January 26, 2011 18:14
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 zachwaugh/797143 to your computer and use it in GitHub Desktop.
Save zachwaugh/797143 to your computer and use it in GitHub Desktop.
AppleScript to fix twitter appearing on all spaces issue
tell application "System Events"
set x to application bindings of spaces preferences of expose preferences
set x to {|com.twitter.twitter-mac|:3} & x -- 3 is any space you don't want twitter on
set application bindings of spaces preferences of expose preferences to x
set x to {|com.twitter.twitter-mac|:4} & x -- 4 is the space you want twitter to be on
set application bindings of spaces preferences of expose preferences to x
end tell
@zachwaugh
Copy link
Author

Twitter stays on the correct space once it's space has been changed after it launches. I run this via Alfred, instead of having to manually do it in the spaces preferences. This worked for me, but I never use AppleScript and figured it out from here: http://stackoverflow.com/questions/2305491/applescript-opening-an-app-in-space-number-n, so your mileage may vary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment