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


Click here to return to the 'Scripts to disable and enable password for lock screen after sleep or screen saver' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Scripts to disable and enable password for lock screen after sleep or screen saver
Authored by: Sesquipedalian on Dec 07, '12 06:13:08PM
Rather than relying on GUI scripting, this can be accomplished directly using the following AppleScript code:

Turn on password:
tell application "System Events" to set security preferences's require password to wake to true

Turn off password:
tell application "System Events" to set security preferences's require password to wake to false

Toggle password:
tell application "System Events" to set security preferences's require password to wake to not (security preferences's require password to wake)

[ Reply to This | # ]