ASRegistry.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:20k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       ASRegistry.h
  3.  
  4.      Contains:   AppleScript Registry constants.
  5.  
  6.      Version:    Technology: AppleScript 1.3
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1991-2001 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:      For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __ASREGISTRY__
  18. #define __ASREGISTRY__
  19. #ifndef __AEREGISTRY__
  20. #include "AERegistry.h"
  21. #endif
  22. #ifndef __AEOBJECTS__
  23. #include "AEObjects.h"
  24. #endif
  25. #if PRAGMA_ONCE
  26. #pragma once
  27. #endif
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. #if PRAGMA_IMPORT
  32. #pragma import on
  33. #endif
  34. #if PRAGMA_STRUCT_ALIGN
  35.     #pragma options align=mac68k
  36. #elif PRAGMA_STRUCT_PACKPUSH
  37.     #pragma pack(push, 2)
  38. #elif PRAGMA_STRUCT_PACK
  39.     #pragma pack(2)
  40. #endif
  41. enum {
  42.     keyAETarget                 = FOUR_CHAR_CODE('targ'),       /*  0x74617267  */
  43.     keySubjectAttr              = FOUR_CHAR_CODE('subj'),       /*  0x7375626a  */
  44.                                                                 /* Magic 'returning' parameter: */
  45.     keyASReturning              = FOUR_CHAR_CODE('Krtn'),       /*  0x4b72746e  */
  46.                                                                 /* AppleScript Specific Codes: */
  47.     kASAppleScriptSuite         = FOUR_CHAR_CODE('ascr'),       /*  0x61736372  */
  48.     kASScriptEditorSuite        = FOUR_CHAR_CODE('ToyS'),       /* AppleScript 1.3 added from private headers */
  49.     kASTypeNamesSuite           = FOUR_CHAR_CODE('tpnm'),       /*  0x74706e6d  */
  50.                                                                 /* dynamic terminologies */
  51.     typeAETE                    = FOUR_CHAR_CODE('aete'),       /*  0x61657465  */
  52.     typeAEUT                    = FOUR_CHAR_CODE('aeut'),       /*  0x61657574  */
  53.     kGetAETE                    = FOUR_CHAR_CODE('gdte'),       /*  0x67647465  */
  54.     kGetAEUT                    = FOUR_CHAR_CODE('gdut'),       /*  0x67647574  */
  55.     kUpdateAEUT                 = FOUR_CHAR_CODE('udut'),       /*  0x75647574  */
  56.     kUpdateAETE                 = FOUR_CHAR_CODE('udte'),       /*  0x75647465  */
  57.     kCleanUpAEUT                = FOUR_CHAR_CODE('cdut'),       /*  0x63647574  */
  58.     kASComment                  = FOUR_CHAR_CODE('cmnt'),       /*  0x636d6e74  */
  59.     kASLaunchEvent              = FOUR_CHAR_CODE('noop'),       /*  0x6e6f6f70  */
  60.     keyScszResource             = FOUR_CHAR_CODE('scsz'),       /*  0x7363737A  */
  61.     typeScszResource            = FOUR_CHAR_CODE('scsz'),       /*  0x7363737A  */
  62.                                                                 /* subroutine calls */
  63.     kASSubroutineEvent          = FOUR_CHAR_CODE('psbr'),       /*  0x70736272  */
  64.     keyASSubroutineName         = FOUR_CHAR_CODE('snam'),       /*  0x736e616d  */
  65.     kASPrepositionalSubroutine  = FOUR_CHAR_CODE('psbr'),       /* AppleScript 1.3 added from private headers */
  66.     keyASPositionalArgs         = FOUR_CHAR_CODE('parg')        /* AppleScript 1.3 added from private headers */
  67. };
  68. enum {
  69.                                                                 /* Miscellaneous AppleScript commands */
  70.     kASStartLogEvent            = FOUR_CHAR_CODE('log1'),       /* AppleScript 1.3 Script Editor Start Log */
  71.     kASStopLogEvent             = FOUR_CHAR_CODE('log0'),       /* AppleScript 1.3 Script Editor Stop Log */
  72.     kASCommentEvent             = FOUR_CHAR_CODE('cmnt')        /* AppleScript 1.3 magic "comment" event */
  73. };
  74. /* Operator Events: */
  75. enum {
  76.                                                                 /* Binary: */
  77.     kASAdd                      = FOUR_CHAR_CODE('+   '),       /*  0x2b202020  */
  78.     kASSubtract                 = FOUR_CHAR_CODE('-   '),       /*  0x2d202020  */
  79.     kASMultiply                 = FOUR_CHAR_CODE('*   '),       /*  0x2a202020  */
  80.     kASDivide                   = FOUR_CHAR_CODE('/   '),       /*  0x2f202020  */
  81.     kASQuotient                 = FOUR_CHAR_CODE('div '),       /*  0x64697620  */
  82.     kASRemainder                = FOUR_CHAR_CODE('mod '),       /*  0x6d6f6420  */
  83.     kASPower                    = FOUR_CHAR_CODE('^   '),       /*  0x5e202020  */
  84.     kASEqual                    = kAEEquals,
  85.     kASNotEqual                 = FOUR_CHAR_CODE('