derienzo Posted November 6, 2013 Posted November 6, 2013 Hi, I am currently writing an applescript that will activate remote login and remote management from system preferences AND add the admin account under "Allow access for:" Here is what I currently have, tell application "System Preferences" activate delay 0.5 set current pane to pane "com.apple.preferences.sharing" end tell delay 0.5 tell application "System Events" to tell process "System Preferences" clickcheckbox 1 of row 7 of table 1 of scroll area 1 of group 1 of window "Sharing" delay 0.3 clickcheckbox 1 of row 8 of table 1 of scroll area 1 of group 1 of window "Sharing" delay 0.3 end tell This succesfully activates both remote login and remote management but I can't seem to find out how to click the "+" button under these tabs, or then add the correct user. Any help would be appreciated.
TomCollins Posted November 6, 2013 Posted November 6, 2013 Do you image your Macs? I believe that you could set this up in the master image, meaning you wouldn't need to manually do it through AS.
misterfriendly Posted November 6, 2013 Posted November 6, 2013 Using Applescript for this is klugey, and doing it via Applescript UI scripting is klugiest of all. The terminal commands systemsetup and kickstart have you covered. Look at this: bynkii.com: Some command - line tips for Apple Remote Desktop and OS X
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now