Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Applescript and PPP Connect Frustration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applescript and PPP Connect Frustration



I ave a Simple AppleScript that should connect to a server for download
information needed for enrollment - so it is a one shot thing.

The script is very simple - but certain weirdness is associated with it and
System Preferences.

Script:

tell application "Internet Connect"
connect to telephone number "aNumber" as user "aUser" with password
"aPassword"
end tell

Really simple - and it works if you have the System Preferences initial setup
i.e. the "Automatic" set - so long as the PPP User "Name:" is the same as
aUser in the script.

However if you remove the User "Name:" in PPP for the "Automatic" set - then
you never get PPP authentication.

Thus it looks as if the phone number and password are coming from AppleScript
and the user name is coming from the preferences when Internet Connect is
run!! Note this has only been tested on Mac OS X 10.1.3 and 10.1.5.

Maybe I'm doing something wrong - I hope so and tthat someone can point me in
the right direction.

The original purpose of doing it this way was to avoid the authentication step
that is required when programmatically setting up an alternate System
Preference for PPP/dialout. An alternative that was considered was pppd but
again you need root priviledge to set up the configuration files one then
requires for pppd and chat.

Any ideas from anyone on how one can dialout and do ppp as a "one shot thing"
without needing authentication.

Any and all help that I get is gratefully appreciated - thanks - A. Lewis
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.