Pinning Application to Virtual Desktops in OS X

This post may contain affiliate links. Please read my disclosure for more info.

I’m very picky when it comes to organizing my workspace and that includes my desktop. One of the features that really helps me organize my screen is virtual desktops, which  allows me to pin certain applications to certain virtual desktops, instead of having all application windows on a single screen.

Mission Control

To add virtual desktops launch Mission Control either by pressing the F3 key, by clicking the 3rd icon on the left side in the dock or by swiping with 3 fingers up on your trackpad. Once in mission control, move your mouse to the upper right corner and you’ll see an icon with a plus sign appear (see screenshot above). Just click on the plus sign and OS X creates a new virtual desktop for you. To get out of Mission Control, simply swipe down with 3 fingers or just click on the grey area on sides.

To pin applications to a specific desktop, click on the application icon in the dock (to switch to the desktop the application is running on), launch Mission Control and simply drag and drop the application window onto the desktop you want to have it assigned to. That pins the application to the virtual desktop of your choice.

Next, right-click on the application icon on the dock and choose Options –> (Assign to) –> This Desktop. That pins the application to the exactly the virtual desktop you are on right now.

Now just repeat those steps for all the applications you want to pin to specific desktops.

I use the following desktop assignment:

  • Desktop 1: Mail
  • Desktop 2: Safari
  • Desktop 3: Messages and Skype
  • Desktop 4: Calendar
  • Desktop 5: [unassigned but used for Word, Excel…]
  • Desktop 6: [unassigned but used for Quicken…]
  • Desktop 7: VMware Fusion
  • Desktop 8: Aperture
  • Desktop 9: iTunes

I just got the new MacBook Pro Retina which came pre-installed with Mountain Lion and after assigning all the applications to my virtual desktops I noticed that at every reboot my assignment order was screwed up. So Calendar ended up on Desktop 2 or 3 etc. and that drove me nuts. Later I found out, that OS X by default re-assigns applications to desktop based on when the application was last used.