Re: What has happened to Network Setup Scripting?
Re: What has happened to Network Setup Scripting?
- Subject: Re: What has happened to Network Setup Scripting?
- From: Barry Chern <email@hidden>
- Date: Wed, 24 Jan 2001 13:20:20 -0500
Here is the significant single line, surrounded by opens and tells and closes for convenience. As I said, it's right out of the examples and it worked for years with a couple different operating systems. Now, thConfig ends up an empty list
tell application "Network Setup Scripting"
try
open database
on error errmsg
if errmsg contains "already open" then
close database
open database
end if
end try
set thConfig to (every TCPIP v4 configuration whose active is true)
try
close database
on error errmsg
if errmsg contains "already closed" then
end if
end try
end tell
In a missive of 12:29 PM -0500 1/22/01, Tod Hallberg inscribed:
>
Please post your code...I was having the same problem with appleTalk, but I found it was the way I was asking for it. If you post your code, we can try to figure it out.
>
>
tod
>
>
Barry Chern wrote:
>
>
> In a missive of 8:48 AM -0800 1/18/01, Ed Stockly inscribed:
>
>
>
> (Quoting from Chris Espinosa)
>
>
>
> >The solution for Remote Access scripters is to rewrite scripts to use
>
> >Network Setup Scripting instead. There are plenty of examples in the Open
>
> >Transport (Networking) AppleScript Guidebook modules. These scripts will
>
> >work on 9.1, 9.0.4, 8.6, and 8.6."
>
>
>
> I had been using Network Setup Scripting for something that seems to have broken with 9.04. (Maybe 9.0, but definitely pre-9.1) When I try to get the active tcp configuration(s) I now get an empty list. Can anyone confirm that this is broken, or have I perhaps just messed it up with something else in my System?
>
>
>
> --
>
--
______________________________________________________
email@hidden -
http://bluestones.com/index.html
drawing on stone, music on wood boxes, everything else Macintosh
"Anybody asks you 'what about it?', just tell 'em, 'That's all, that's all."