-->

25 February 2013

Mac tip - lock your screen

If you have kiddies around when you’re working at home you know how risky it is to leave your computer unattended – an important report can be ‘edited’ or the website you've finally found disappears!  It can be a hassle to put your Mac to sleep if you need to leave your desk for a minute, and then wake it up again when you come back, but there is a quicker way; by setting up a keyboard shortcut that shows your Mac’s login screen without logging you out and without closing anything you are working on.   It takes just a few minutes to set up:


Lock Screen Service

  1. Launch Automator from your Applications folder.
  2. Select “Service” as the document type.
  3. Select “Utilities” from the list on the left, then double-click “Run Shell Script” in the next column.


  1. On the top-right side of the screen, adjust the drop-down menus so the statement reads: “Service receives [no input] in [any application]“
  2. Copy the following command into the large text box that appears:
/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend

6.  Go to File > Save and name your service “Lock Screen”.  Once saved, you can now quit Automator.

Lock Screen Keyboard Shortcut

  1. Open System Preferences and go to the Keyboard pane.
  2. Next, select the “Keyboard Shortcuts” tab.  From the list on the left, select “Application Shortcuts”.  Click on the plus (+) button below to add your new shortcut.
  3. In the dialog box leave “All Applications” selected in the first menu.  Enter “Lock Screen” as the Menu Title.  This has to be exactly the same name you entered when saving the service in Automator.  Finally, enter your keyboard shortcut.  You need to choose a combination of keys - Command+Shift+L is one that isn’t used for anything else so it’s a good choice.


4. Click Add.

Now when you press your keyboard shortcut (Command+Shift+L), the Mac login screen will immediately be displayed.  You’re actually still logged in and anything that is working in the background will continue (like a large download).  No one will be able to access your screen until you enter your password. When you do, everything on your desktop will be there just as you left it.

If you like this tip, you'll find lots more on my Facebook Page.  Every morning there is another operating system tip, not just for Macs, but Windows as well.

1 comment:

  1. thanks for this !!
    A tad long & complicated but easier than logging off all the time!!

    ReplyDelete