[comp.sys.mac.hypercard] "Hello World" needed for IAC under System 7

science@oasys.dt.navy.mil (Zimmermann) (06/26/91)

Could somebody help me locate a simple example of a program
(preferably in THINK C, but I'll take anything above assembler!) which
can run under System 7 and respond to an Apple event by sending back
the string "Hello World"?  jkc@APPLE.COM has been kind enough to send
me an example and commentary of something that does IAC with
HyperCard, but it's too complex and depends on things that I don't
have here (and it's in Pascal), so I haven't yet achieved any
enlightenment on how to do IAC under System 7.

The ideal example would be driveable from HyperCard 2.1, so that I
could type
   send "Hi there" to program "HelloProg"
and get back
   "Hello World"
as the response (somehow).  I see from some of my notes that the HC2.1
"send" command generates an event of class 'misc' with ID 'dosc',
whatever that means.

I also second mikef@next1.oit.unc.edu's request for examples and
documentation of the use of Apple Events in HC2.1 ... in particular,
if it were possible to do what I can trivially do in UNIX (fork a
process with the parent controlling stdin and stdout), my life would
be a happier and more productive one....

Tnx for any advice ... ^z (science@oasys.dt.navy.mil)