Jan 11, '03 11:52:00AM • Contributed by: thefinite
tell application "System Preferences"Just cut and paste it into Script Editor and save it as an application. Then just make it a login item.
activate
end tell
tell application "System Events"
tell process "System Preferences"
click menu item "Sharing" of menu "View" of menu bar 1
delay 10
tell window "Sharing"
if (exists tab group 1) then
tell tab group 1
click radio button "Internet"
delay 1
click button "Start"
delay 1
end tell
end if
end tell
end tell
end tell
ignoring application responses
tell application "System Preferences" to quit
end ignoring
[Editor's note: I haven't tested this myself, but it seems much simpler than the previously posted hint. There's also another hint that may be useful...]
