• 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: Appletalk question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Appletalk question


  • Subject: Re: Appletalk question
  • From: Frank Watzl <email@hidden>
  • Date: Mon, 8 Jan 2001 12:52:45 +0100

At 13:34 Uhr -0500 05.01.2001, Stephen Gross wrote:
>Is there a way to find out what appletalk zone I'm currently on through
>applescript?

I could't try the following on my network, because there are no AppleTalk zones.
At least is compiles and runs on my machine, returning an empty string for the variable z.

If you try it, would you please kindly post your results?
Thank you.

Frank Watzl

--begin script
--basic error checking only, improve for real life use :-)
tell application "Network Setup Scripting"
try
--you have to do this before reading/writing anything
open database
on error
return
end try
try
--active is a property of AppleTalk configurations
--see the Network Setup Scripting dictionary
set a to first AppleTalk configuration whose active is true
--AppleTalk Zone is a property of AppleTalk configurations
set s to AppleTalk zone of a
on error e number n
close database
error e number n
end try
close database
end tell
--end script


References: 
 >Appletalk question (From: "Stephen Gross" <email@hidden>)

  • Prev by Date: Running two scripts at a time = problems (was: Re: if, idle, stay open - PROVE IT)
  • Next by Date: Re: Scripting Mac OS Server Admin
  • Previous by thread: Appletalk question
  • Next by thread: Re: Appletalk question
  • Index(es):
    • Date
    • Thread