Jump to content

Recommended Posts

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...