Fixing the Twitter for Mac and Spaces bug

Posted on: 23rd January 2011 19 Comments

After the App Store for Mac turned up in the latest Mac OS X update, I downloaded and started using Twitter for Mac, Apples own Twitter app. I’ve used Tweetie before, and since Twitter for Mac technically is Tweetie 2, it was a naturally thing to do. And the app has been ok, so far. That was, until today, when I combined it with Spaces.

I think Spaces in Mac OS X is great, giving me four windows to work in. Then I can have mail, Twitter and my browser in one window, Scrivener in one, Photoshop in another, and so on. And by not having Twitter in my face when I’m working, I can focus on boring things as well, without being distracted. But when doing this today (I have to finish two websites and a report), this went tits up, when Twitter decided to stay on my screen no matter what window I chose with spaces.

This apparently is a bug from the 2.0.1 update (when they changed the icon from black to blue, the bastards). To work around this, you have to do the following.

Go to System Preferences -> Exposé & Spaces

The path to the spaces menu on Mac OS X

The path to the spaces menu on Mac OS X

In the Spaces menu, add Twitter to Application Assignment, and choose Every Space. I know this is what we don’t want, but you need to go through this step anyway.

Spaces menu

Spaces menu - add app and choose all windows

Then change Every Space to the desired space (in this case Space 1)

Spaces menu - change to specific space

Spaces menu - change to specific space

The good news: You now have Twitter in just one window. The bad news: When you close Twitter, this preference is forgotten, and you have to do it all over.

This is obviously a bug, so hopefully they’ll fix it, even if the fix wasn’t included in the 2.0.2 update.

UPDATE 12/05-2011: With the new version (2.1) available for download now, the problem is finally fixed.

Tags: ,

19 Responses

  1. [...] This post was mentioned on Twitter by Juan Carlos Alonso, Jonas Knutsen. Jonas Knutsen said: New blog post: Fixing the Twitter for Mac and Spaces bug http://bit.ly/dNF9hx [...]

  2. philostein says:

    I couldn’t get this to work in Twitter 2.02, it stays in every Space.

    • Jonas says:

      Hmm, that’s strange. It works for me. I deleted my Spaces configuartion, and did it once more, and it worked then as well.
      You can try by opening and closing Twitter, and than change the Space value from one to many to one, and see if that works.
      But anyway, hopefully they’ll fix this in the next update.

  3. Flavio says:

    Thanks a lot. Now twitter stays in just one space.
    I use spaces a lot, but never realized that this simple configuration was possible.
    Very helpful.

  4. Thiago J. says:

    Thanks dude! I was getting crazy with that ;P I think there are a bunch of features that are needed in the app. Like the exact number of unread tweets, mentions, DMs, and what so ever.

  5. kfir says:

    doesn’t work for Version 2.0.2 (2.0.2)

  6. Tobias says:

    Hey,

    Try this ApplesScript:
    It basically sets the Spaces to all then once again to your preferred space.

    Just open Automator to make an application (or workflow or a service).
    Search for Apple and select Run AppleScript.
    Copy the below text into the field (replace everything) and save it.
    (Also, replace the “1″ to your own Space.)

    You can either click on the application to “fix” twitter or go to you login items in your account settings to make it run when you login.

    Of course, milage may wary but it works on my end.

    tell application “System Events”
    set x to application bindings of spaces preferences of expose preferences
    set x to {|com.twitter.twitter-mac|:0} & x
    set application bindings of spaces preferences of expose preferences to x

    end tell

    tell application “System Events”
    set x to application bindings of spaces preferences of expose preferences
    set x to {|com.twitter.twitter-mac|:1} & x
    set application bindings of spaces preferences of expose preferences to x

    end tell

  7. Paul says:

    Thanks – this worked a treat for me!

  8. Steve says:

    THANK YOU SO MUCH! Twas making me go cuckoo to tweet.

  9. Ryan says:

    Also works to delete Twitter from Application Assignments and then re-add in the Space you’d like to see it in.

  10. SithStrife says:

    @tobias: thanks man! this worked for me. Now i can fix this bug in one click :D

  11. tomtom says:

    Wow, what a life saver. This little ‘gem’ was doing my head in. I tried to figure something out using Automator, but couldn’t and haven’t worked out how to use Apple Script yet. THANKS :-)

  12. Dan says:

    It seems in 2.0.2 you don’t have to set it to ‘Every Space’ first. You can just assign it a space. So try that if you’re having trouble.

  13. Seraj Gool says:

    Worked for me!! Thanks a mil, was really annoying having Twitter app follow me around through my Spaces!!!

  14. Nik says:

    @Tobias; Thanks for the script!

    Note to other users: make sure you change the typographic quotes to straight quotes, or the AppleScript will not compile…

  15. Monnie Bradt says:

    I have recently started a web site, the info you offer on this site has helped me tremendously. Thanks for all of your time & work.

  16. elad says:

    Hi guys, I wrote an automatic script to fix the spaces problem:
    http://bit.ly/jig4Z4

    Enjoy!

  17. Funny says:

    Funny, this was the exact functionality that I wanted so that when I used the hotkey to activate the app it didn’t change what space I was working in. To each his own I guess.

  18. Nick says:

    This doesn’t touch another bug I’ve discovered, though, where Twitter.app forcibly pulls you to its active Space when hiding other apps. For example:

    Space 1: Twitter, Firefox.
    Space 2: Mail, Vienna.

    If I’m on Space 2 and I cmd-H hide Vienna, Twitter yanks me over to Space 1 and gives itself focus (in SL, anyway). Why? Who knows. I wish I knew how to avoid this.

    Any insight?

Leave a Reply