home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!sdd.hp.com!wupost!udel!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!gb2a+
- From: gb2a+@andrew.cmu.edu (George J. Baxter)
- Newsgroups: comp.sys.mac.programmer
- Subject: sending AEs to hypercard
- Message-ID: <geYL3mC00WBNQ4wFJl@andrew.cmu.edu>
- Date: 18 Aug 92 21:51:46 GMT
- Organization: Science & Technology Center, Carnegie Mellon, Pittsburgh, PA
- Lines: 26
-
- // cross-posted from netnews.comp.mac.hypercard
-
- Gurus:
- I want to send a string to Hypercard. I'm using hypercard as a
- front end and I want to send back an error message if I get one. I
- don't want Hypercard to wait around in any XCMD while I'm looking for my
- error string since there might not be one, or it might be a long time
- coming. So I want to use Hypercard's built in AE handlers. I know that
- 2.1 supports appleEvents, but how specifically do I address the AE
- handler in hypercard? The little New Features Guide gives me some
- hints. For example, I could send the appleEvent under class 'misc', and
- ID 'dosc' with my string being "put <my error string here>"
- or something. The question I have is where do I put this error string?
- The 'dosc' ID is described as "interpret the return-delimited list
- accompanying this Apple event as a script and execute it."
- Hypercard provides the command "request AppleEvent data", which I
- guess is where the strings in question reside, but again, in my code,
- how do I hand it to Hypercard?
- Thanks!
- -George Baxter
- -----------------------
- gb2a@andrew.cmu.edu baxter@a.cfr.cmu.edu
-
- "Only a Hawaiian can say Humuhumunukunukuapuaa five times fast, correctly."
-
- "I think we're in for a bad spell of wether."
-