I have got what I think to be the correct code, but it doesn't seem to fully accomplish what I want. All I want is to get applescript to select a checkbox in the Sharing pane in system prefs. I'm not sure why it won't check the box, I have (to my knowledge) gotten the heirachy correct but there's nothing doing.
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preferences.sharing"
end tell
delay 2
tell application "System Events" to tell process "System Preferences"
click checkbox 1 of row 1 of table 1 of scroll area of group 1 of window
"Sharing"
end tell
Thanks!
