I am running 10.7. I want to use system events to change the security settings on my mac. When I run this script it appears to work by asking for my password for each one of the changes. The issue is nothing happens after. I never get an error nor is any settings changed.
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
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