Mac OS X lock screen

I’m now working at a company with somewhat sensitive data and I’m still using my Macbook Pro.

However, as there is no handy way to lock a screen (like Windows+L on Wintendo machines)… And when I’m at home, I don’t want to fill in my password each time the screensaver jumps on. So I created this AppleScript after some Googling.

Sure, you can use Keychain Access, but that adds yet another icon to my menu bar.

Anyway, here is the simple AppleScript line (remove the new line):

do shell script "/System/Library/CoreServices/Menu\\
Extras/ -suspend"

And compiled as application downloadable here.

Be sure to uncheck “Disconnect when logging out” from your Network properties in System Preferences.

Posted by




2 responses to “Mac OS X lock screen”

  1. Jeroen avatar

    You know that a lot of these application launchers support the lock screen stuff, right?
    If not, check out which has support for that. I know other app launchers (Quicksilver, Google Quick Search Box, etc.) have support for that too.

  2. Tuinslak avatar

    I see. Well, the quick launcher I use (Namely) doesn’t have that feature. But good to know. 🙂

Leave a Reply…