Re: lock the screen from the keyboard, win a prize
Re: lock the screen from the keyboard, win a prize
- Subject: Re: lock the screen from the keyboard, win a prize
- From: Paul Skinner <email@hidden>
- Date: Mon, 25 Nov 2002 19:34:00 -0500
On Monday, November 25, 2002, at 05:01 PM, Philip Aker wrote:
Hey all,
I've received this trick off-list from a gentleman with a big heart.
Check out the 'defaults' call with a host option (no MACS sleuthing)
and another one for setting a value directly with an integer:
do shell script "defaults -currentHost write com.apple.screensaver
askForPassword -integer " & val
Cheers,
Philip Aker
Excellent!
Unixy goodness. mmmm...
set previousState to do shell script "defaults -currentHost read
com.apple.screensaver askForPassword "
do shell script "defaults -currentHost write com.apple.screensaver
askForPassword 1"
tell application "ScreenSaverEngine" to run
do shell script "defaults -currentHost write com.apple.screensaver
askForPassword -" & previousState
I love it when a thread works out. It's hard to imagine where this is
all going to be in a year. So much to learn.
--
Paul Skinner
Mac OS X 10.2.2
AppleScript 1.9
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.