Lock/unlock screen using AppleScript and Salling Clicker

Jun 21, '06 07:30:00AM

Contributed by: Anonymous

I know there are hints in the system here for locking the screen, but this is a different and fancy one. Basically, what I want is to lock the screen while I am away from my computer using Salling Clicker, and then unlock it when I am back. I found the newly-released JackSMS (covered as part of this hint) has a cool scriptable function.

Just put this script code in the "Leaving Proximity" section of Salling Clicker's Phone Events:

tell application "JackSMS" to set lock screen to true
And put this code in the "Entering Proximity" section:
tell application "JackSMS" to set lock screen to false
So what is the cool point here? When you are back, you do not need enter your password; your computer gets automatically unlocked without any user intervention. I did not find any other way to do this (someone please correct me if I am wrong).

[robg adds: My Palm Treo, unfortunately, doesn't support Phone Events, so I can't test this one.]

Comments (5)


Mac OS X Hints
http://hints.macworld.com/article.php?story=2006061914363693