Turn on Remote Login

I want to turn on Remote Login (SSH access) using AppleScript. Does anyone have any ideas?

Thanks

-b

Hi

Assuming you are working in 10.5 Leopard (not sure how compatible it is with tiger) try this:

tell application "System Preferences" to set current pane to pane "com.apple.preferences.sharing"
tell application "System Events" to tell process "System Preferences"
	click checkbox 1 of row 6 of table 1 of scroll area 1 of group 1 of window "Sharing"
end tell

you might have to change the row number depending>

working in Tiger. do you have a suggestion? that one didnt work

thanks

-b

Hi

upgrade to leopard :smiley:

Seriously though run the script below it should work i tested it on a mac we have thats running tiger and it was fine, you may have to alter the row number
row 1 being the top item counting down!!
the only difference is the group in leopard it’s just group in tiger its tab group!

tell application "System Preferences" to set current pane to pane "com.apple.preferences.sharing"
tell application "System Events" to tell process "System Preferences"
	click checkbox 1 of row 6 of table 1 of scroll area 1 of tab group 1 of window "Sharing"
end tell

good luck