|
|
Scripts to disable and enable password for lock screen after sleep or screen saver
tell application "System Preferences"
reveal anchor "General" of pane "com.apple.preference.security"
end tell
tell application "System Events" to tell process "System Preferences"
tell (checkbox 1 of tab group of window 1 where description starts with "Require password")
click
if value is {1} then
set message to "Password enabled"
else
set message to "Password disabled"
end if
do shell script "terminal-notifier -message '' -title " & quoted form of message
end tell
end tell
quit application "System Preferences"
Scripts to disable and enable password for lock screen after sleep or screen saver
I forgot that the setting can be changed directly: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.16 seconds |
|