Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Lock screen with password on a per-use basis' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Lock screen with password on a per-use basis
Authored by: rizzoli on Feb 17, '09 02:38:09AM
Thanks for the hint, it was inspiring, since I was looking for a similar solution to a slightly different problem. When I am home or work I do not want to enter the password to unlock the laptop every time, assuming it's "safe". On the other hand, when I'm on the road, I want the laptop to be locked at max security, in order to give (at least) some hard time to those wo got it from me. My solution was to create two simple applescripts (copied from Apple's website) to lock and unlock the security settings. I have then created two applications using the Script Editor and put them in a folder that I later dropped on my Dock.

Here you are the scripts, in case you're interested and you don't bother to look it up on Apple's website:

Lock system
tell application "System Events"
tell security preferences
get properties
-- returns: {require password to wake:false, class:security preferences object, secure virtual memory:false, require password to unlock:false, automatic login:false, log out when inactive:false, log out when inactive interval:60}
set properties to {require password to wake:true, require password to unlock:true, automatic login:false, log out when inactive:true, log out when inactive interval:60}
end tell
end tell

Unlock system
tell application "System Events"
tell security preferences
get properties
-- returns: {require password to wake:false, class:security preferences object, secure virtual memory:false, require password to unlock:false, automatic login:false, log out when inactive:false, log out when inactive interval:60}
set properties to {require password to wake:false, require password to unlock:false, automatic login:true, log out when inactive:false, log out when inactive interval:60}
end tell
end tell


[ Reply to This | # ]