A Mail window was in the Dock, and I clicked on it to restore it to my current Desktop. Instead of opening where I can see it, it went to some other Desktop, presumably the one it was in when it was minimized.

I use different Desktops for different projects, where one Desktop may have multiple browser windows, multiple text editors, etc., so I've disabled the default setting of "When switching to an application, switch to a Space with open windows for the application", because that seems to only make sense if you use an approach of one Space per Application, which makes no sense for me. As far as I can tell this is the only setting I'm using that may be relevant to this problem, but I really really don't want to have OS X forcing me to constantly switch spaces and force me into a one-space-per-app model.

Mission Control settings

Is there some way to make the window I restore (de-minimize) appear in my current Space/Desktop? It could be

  • a hidden preference that I set with defaults write;
  • an AppleScript that I have to trigger after restoring the window, to move it to my current Space/Desktop;
  • some utility application meant to handle this problem
  • some other workaround or solution I hadn't thought of.

(An AppleScript would probably be the least desirable approach, but it could be triggered with Alfred, QuicKeys, or BetterTouchTool, etc.)

It might also be worth mentioning that I'm using Yosemite because of problems between El Capitan and TotalSpaces2, but I'd like to know if upgrading solves this problem.


⌘ Command "click" on the minimized window in the dock, and it will restore (de-minimize) in the current workspace, regardless of which space it was on when it was minimized.

  • doesn't work if "Minimize windows into application icon" setting is enabled, but still upvoting this one. – victor Jul 16 '16 at 2:39
  • 1
    Is there any way to make this the default? I'd rather use command to put the window into "the background" (i.e. another space), much like command-clicking on a link puts the link into a background tab in a browser. – iconoclast Jul 18 '16 at 18:18

Possibly this helps your situation:

defaults write com.apple.Dock workspaces-auto-swoosh -bool NO
  • will this make it open in my current space, or just avoid switching spaces when it is restored? – iconoclast Feb 19 '16 at 3:08
  • somehow yes. It does not auto change to the space the window is opened again, which helps staying in context. you then can use the context menu in the dock to bring the window to this space. – mahal tertin Feb 19 '16 at 13:56
  • Unfortunately it has a side effect. Now if I (e.g.) select a window from the Window menu, I do not switch to the space of that window. – iconoclast Feb 19 '16 at 15:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .