home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!data.nas.nasa.gov!taligent!apple!jkc
- From: jkc@Apple.COM (John Kevin Calhoun)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: Sending AEs to hypercard
- Message-ID: <71521@apple.Apple.COM>
- Date: 22 Aug 92 17:35:20 GMT
- References: <EeYJUtS00iUx04XlJV@andrew.cmu.edu> <1992Aug22.001928.27498@kronos.arc.nasa.gov>
- Organization: Apple Computer Inc., Cupertino, CA
- Lines: 31
-
-
- In article <1992Aug22.001928.27498@kronos.arc.nasa.gov>
- joshr@kronos.arc.nasa.gov (Joshua Rabinowitz-Summer-91) writes:
- > [...] I'll GIVE you guys this completely
- >working code. It sends a string to hypercard
- >to be interpreted as a script. I never got as far as getting hypercard
- >to return a message like OK or ERROR,though (or maybe
- >I check for it wrong -- I dont know).
-
- Thanks very much for posting this. Here's how to get information back
- from HyperCard.
-
- HyperCard will report errors in the reply parameter with keyword
- keyErrorString, not keyErrorNumber. So, in your code, change this:
-
- > myError = AEGetParamPtr( &theReply, keyErrorNumber, typeLongInteger,
- &actualType,
-
- to this:
-
- myError = AEGetParamDesc( &theReply, keyErrorString, typeChar,
-
- If myError indicates that there is no such parameter, then there was no
- error in executing the script.
-
- You can get computed data back from HyperCard as well. When the script
- has been executed, if there's anything contained in "the result" HyperCard
- will send it back to you in the direct parameter of the reply.
-
- Kevin Calhoun
- jkc@apple.com
-