script to change network port configurations?

I’m looking for a script that will disable / enable my ethernet network (which i use to access the net).

I do this a few times a day. Normally i go to:

system pref’s, network, change to network port configurations from the “show” drop down menu, then click the built in ethernet check box.

Can a script automate the whole process? I haven’t had any luck so far!

Any help hugely appreciated!

Greg

Model: Imac G5 1.8
AppleScript: 1.9.3
Browser: Safari 312.6
Operating System: Mac OS X (10.3.9)

Hello troppo55,
Check out this post where they script the Universal Access preference pane:
http://bbs.applescript.net/viewtopic.php?pid=42228
A similar tactic of scripting the GUI might help solve your problem.

I do not have much experience doing this myself, but the application “UI Browser” can really help pin down the correct syntax for the GUI elements you wish to target, and the code to get/set values.

jON bEEBE