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/User.menu/Contents/Resources/CGSession -suspend"
And compiled as application downloadable here.
Be sure to uncheck “Disconnect when logging out” from your Network properties in System Preferences.