I am trying to create a script to set some security settings on my MBP running Lion.
I found this example using system events
tell application "System Events"
tell security preferences
get properties
set properties to {log out when inactive:false, automatic login:true, require password to unlock:false, log out when inactive interval:14, require password to wake:false}
end tell
end tell
The script runs and asks for my admin password for each change. The issue is it does not actually change anything. I need this to change those preference but I don't understand why it is not working.
I found this example using system events
tell application "System Events"
tell security preferences
get properties
set properties to {log out when inactive:false, automatic login:true, require password to unlock:false, log out when inactive interval:14, require password to wake:false}
end tell
end tell
The script runs and asks for my admin password for each change. The issue is it does not actually change anything. I need this to change those preference but I don't understand why it is not working.