• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TCP/IP config change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TCP/IP config change


  • Subject: Re: TCP/IP config change
  • From: Andy Wylie <email@hidden>
  • Date: Tue, 02 Jul 2002 07:06:09 +1200

on 1/7/02 11:11 PM +1200: Luis Ernesto Hernandez wrote:

> 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:

here's a script which requires Akua Sweets OSAX, some lines are wra
pped...

try
if (RA configuration) is not equal to (tcpip configuration) then error
number 100
set newConfig to choose from list {"config", "names", "here"} default
items RA configuration
if result is false then error number -128
RA configuration (newConfig as string)
tcpip configuration (newConfig as string)
tell application "Finder"
open alias (((path to control panels folder) as string) & "Remote
Access")
end tell
if (RA configuration) is not equal to (tcpip configuration) then error
number 100
on error m number n
if n = -128 then
return
else if n = 100 then
error "Configs out of Sync"
else
error {n, m}
end if
end try

--http://www.akua.com/Software/AkuaSweets/index.html

_____________________________ Andy
_______________________________________________
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.

  • Prev by Date: Filemaker Pro active window
  • Next by Date: Re: Filemaker Pro active window
  • Previous by thread: Re: TCP/IP config change
  • Next by thread: RE: TCP/IP config change
  • Index(es):
    • Date
    • Thread