home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14177 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.7 KB

  1. 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+
  2. From: gb2a+@andrew.cmu.edu (George J. Baxter)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: sending AEs to hypercard
  5. Message-ID: <geYL3mC00WBNQ4wFJl@andrew.cmu.edu>
  6. Date: 18 Aug 92 21:51:46 GMT
  7. Organization: Science & Technology Center, Carnegie Mellon, Pittsburgh, PA
  8. Lines: 26
  9.  
  10. // cross-posted from netnews.comp.mac.hypercard
  11.  
  12. Gurus:
  13.     I want to send a string to Hypercard.  I'm using hypercard as a
  14. front end and I want to send back an error message if I get one.  I
  15. don't want Hypercard to wait around in any XCMD while I'm looking for my
  16. error string since there might not be one, or it might be a long time
  17. coming.  So I want to use Hypercard's built in AE handlers.  I know that
  18. 2.1 supports appleEvents, but how specifically do I address the AE
  19. handler in hypercard?  The little New Features Guide gives me some
  20. hints. For example, I could send the appleEvent under class 'misc',  and
  21. ID 'dosc' with my string being "put <my error string here>"
  22. or something.  The question I have is where do I put this error string? 
  23. The 'dosc' ID is described as "interpret the return-delimited list
  24. accompanying this Apple event as a script and execute it."  
  25.     Hypercard provides the command "request AppleEvent data", which I
  26. guess is where the strings in question reside, but again, in my code,
  27. how do I hand it to Hypercard?  
  28.     Thanks!
  29.         -George Baxter
  30. -----------------------
  31. gb2a@andrew.cmu.edu            baxter@a.cfr.cmu.edu
  32.  
  33. "Only a Hawaiian can say Humuhumunukunukuapuaa five times fast, correctly."
  34.  
  35. "I think we're in for a bad spell of wether."
  36.