Re: Toggling Appletalk active/inactive with Applescript?
Re: Toggling Appletalk active/inactive with Applescript?
- Subject: Re: Toggling Appletalk active/inactive with Applescript?
- From: John W Baxter <email@hidden>
- Date: Tue, 24 Jul 2001 17:10:19 -0700
Is the AppleTalk configuration in fact locked?
If it is, then there will be no popup menu next to the "Connect via:"
caption. (And in Advanced mode...sorry, I don't know the Dutch for that,
there would be an inactive checkbox named "User defined" (as translated)
next to AppleTalk Address.) In that situation, the script's response would
be reasonable.
If that is what you see, you would need to unlock the control panel before
changing the settings. I don't know whether locking and unlocking is
scriptable (I've never wanted to script the AppleTalk settings). Manually,
it is done in the "User mode..." (as translated) command under the Edit (as
translated) menu. It's the bottom command in the Edit menu. Select
Administration (the bottom of the three radio button choices)...if asked
for a password in a separate dialog you need to supply it...ignore a "Set
Password" (as translated) button.
Unlock things by clicking on the padlock icon.
[All of the networking control panels use the same User mode and locking
system.]
At 22:17 +0200 7/23/2001, Jan Pieter Kunst wrote:
>
Hello all,
>
>
Is it possible to set Appletalk to active or inactive with Applescript? This
>
(the idea for which came from O'Reilly's "Applescript in a nutshell", which
>
every scripter should buy IMHO) :
>
>
>
>
tell application "Netwerkconfiguratie-scripting"
>
try
>
open database
>
get AppleTalk active of transport options 2
>
--> true
>
>
set AppleTalk active of transport options 2 to false
>
close database
>
on error errmesg
>
close database
>
set msg to errmesg
>
end try
>
end tell
>
>
display dialog msg
>
>
>
>
... results in a dialog: "Configuration locked" (or "secured"; translating
>
from Dutch).
>
>
The boolean "AppleTalk active" is not listed as read-only in the
>
application's dictionary. Is it possible at all to toggle this with
>
Applescript?
>
>
Thanks,
>
Jan Pieter Kunst.-
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
--
John Baxter email@hidden Port Ludlow, WA, USA