1 2 3 4 5 6 7 8 9 10
tell application "System Events" tell network preferences tell current location set aPPPoEService to a reference to (first service whose kind is 10) if exists aPPPoEService then connect aPPPoEService end if end tell end tell end tell