Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > PPP disconnect

PPP disconnect
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2001
Location: NY, NY USA
Status: Offline
Reply With Quote
Jun 8, 2001, 11:37 PM
I recently read in Mac Secrets 5th Edition Chap 25 pg. 935 @ the top, that the ppp applescript is in the Apple Extras folder, I cant find it anywhere and niether can sherlock? or another friend of mine on her 9.0.OS ? 0r on my 8.5 CD or 8.1 ? At one time (i think it was around 8.1 ) i was able to disconnect from the desktop icon ( My Favorite) or from a apple menu disconnect command, simple single click. i dont care for the control strip method
thanks in advance for your reply http://forums.macnn.com/cgi-bin/smile.gif
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Jun 9, 2001, 04:46 AM
With the introduction of OS 9.1 Apple has discontinued the Remote Access Commands scripting addition. PPP control is now done with the Network Setup Scripting commands. That might be the reason why this script isn't to be found anymore.

It seems you have to write your own script. Infos how to do are to be found in the AppleScript Guidebook Open Transport (Networking). get it from http://www.apple.com/applescript/help_mods.html. There are sample scripts included which you can copy and paste into the Scripteditor. For disconnecting it shows as example:
<font face = "courier">
set the config_name to "My Remote Connection (Toll free)"
tell application "Network Setup Scripting"
-- open the Networking Database
open database
-- start the connection process
disconnect Remote Access configuration config_name
--close the Network Database
close database
end tell
on error
-- close the database if it was left open
tell application "Network Setup Scripting" to close database
on error
end try
end try

Seems you have to use the name of your current configuration for config_name

If you want it to use your current configuration, delete the line

<font face = "courier">set the config_name to "My Remote Connection (Toll free)"</font>

and insert the following after <font face = "courier">open database</font>:

<font face = "courier">set the current_config to every Remote Access configuration whose active is true</font>
<font face = "courier">set the current_config to the name of (item 1 of the current_config)</font>

That should work though I've not tested it.

This comes with no warranties, use on your own risk and backup all important data first

Hope that helps

Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Privacy Policy
All times are GMT -4. The time now is 10:33 PM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2