• 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
Re: AppleScript to Unlock Computer stopped working in 10.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript to Unlock Computer stopped working in 10.6


  • Subject: Re: AppleScript to Unlock Computer stopped working in 10.6
  • From: email@hidden
  • Date: Wed, 30 Sep 2009 07:30:04 -0700

So I looked at your script and I wondered, why use the screensaverengine, which doesn't have a dictionary and probably wasn't intended to repsond to apple events. And what's wrong with doing it this way....

--lock
tell application "System Events"
tell security preferences
set properties to {require password to wake:true}
sleep
end tell
end tell

--unlock
tell application "System Events"
tell security preferences
set properties to {require password to wake:false}
end tell
end tell

So I ran it and my mac stopped working, wouldn't wake from sleep, had to reboot.

ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >AppleScript to Unlock Computer stopped working in 10.6 (From: Greg Rumple <email@hidden>)

  • Prev by Date: Re: Move email to outbox using Apple script
  • Next by Date: Re: AppleScript to Unlock Computer stopped working in 10.6
  • Previous by thread: AppleScript to Unlock Computer stopped working in 10.6
  • Next by thread: Re: AppleScript to Unlock Computer stopped working in 10.6
  • Index(es):
    • Date
    • Thread