I am working with OS 8.6 und control panel TCP/IP D1-2.0.1. I tried to choose a TCP/IP configuration with the following script:
tell application “Network Setup Scripting”
set this_config to “Dataway”
set active of TCPIP v4 configuration this_config to true end tell
Does not work. What is the problem? My TCP/IP control panel? Is there a solution?
Thank you for your help.
It should look more like this:
tell application "Network Setup Scripting"
try
open database
set active of TCPIP v4 configuration this_config to true
close database
on error
close database
end try
end tell
Have a look at Akua’s “tcpip configuration”: (Get/Set the current TCP/IP configuration)
The command: tcpip configuration string – The name of the new configuration to use.
The returned result: string – Tne current (previous if you are setting a new one) TCP/IP configuration.
Andreas
PS There is also “tcpip configurations” which will return a list of your saved configs.
I doubt that I only speak for myself if I say that those who post answers to questions would appreciate feedback from the asker.
Even if the response is “Your suggestion was useless because…” that might be useful information for the “answerer”.
No response at all is not encouraging to those who like being helpful, and some might even think it impolite.