Sunday, November 11, 2007

Security

With the help of Proximity (http://reduxcomputing.com/proximity.php) and this the little applescript below I now have my screen saver locking within 10 seconds of me walking away from my mac. No need to trigger the screen saver or press a button, its taken care of. Very cool.

Script:
-- Silly little screen locker
-- to be used with Proximity: http://reduxcomputing.com/proximity.php

display dialog "iPhone not nearby, locking screen. You have 5 seconds to cancel" buttons {"Continue", "Cancel"} default button "Continue" giving up after 5

do shell script ("open /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app")


0 comments: