Automatic internetsharing at boot

Macintosh software/hardware discussion and troubleshooting

Moderator: James Steele

Post Reply
Klaus
Posts: 1173
Joined: Sat Oct 16, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Nordring 38, CH - 3013 Berne

Automatic internetsharing at boot

Post by Klaus »

I successfully saved a script as app and put it into ligin items, to start up
internetsharing at boot, so I can use a Mac Mini via airport from remote with vnc...
( 10.6.8 )

tell application "System Preferences"
activate
end tell

tell application "System Events"
tell process "System Preferences"
click menu item "Sharing" of menu "View" of menu bar 1
delay 2
tell window "Sharing"
click checkbox 1 of row 11 of table 1 of scroll area 1 of group 1
delay 1
if (exists sheet 1) then
if (exists button "Turn AirPort On" of sheet 1) then
click button "Turn AirPort On" of sheet 1
delay 1
end if
click button "Start" of sheet 1
end if
end tell
end tell
end tell


Problem :
Internetsharing has to be turned off at shutdown every time...

Any script spezis around that can help ? ( 10.6.8 )

Thanks a lot

and best regards

Klaus
Post Reply