MacOS – shortcut which invokes the “Login Window…” fast user switching command

keyboardmacos

Firstly, let me say that there's two questions on Think Different that claim to answer this question but do not:

  1. Does the MacBook Air have a Fast User Switching (Login Window) shortcut key?
    The answer to this question seems to "lock" the mac, but doesn't invoke the "Login Window…" command.
  2. Can I assign a keyboard shortcut to bring up the Mac OS X Login Window?
    The answer to this question provides a shortcut which initiates a log out, not a user fast switch.

So, is there a shortcut for this command?

thanks.

Best Answer

The short answer is no. OS X Lion doesn't have a way to assign a keyboard shortcut to Fast User Switching (which is going to the Login Window without logging off the current user).

There are, however, various alternatives to achieve that. You've pointed to different workarounds (I haven't tested those), I'll name a few more:

  • What I use: Launchbar. Simply invoke it, type "log.." and you already have the option to press enter to go to the login window, can't get much faster than that (you could assign a shortcut to that if you wish).

  • Although I haven't used it in a while, the "competitor" Alfred + Powerpack had something similar, the command was "lock" as far as I can remember.

  • BetterTouchTool: recommended by other users (I've seen this app in friend's Macs but never used it myself). It will also do what you want (shortcut to go to the Login Screen). It's been also recommended in the answers you linked. I add it here for reference and because someone mentioned it in the comments by @Steven Fischer

  • Using pure Scripting like the one used here. Note however, that most of the scripts that you will find, will make you write and hardcode the account's password, which is not a good idea. But if you check there, there's an alternative that doesn't do that. I haven't tested that myself, but if that script works, assigning it to a keyboard shortcut via Automator/Service ought to be a simple task. This Super User answer better explains the process (thanks @andy)

In any case, there's no built in method by default, but as you can see, with some digging and/or third party, you can do it. Using something like Launchbar or Alfred is a good idea for other reasons anyway ;)