Re: Appletalk question
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