Re: Applescript AppleTalk Config???
Re: Applescript AppleTalk Config???
- Subject: Re: Applescript AppleTalk Config???
- From: Cornwall <email@hidden>
- Date: Wed, 24 Oct 2001 09:04:16 -0700
At 10:47 AM -0400 10/24/01, Xandra Lee wrote:
>
Is there any way to AppleScript which configuration is Active in
>
Appletalk.
>
unfortunately, I need to do this regularly for my bleepin Epson printer.
>
AppleTalk itself doesn't appear scriptable (even in OS9.2) - and I don't
>
see anything that will do the job in Network Scripting...
>
>
example in english:
>
If current configuration of AppleTalk is "MyEthernet"
>
set configuration to "Remote Access - for StylusRIP"
>
end if
While I don't have any Apple Talk configs to test with, something
along the following lines should* work. ****UNTESTED****
Corny
tell application "Network Setup Scripting"
try
open database
begin transaction
name of every AppleTalk configuration whose active is true
set thisConfig to result as string
end transaction
close database
end try
end tell
tell application "Network Setup Scripting"
try
open database
begin transaction
set active of AppleTalk configuration "some config" to true
end transaction
close database
end try
end tell
From NSS dictionary
Class configuration: An Open Transport configuration. This is an abstract class - to make a configuration, make one of the specific configuration classes listed below.
Plural form:
configurations
Properties:
name string -- the name of this configuration
active boolean -- Is this configuration active?
valid boolean [r/o] -- Is this configuration usable?