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"
set current pane to pane "com.apple.preferences.sharing"
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"
clickcheckbox 1 of row 8 of table 1 of scroll area 1 of group 1 of window "Sharing"
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.