David C Andrews asked ...
>Is there any way to script the Internet Connection (PPPoE in the Menu
>Bar that shows as <ïïï>)? UlElementInspector show the menu name as ""
>so there appears that there is no way to "Connect" or "Disconnect"
>using script on the Menu Bar. Any help would be appreciated. (I do not
>want to have to open a control panel to do this, unless it can be
>hidden -- not come up even briefly.)
The most I ever did with Internet Connect was this ...
tell application "Internet Connect"
set current configuration to PPP configuration "Internal Modem"
connect PPP configuration "Internal Modem"
set rect to bounds of (item 1 of windows)
set width to (item 3 of rect) - (item 1 of rect)
set height to (item 4 of rect) - (item 2 of rect)
set item 1 of rect to hOff
set item 3 of rect to hOff + width
set item 2 of rect to vOff
set item 4 of rect to vOff + height
set bounds of (item 1 of windows) to rect