home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / hypercar / 3142 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.6 KB  |  34 lines

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