Mac OS 8.5: Workaround to Non-functional PPP Connect AppleScript

As of Mac OS 8.5 the AppleScript command "PPP connect" no longer works. Any script which uses this command will fail to initiate a PPP connection. These scripts should be modified to use the scripting facilities provided by Network Setup Scripting 1.0, included in Mac OS 8.5 and later.
Here is a sample script using "PPP connect" to initiate a PPP connection:

PPP connect

This command used to initiate a PPP connection with the active Remote Access configuration.

This same script using Network Setup Scripting would read:

tell application "Network Setup Scripting"

open database

tell Remote Access configuration x to connect

close database

end tell

"Remote Access configuration x" is an existing Remote Access configuration containing the values for user name, phone number, etc. for the connection you wish to make. This script will work for any Remote Access configuration regardless of protocol, so it can be used for either PPP or ARAP connections.

Published Date: Feb 20, 2012