home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 August: Tool Chest / Apple_Developer_Group_August_1996_Tool_Chest.iso / Sample Code / Interapplication Communication / MenuScripter 3.1 / Sources / MSAEUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-20  |  1.4 KB  |  48 lines  |  [TEXT/MPS ]

  1. /*
  2.     MSAEUtils.h
  3.     
  4.     Version 3.1
  5.     
  6.     Copyright © 1995 Apple Computer, Inc., all rights reserved.
  7.     
  8.     MenuScripter by Nigel Humphreys and Jon Lansdell
  9.     AppleEvent to script extensions by Greg Sutton
  10. */
  11.  
  12. #ifndef __MSAEUTILS__
  13. #define __MSAEUTILS__
  14.  
  15. #include <Types.h>
  16. #include <Quickdraw.h>
  17. #include <Packages.h>
  18. #include <GestaltEqu.h>
  19. #include <Printing.h>
  20. #include <AppleEvents.h>
  21.  
  22. /**-----------------------------------------------------------------------
  23.     Utility Routines for getting data from AEDesc's
  24.   -----------------------------------------------------------------------**/
  25.     
  26. pascal void GetRawDataFromDescriptor(const AEDesc *theDesc,
  27.                                                                          Ptr     destPtr,
  28.                                                                          Size    destMaxSize,
  29.                                                                          Size    *actSize);
  30.                                                                          
  31. pascal OSErr GetPStringFromDescriptor(const AEDesc *sourceDesc, char *resultStr);
  32.  
  33. pascal OSErr GetIntegerFromDescriptor(const AEDesc *sourceDesc, short *result);
  34.     
  35. pascal OSErr GetBooleanFromDescriptor(const AEDesc *sourceDesc,
  36.                                                                         Boolean *result);
  37.                                                                             
  38. pascal OSErr GetLongIntFromDescriptor(const AEDesc *sourceDesc, 
  39.                                       long   *result);
  40.  
  41. pascal OSErr GetRectFromDescriptor(const AEDesc *sourceDesc, Rect *result);
  42.  
  43. pascal OSErr GetPointFromDescriptor(const AEDesc *sourceDesc,
  44.                                                                   Point  *result);
  45.  
  46. pascal OSErr GetStyledTextFromDescIntoTEHandle(const AEDesc *sourceTextDesc, TEHandle theHTE);
  47.                                                                         
  48. #endif