Scripting AppleTalk and iBuild
Scripting AppleTalk and iBuild
- Subject: Scripting AppleTalk and iBuild
- From: "Aaron Solomon (ben Saul Joseph) Adelman" <email@hidden>
- Date: Thu, 15 Mar 2001 23:27:08 -0500
- Organization: Pioneer Aviation
Greetings.
I have recently upgraded to Mac OS 9.1 (thanks to Apple taking forever
to get the CD to me), and, living by the motto "Compute dangerously", I
have created a script, to be executed on startup, to reset those few
preferences which are still stored in PRAM, should my Mac have
previously crashed. (I seem to inventing new ways to do this with
AppleScript.) Part of this involves restoring the AppleTalk
configuration. Of the two AppleTalk configurations I use, one is
through Ethernet, which the AppleScript Guidebook describes how to do,
that is:
set the connecting via of AppleTalk configuration "MUSC Ethernet" to
Ethernet
The other is through Remote Access, which the guidebook doesn't describe
how to do, not listing Remote Only as a connect via option. How can I
do this?
Other, unrelated problem: I have invented a "digital sundial", that is,
a clock whose hours vary with the length of the day rather than being
constant. Currently I have this implemented in Dialog Director, but I'd
prefer to do it in something that didn't require me to manually quit the
program if I want to restart the computer, not to mention that I'd like
to be able to use menus. I know FaceSpan will do the job, but I don't
feel like paying $200 yet (maybe if I'm _really_ good for the next few
months...). iBuild seemed like it might be a low-cost alternative, but
I can't get it to work. I created a stack in which there was a card in
which there was a text field called "the_output", to which I want my
sundial to send the current time. (In this test version, it tries to
display the "ordinary" time.) Unfortunately, it doesn't work. I try to
have it post the current time every time the stack is idle, but for some
reason that escapes me, it doesn't. The posting works fine if I have it
triggered by something else though. My code:
on idle
transduce(time string of the (current date))
return 1
end idle
on transduce(x)
set the value of object "the_output" to x
end transduce
Any help anyone can provide for either problem will be greatly
appreciated. Thanks in advance.
Aaron
--
Aaron Solomon (ben Saul Joseph) Adelman
E-mail: email@hidden
Web site:
http://www.musc.edu/~adelmaas/
Yahoo! Messenger: prasmthrasm