• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Locked wakeup... Why won't this work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: What are the limitations of the AppleScript data structure and tools?
  • Next by Date: check a folder for folders and files
  • Previous by thread: Re: Data arithmetic
  • Next by thread: check a folder for folders and files
  • Index(es):
    • Date
    • Thread