• 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: Applescript AppleTalk Config???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


References: 
 >Applescript AppleTalk Config??? (From: Xandra Lee <email@hidden>)

  • Prev by Date: Re: Recommendations for AppleScript Formatting
  • Next by Date: RE: Applescript AppleTalk Config???
  • Previous by thread: Applescript AppleTalk Config???
  • Next by thread: RE: Applescript AppleTalk Config???
  • Index(es):
    • Date
    • Thread