Created
January 26, 2011 18:14
-
-
Save zachwaugh/797143 to your computer and use it in GitHub Desktop.
AppleScript to fix twitter appearing on all spaces issue
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.