Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Closed Thread
Thread Tools Search this Thread Display Modes
Old Feb 21, 2012, 01:00 AM   #1
macrumors newbie
Join Date: Feb 2012
Applescript modifying properties with system events

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
kodydoherty is offline   0
Old Feb 21, 2012, 10:54 AM   #2
robbieduncan's Avatar
Join Date: Jul 2002
Location: London
One thread is enough. Replies in the original please: http://forums.macrumors.com/showthread.php?t=1324240
robbieduncan is offline   0

Closed Thread
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Problem with "Messages" AppleScript Events jasonash OS X Mavericks (10.9) 2 Mar 20, 2014 06:23 PM
“System Events” would like to control this computer using accessibility features Mr Rabbit Mac Basics and Help 3 Oct 31, 2013 07:50 PM
Save System in AppleScript NecroDayz Mac Programming 6 Feb 26, 2013 08:34 AM
Can AppleScript run on Address Book events anzphases Mac Programming 0 Sep 28, 2012 07:54 AM
Using Automator to create a system-wide keyboard shortcut to run an AppleScript Let's Sekuhara! Mac Programming 2 Jun 13, 2012 11:22 PM

Forum Jump

All times are GMT -5. The time now is 04:50 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC