
/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession -suspend
Once you’ve done that, your workflow should look like the image above.
Save the service as “Lock Screen” (or whatever you want), then open up System Preferences > Keyboard > Keyboard Shortcuts. If you click on Services in the leftmost pane and scroll down to the bottom, you’ll find your new service in the list and you can assign it whatever keyboard shortcut you want. Now, when you hit that shortcut, your Mac will head into Fast User Switching mode, keeping all your programs running as normal (but requiring a password to access them again. Thanks Scott!



















Matthew Wicks
Thursday, March 10, 2011 at 6:47 AMNice. I found that I had to escape the space otherwise it borked out. Ended up with:
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
DrEvil
Sunday, March 13, 2011 at 6:23 AMYup. I needed to include the extra \. But thanks this is just what I was looking for.
Now which key combination is best???