TCP/IP config change
TCP/IP config change
- Subject: TCP/IP config change
- From: Luis Ernesto Hernandez <email@hidden>
- Date: Mon, 1 Jul 2002 07:11:44 -0400 (VET)
Hello, listers:
I'm a newbie scripter fascinated with the possibilities of applescript
automating routine tasks, so I set out to write a simple script to switch
TCP/IP configurations, but I keep running into a wall.
Here's my problem:
My office uses a hybrid Mac/PeeCee network. The Macs (one running OS8.5
and the other OS9.0) access the Windows ME volumes (and viceversa) using
Thursby's DAVE, which pipes things via TCP/IP. Whenever I want to surf the
web I have to open the TCP/IP control panel manually, open the file menu,
select configurations, switch TCP/IP configs from a preset PPP to a preset
Ethernet, click on the Make Active button, etc. Here's where I thought a
script or two would come in handy. In its crudest form, the script goes
like this:
tell application "Finder"
activate
select file "TCP/IP" of folder "Control Panels" of folder "System Folder"
of startup disk
open selection
tell application "TCP/IP"
activate
do menu menu item "Configurations" of "File" menu
click location {43, 48}
click button "Make Active"
click button "Done"
do menu menu item "Quit" of "File" menu
end tell
So when I check the syntax using script editor, the script runs fine until
the seventh line; when I get an error message saying thus:
expected end of line, etc. but found class name.
Actually, I haven't been able to test the script beyond the seventh line
because of the error, but after it, it's supposed to select one of two
available configurations, make it active and close the dialog; but when
the dialog is closed a new dialog opens, warning that any other TCP/IP
currently established connections will be interrupted, along with a
"Cancel" and a "OK" button. How do I tell the script to click "OK"?
Regards,
Luis E. Hernandez
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.