Alexander Kucera

Follow @AlexKucera on Micro.blog.

Securing Your Laptop at Work

I wanted to share this litte trick with you for quite a while now, but of course I have been busy and other things came in the way. They always do.

I work with my MacBook Pro at home and at the office. That is of course nice, because it is my only base of operations and I have everything in one place.

But do you know the feeling that you are working with your laptop at work and don’t want anyone to snoop around on it, because it also is your private laptop and has all kinds of personal stuff on it? I know I do.

Luckily there is an easy fix for that. Enable the setting that pops up a password request after your machine wakes from sleep or when it disables the screen saver. But now you always have to enter the password at home, too. Kind of annoying.

There is an easy fix for that as well. The key is location aware software like MarcoPolo. MarcoPolo allows you to trigger certain actions depending on where it knows you are at the moment. Pretty cool stuff. That means it allows you to enable or disable the screen saver password at home or at work. Neat isn’t it?

I made a little [screencast] [2] walking you through the steps. All you need is MarcoPolo which you can get for free from the developers website.

If you don’t want to use MarcoPolo you can also use AppleScript to do the same thing with whatever software you prefer. In fact I used the scripts with MarcoPolo, because I overlooked the very convenient built-in action that already does that.

The AppleScripts are as follows:

####Enable Screen Saver Password

tell application "System Events"
    tell security preferences
        get properties
        set properties to {require password to wake:true}
    end tell
end tell

####Disable Screen Saver Password

tell application "System Events"
    tell security preferences
        get properties
        set properties to {require password to wake:false}
    end tell
end tell

Have a look at the screencast for more in-depth info.

I hope you enjoyed this little hint. Check back for more in the future.