Locked wakeup... Why won't this work?
Locked wakeup... Why won't this work?
- Subject: Locked wakeup... Why won't this work?
- From: Gnarlodious <email@hidden>
- Date: Thu, 10 Mar 2005 08:30:56 -0700
Title: Locked wakeup... Why won't this work?
This script worked in 10.2.x but not in 10.3.
try
set previousState to do shell script "defaults -currentHost read com.apple.screensaver askForPassword"
on error
set previousState to 0
end try
do shell script "defaults -currentHost write com.apple.screensaver askForPassword 1"
tell application "System Events" to sleep
do shell script "defaults -currentHost write com.apple.screensaver askForPassword " & previousState
It does write the askForPassword value to file
~/Library/Preferences/ByHost/com.apple.screensaver.*.plist
but for some reason it's not asking me for the password upon waking. It does
ask if the Security Prefpanel is set to "Ask for password"
What am I doing wrong? Is this broke in 10.3.x??
-- Gnarlie
http://Gnarlodious.com/Cogent/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden