AERegistry.pas 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037
  1. {
  2. File: AERegistry.p
  3. Contains: AppleEvents Registry Interface.
  4. Version: Technology: Mac OS 8.5
  5. Release: Universal Interfaces 3.4.2
  6. Copyright: © 1993-2002 by Apple Computer, Inc., all rights reserved
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://www.freepascal.org/bugs.html
  10. }
  11. {
  12. Modified for use with Free Pascal
  13. Version 200
  14. Please report any bugs to <[email protected]>
  15. }
  16. {$mode macpas}
  17. {$packenum 1}
  18. {$macro on}
  19. {$inline on}
  20. {$CALLING MWPASCAL}
  21. unit AERegistry;
  22. interface
  23. {$setc UNIVERSAL_INTERFACES_VERSION := $0342}
  24. {$setc GAP_INTERFACES_VERSION := $0200}
  25. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  26. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  27. {$endc}
  28. {$ifc defined CPUPOWERPC and defined CPUI386}
  29. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  30. {$endc}
  31. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  32. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  33. {$endc}
  34. {$ifc not defined __ppc__ and defined CPUPOWERPC}
  35. {$setc __ppc__ := 1}
  36. {$elsec}
  37. {$setc __ppc__ := 0}
  38. {$endc}
  39. {$ifc not defined __i386__ and defined CPUI386}
  40. {$setc __i386__ := 1}
  41. {$elsec}
  42. {$setc __i386__ := 0}
  43. {$endc}
  44. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  45. {$error Conflicting definitions for __ppc__ and __i386__}
  46. {$endc}
  47. {$ifc defined __ppc__ and __ppc__}
  48. {$setc TARGET_CPU_PPC := TRUE}
  49. {$setc TARGET_CPU_X86 := FALSE}
  50. {$elifc defined __i386__ and __i386__}
  51. {$setc TARGET_CPU_PPC := FALSE}
  52. {$setc TARGET_CPU_X86 := TRUE}
  53. {$elsec}
  54. {$error Neither __ppc__ nor __i386__ is defined.}
  55. {$endc}
  56. {$setc TARGET_CPU_PPC_64 := FALSE}
  57. {$ifc defined FPC_BIG_ENDIAN}
  58. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  59. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  60. {$elifc defined FPC_LITTLE_ENDIAN}
  61. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  62. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  63. {$elsec}
  64. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  65. {$endc}
  66. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  67. {$setc CALL_NOT_IN_CARBON := FALSE}
  68. {$setc OLDROUTINENAMES := FALSE}
  69. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  70. {$setc OPAQUE_UPP_TYPES := TRUE}
  71. {$setc OTCARBONAPPLICATION := TRUE}
  72. {$setc OTKERNEL := FALSE}
  73. {$setc PM_USE_SESSION_APIS := TRUE}
  74. {$setc TARGET_API_MAC_CARBON := TRUE}
  75. {$setc TARGET_API_MAC_OS8 := FALSE}
  76. {$setc TARGET_API_MAC_OSX := TRUE}
  77. {$setc TARGET_CARBON := TRUE}
  78. {$setc TARGET_CPU_68K := FALSE}
  79. {$setc TARGET_CPU_MIPS := FALSE}
  80. {$setc TARGET_CPU_SPARC := FALSE}
  81. {$setc TARGET_OS_MAC := TRUE}
  82. {$setc TARGET_OS_UNIX := FALSE}
  83. {$setc TARGET_OS_WIN32 := FALSE}
  84. {$setc TARGET_RT_MAC_68881 := FALSE}
  85. {$setc TARGET_RT_MAC_CFM := FALSE}
  86. {$setc TARGET_RT_MAC_MACHO := TRUE}
  87. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  88. {$setc TYPE_BOOL := FALSE}
  89. {$setc TYPE_EXTENDED := FALSE}
  90. {$setc TYPE_LONGLONG := TRUE}
  91. uses MacTypes,ATSTypes,MacErrors,AppleEvents;
  92. {$ALIGN MAC68K}
  93. const
  94. cAEList = $6C697374 (* 'list' *); { 0x6c697374 }
  95. cApplication = $63617070 (* 'capp' *); { 0x63617070 }
  96. cArc = $63617263 (* 'carc' *); { 0x63617263 }
  97. cBoolean = $626F6F6C (* 'bool' *); { 0x626f6f6c }
  98. cCell = $6363656C (* 'ccel' *); { 0x6363656c }
  99. cChar = $63686120 (* 'cha ' *); { 0x63686120 }
  100. cColorTable = $636C7274 (* 'clrt' *); { 0x636c7274 }
  101. cColumn = $63636F6C (* 'ccol' *); { 0x63636f6c }
  102. cDocument = $646F6375 (* 'docu' *); { 0x646f6375 }
  103. cDrawingArea = $63647277 (* 'cdrw' *); { 0x63647277 }
  104. cEnumeration = $656E756D (* 'enum' *); { 0x656e756d }
  105. cFile = $66696C65 (* 'file' *); { 0x66696c65 }
  106. cFixed = $66697864 (* 'fixd' *); { 0x66697864 }
  107. cFixedPoint = $66706E74 (* 'fpnt' *); { 0x66706e74 }
  108. cFixedRectangle = $66726374 (* 'frct' *); { 0x66726374 }
  109. cGraphicLine = $676C696E (* 'glin' *); { 0x676c696e }
  110. cGraphicObject = $63676F62 (* 'cgob' *); { 0x63676f62 }
  111. cGraphicShape = $63677368 (* 'cgsh' *); { 0x63677368 }
  112. cGraphicText = $63677478 (* 'cgtx' *); { 0x63677478 }
  113. cGroupedGraphic = $63706963 (* 'cpic' *); { 0x63706963 }
  114. cInsertionLoc = $696E736C (* 'insl' *); { 0x696e736c }
  115. cInsertionPoint = $63696E73 (* 'cins' *); { 0x63696e73 }
  116. cIntlText = $69747874 (* 'itxt' *); { 0x69747874 }
  117. cIntlWritingCode = $696E746C (* 'intl' *); { 0x696e746c }
  118. cItem = $6369746D (* 'citm' *); { 0x6369746d }
  119. cLine = $636C696E (* 'clin' *); { 0x636c696e }
  120. cLongDateTime = $6C647420 (* 'ldt ' *); { 0x6c647420 }
  121. cLongFixed = $6C667864 (* 'lfxd' *); { 0x6c667864 }
  122. cLongFixedPoint = $6C667074 (* 'lfpt' *); { 0x6c667074 }
  123. cLongFixedRectangle = $6C667263 (* 'lfrc' *); { 0x6c667263 }
  124. cLongInteger = $6C6F6E67 (* 'long' *); { 0x6c6f6e67 }
  125. cLongPoint = $6C706E74 (* 'lpnt' *); { 0x6c706e74 }
  126. cLongRectangle = $6C726374 (* 'lrct' *); { 0x6c726374 }
  127. cMachineLoc = $6D4C6F63 (* 'mLoc' *); { 0x6d4c6f63 }
  128. cMenu = $636D6E75 (* 'cmnu' *); { 0x636d6e75 }
  129. cMenuItem = $636D656E (* 'cmen' *); { 0x636d656e }
  130. cObject = $636F626A (* 'cobj' *); { 0x636f626a }
  131. cObjectSpecifier = $6F626A20 (* 'obj ' *); { 0x6f626a20 }
  132. cOpenableObject = $636F6F62 (* 'coob' *); { 0x636f6f62 }
  133. cOval = $636F766C (* 'covl' *); { 0x636f766c }
  134. cParagraph = $63706172 (* 'cpar' *); { 0x63706172 }
  135. cPICT = $50494354 (* 'PICT' *); { 0x50494354 }
  136. cPixel = $6370786C (* 'cpxl' *); { 0x6370786c }
  137. cPixelMap = $63706978 (* 'cpix' *); { 0x63706978 }
  138. cPolygon = $6370676E (* 'cpgn' *); { 0x6370676e }
  139. cProperty = $70726F70 (* 'prop' *); { 0x70726f70 }
  140. cQDPoint = $51447074 (* 'QDpt' *); { 0x51447074 }
  141. cQDRectangle = $71647274 (* 'qdrt' *); { 0x71647274 }
  142. cRectangle = $63726563 (* 'crec' *); { 0x63726563 }
  143. cRGBColor = $63524742 (* 'cRGB' *); { 0x63524742 }
  144. cRotation = $74726F74 (* 'trot' *); { 0x74726f74 }
  145. cRoundedRectangle = $63727263 (* 'crrc' *); { 0x63727263 }
  146. cRow = $63726F77 (* 'crow' *); { 0x63726f77 }
  147. cSelection = $6373656C (* 'csel' *); { 0x6373656c }
  148. cShortInteger = $73686F72 (* 'shor' *); { 0x73686f72 }
  149. cTable = $6374626C (* 'ctbl' *); { 0x6374626c }
  150. cText = $63747874 (* 'ctxt' *); { 0x63747874 }
  151. cTextFlow = $63666C6F (* 'cflo' *); { 0x63666c6f }
  152. cTextStyles = $74737479 (* 'tsty' *); { 0x74737479 }
  153. cType = $74797065 (* 'type' *); { 0x74797065 }
  154. cVersion = $76657273 (* 'vers' *); { 0x76657273 }
  155. cWindow = $6377696E (* 'cwin' *); { 0x6377696e }
  156. cWord = $63776F72 (* 'cwor' *); { 0x63776f72 }
  157. enumArrows = $6172726F (* 'arro' *); { 0x6172726f }
  158. enumJustification = $6A757374 (* 'just' *); { 0x6a757374 }
  159. enumKeyForm = $6B66726D (* 'kfrm' *); { 0x6b66726d }
  160. enumPosition = $706F7369 (* 'posi' *); { 0x706f7369 }
  161. enumProtection = $7072746E (* 'prtn' *); { 0x7072746e }
  162. enumQuality = $7175616C (* 'qual' *); { 0x7175616c }
  163. enumSaveOptions = $7361766F (* 'savo' *); { 0x7361766f }
  164. enumStyle = $7374796C (* 'styl' *); { 0x7374796c }
  165. enumTransferMode = $7472616E (* 'tran' *); { 0x7472616e }
  166. formUniqueID = $49442020 (* 'ID ' *); { 0x49442020 }
  167. kAEAbout = $61626F75 (* 'abou' *); { 0x61626f75 }
  168. kAEAfter = $61667465 (* 'afte' *); { 0x61667465 }
  169. kAEAliasSelection = $73616C69 (* 'sali' *); { 0x73616c69 }
  170. kAEAllCaps = $616C6370 (* 'alcp' *); { 0x616c6370 }
  171. kAEArrowAtEnd = $6172656E (* 'aren' *); { 0x6172656e }
  172. kAEArrowAtStart = $61727374 (* 'arst' *); { 0x61727374 }
  173. kAEArrowBothEnds = $6172626F (* 'arbo' *); { 0x6172626f }
  174. kAEAsk = $61736B20 (* 'ask ' *); { 0x61736b20 }
  175. kAEBefore = $6265666F (* 'befo' *); { 0x6265666f }
  176. kAEBeginning = $62676E67 (* 'bgng' *); { 0x62676e67 }
  177. kAEBeginsWith = $62677774 (* 'bgwt' *); { 0x62677774 }
  178. kAEBeginTransaction = $62656769 (* 'begi' *); { 0x62656769 }
  179. kAEBold = $626F6C64 (* 'bold' *); { 0x626f6c64 }
  180. kAECaseSensEquals = $63736571 (* 'cseq' *); { 0x63736571 }
  181. kAECentered = $63656E74 (* 'cent' *); { 0x63656e74 }
  182. kAEChangeView = $76696577 (* 'view' *); { 0x76696577 }
  183. kAEClone = $636C6F6E (* 'clon' *); { 0x636c6f6e }
  184. kAEClose = $636C6F73 (* 'clos' *); { 0x636c6f73 }
  185. kAECondensed = $636F6E64 (* 'cond' *); { 0x636f6e64 }
  186. kAEContains = $636F6E74 (* 'cont' *); { 0x636f6e74 }
  187. kAECopy = $636F7079 (* 'copy' *); { 0x636f7079 }
  188. kAECoreSuite = $636F7265 (* 'core' *); { 0x636f7265 }
  189. kAECountElements = $636E7465 (* 'cnte' *); { 0x636e7465 }
  190. kAECreateElement = $6372656C (* 'crel' *); { 0x6372656c }
  191. kAECreatePublisher = $63707562 (* 'cpub' *); { 0x63707562 }
  192. kAECut = $63757420 (* 'cut ' *); { 0x63757420 }
  193. kAEDelete = $64656C6F (* 'delo' *); { 0x64656c6f }
  194. kAEDoObjectsExist = $646F6578 (* 'doex' *); { 0x646f6578 }
  195. kAEDoScript = $646F7363 (* 'dosc' *); { 0x646f7363 }
  196. kAEDrag = $64726167 (* 'drag' *); { 0x64726167 }
  197. kAEDuplicateSelection = $73647570 (* 'sdup' *); { 0x73647570 }
  198. kAEEditGraphic = $65646974 (* 'edit' *); { 0x65646974 }
  199. kAEEmptyTrash = $656D7074 (* 'empt' *); { 0x656d7074 }
  200. kAEEnd = $656E6420 (* 'end ' *); { 0x656e6420 }
  201. kAEEndsWith = $656E6473 (* 'ends' *); { 0x656e6473 }
  202. kAEEndTransaction = $656E6474 (* 'endt' *); { 0x656e6474 }
  203. kAEEquals = $3D202020 (* '= ' *); { 0x3d202020 }
  204. kAEExpanded = $70657870 (* 'pexp' *); { 0x70657870 }
  205. kAEFast = $66617374 (* 'fast' *); { 0x66617374 }
  206. kAEFinderEvents = $464E4452 (* 'FNDR' *); { 0x464e4452 }
  207. kAEFormulaProtect = $6670726F (* 'fpro' *); { 0x6670726f }
  208. kAEFullyJustified = $66756C6C (* 'full' *); { 0x66756c6c }
  209. kAEGetClassInfo = $716F626A (* 'qobj' *); { 0x716f626a }
  210. kAEGetData = $67657464 (* 'getd' *); { 0x67657464 }
  211. kAEGetDataSize = $6473697A (* 'dsiz' *); { 0x6473697a }
  212. kAEGetEventInfo = $67746569 (* 'gtei' *); { 0x67746569 }
  213. kAEGetInfoSelection = $73696E66 (* 'sinf' *); { 0x73696e66 }
  214. kAEGetPrivilegeSelection = $73707276 (* 'sprv' *); { 0x73707276 }
  215. kAEGetSuiteInfo = $67747369 (* 'gtsi' *); { 0x67747369 }
  216. kAEGreaterThan = $3E202020 (* '> ' *); { 0x3e202020 }
  217. kAEGreaterThanEquals = $3E3D2020 (* '>= ' *); { 0x3e3d2020 }
  218. kAEGrow = $67726F77 (* 'grow' *); { 0x67726f77 }
  219. kAEHidden = $6869646E (* 'hidn' *); { 0x6869646e }
  220. kAEHiQuality = $68697175 (* 'hiqu' *); { 0x68697175 }
  221. kAEImageGraphic = $696D6772 (* 'imgr' *); { 0x696d6772 }
  222. kAEIsUniform = $6973756E (* 'isun' *); { 0x6973756e }
  223. kAEItalic = $6974616C (* 'ital' *); { 0x6974616c }
  224. kAELeftJustified = $6C656674 (* 'left' *); { 0x6c656674 }
  225. kAELessThan = $3C202020 (* '< ' *); { 0x3c202020 }
  226. kAELessThanEquals = $3C3D2020 (* '<= ' *); { 0x3c3d2020 }
  227. kAELowercase = $6C6F7763 (* 'lowc' *); { 0x6c6f7763 }
  228. kAEMakeObjectsVisible = $6D766973 (* 'mvis' *); { 0x6d766973 }
  229. kAEMiscStandards = $6D697363 (* 'misc' *); { 0x6d697363 }
  230. kAEModifiable = $6D6F6466 (* 'modf' *); { 0x6d6f6466 }
  231. kAEMove = $6D6F7665 (* 'move' *); { 0x6d6f7665 }
  232. kAENo = $6E6F2020 (* 'no ' *); { 0x6e6f2020 }
  233. kAENoArrow = $61726E6F (* 'arno' *); { 0x61726e6f }
  234. kAENonmodifiable = $6E6D6F64 (* 'nmod' *); { 0x6e6d6f64 }
  235. kAEOpen = $6F646F63 (* 'odoc' *); { 0x6f646f63 }
  236. kAEOpenSelection = $736F7065 (* 'sope' *); { 0x736f7065 }
  237. kAEOutline = $6F75746C (* 'outl' *); { 0x6f75746c }
  238. kAEPageSetup = $70677375 (* 'pgsu' *); { 0x70677375 }
  239. kAEPaste = $70617374 (* 'past' *); { 0x70617374 }
  240. kAEPlain = $706C616E (* 'plan' *); { 0x706c616e }
  241. kAEPrint = $70646F63 (* 'pdoc' *); { 0x70646f63 }
  242. kAEPrintSelection = $73707269 (* 'spri' *); { 0x73707269 }
  243. kAEPrintWindow = $7077696E (* 'pwin' *); { 0x7077696e }
  244. kAEPutAwaySelection = $73707574 (* 'sput' *); { 0x73707574 }
  245. kAEQDAddOver = $6164646F (* 'addo' *); { 0x6164646f }
  246. kAEQDAddPin = $61646470 (* 'addp' *); { 0x61646470 }
  247. kAEQDAdMax = $61646D78 (* 'admx' *); { 0x61646d78 }
  248. kAEQDAdMin = $61646D6E (* 'admn' *); { 0x61646d6e }
  249. kAEQDBic = $62696320 (* 'bic ' *); { 0x62696320 }
  250. kAEQDBlend = $626C6E64 (* 'blnd' *); { 0x626c6e64 }
  251. kAEQDCopy = $63707920 (* 'cpy ' *); { 0x63707920 }
  252. kAEQDNotBic = $6E626963 (* 'nbic' *); { 0x6e626963 }
  253. kAEQDNotCopy = $6E637079 (* 'ncpy' *); { 0x6e637079 }
  254. kAEQDNotOr = $6E746F72 (* 'ntor' *); { 0x6e746f72 }
  255. kAEQDNotXor = $6E786F72 (* 'nxor' *); { 0x6e786f72 }
  256. kAEQDOr = $6F722020 (* 'or ' *); { 0x6f722020 }
  257. kAEQDSubOver = $7375626F (* 'subo' *); { 0x7375626f }
  258. kAEQDSubPin = $73756270 (* 'subp' *); { 0x73756270 }
  259. kAEQDSupplementalSuite = $71647370 (* 'qdsp' *); { 0x71647370 }
  260. kAEQDXor = $786F7220 (* 'xor ' *); { 0x786f7220 }
  261. kAEQuickdrawSuite = $71647277 (* 'qdrw' *); { 0x71647277 }
  262. kAEQuitAll = $71756961 (* 'quia' *); { 0x71756961 }
  263. kAERedo = $7265646F (* 'redo' *); { 0x7265646f }
  264. kAERegular = $7265676C (* 'regl' *); { 0x7265676c }
  265. kAEReopenApplication = $72617070 (* 'rapp' *); { 0x72617070 }
  266. kAEReplace = $72706C63 (* 'rplc' *); { 0x72706c63 }
  267. kAERequiredSuite = $72657164 (* 'reqd' *); { 0x72657164 }
  268. kAERestart = $72657374 (* 'rest' *); { 0x72657374 }
  269. kAERevealSelection = $73726576 (* 'srev' *); { 0x73726576 }
  270. kAERevert = $72767274 (* 'rvrt' *); { 0x72767274 }
  271. kAERightJustified = $72676874 (* 'rght' *); { 0x72676874 }
  272. kAESave = $73617665 (* 'save' *); { 0x73617665 }
  273. kAESelect = $736C6374 (* 'slct' *); { 0x736c6374 }
  274. kAESetData = $73657464 (* 'setd' *); { 0x73657464 }
  275. kAESetPosition = $706F736E (* 'posn' *); { 0x706f736e }
  276. kAEShadow = $73686164 (* 'shad' *); { 0x73686164 }
  277. kAEShowClipboard = $7368636C (* 'shcl' *); { 0x7368636c }
  278. kAEShutDown = $73687574 (* 'shut' *); { 0x73687574 }
  279. kAESleep = $736C6570 (* 'slep' *); { 0x736c6570 }
  280. kAESmallCaps = $736D6370 (* 'smcp' *); { 0x736d6370 }
  281. kAESpecialClassProperties = $63402321 (* 'c@#!' *); { 0x63402321 }
  282. kAEStrikethrough = $7374726B (* 'strk' *); { 0x7374726b }
  283. kAESubscript = $73627363 (* 'sbsc' *); { 0x73627363 }
  284. kAESuperscript = $73707363 (* 'spsc' *); { 0x73707363 }
  285. kAETableSuite = $74626C73 (* 'tbls' *); { 0x74626c73 }
  286. kAETextSuite = $54455854 (* 'TEXT' *); { 0x54455854 }
  287. kAETransactionTerminated = $7474726D (* 'ttrm' *); { 0x7474726d }
  288. kAEUnderline = $756E646C (* 'undl' *); { 0x756e646c }
  289. kAEUndo = $756E646F (* 'undo' *); { 0x756e646f }
  290. kAEWholeWordEquals = $77776571 (* 'wweq' *); { 0x77776571 }
  291. kAEYes = $79657320 (* 'yes ' *); { 0x79657320 }
  292. kAEZoom = $7A6F6F6D (* 'zoom' *); { 0x7a6f6f6d }
  293. { events that can be sent to the "system" process (eg, loginwindow) on OS X 10.2 or later }
  294. kAELogOut = $6C6F676F (* 'logo' *);
  295. kAEReallyLogOut = $726C676F (* 'rlgo' *);
  296. kAEShowRestartDialog = $72727374 (* 'rrst' *);
  297. kAEShowShutdownDialog = $7273646E (* 'rsdn' *);
  298. { EventRecord Classes and EventIDs }
  299. kAEMouseClass = $6D6F7573 (* 'mous' *);
  300. kAEDown = $646F776E (* 'down' *);
  301. kAEUp = $75702020 (* 'up ' *);
  302. kAEMoved = $6D6F7665 (* 'move' *);
  303. kAEStoppedMoving = $73746F70 (* 'stop' *);
  304. kAEWindowClass = $77696E64 (* 'wind' *);
  305. kAEUpdate = $75706474 (* 'updt' *);
  306. kAEActivate = $61637476 (* 'actv' *);
  307. kAEDeactivate = $64616374 (* 'dact' *);
  308. kAECommandClass = $636D6E64 (* 'cmnd' *); { Modern Command Event Class }
  309. kAEKeyClass = $6B657963 (* 'keyc' *);
  310. kAERawKey = $726B6579 (* 'rkey' *); { Modern Raw Key Event }
  311. kAEVirtualKey = $6B657963 (* 'keyc' *); { Modern Virtual Key Event }
  312. kAENavigationKey = $6E617665 (* 'nave' *); { Modern Navigation Key Event }
  313. kAEAutoDown = $6175746F (* 'auto' *);
  314. kAEApplicationClass = $6170706C (* 'appl' *);
  315. kAESuspend = $73757370 (* 'susp' *);
  316. kAEResume = $72736D65 (* 'rsme' *);
  317. kAEDiskEvent = $6469736B (* 'disk' *);
  318. kAENullEvent = $6E756C6C (* 'null' *);
  319. kAEWakeUpEvent = $77616B65 (* 'wake' *);
  320. kAEScrapEvent = $73637270 (* 'scrp' *);
  321. kAEHighLevel = $68696768 (* 'high' *);
  322. keyAEAngle = $6B616E67 (* 'kang' *); { 0x6b616e67 }
  323. keyAEArcAngle = $70617263 (* 'parc' *); { 0x70617263 }
  324. keyAEBaseAddr = $62616464 (* 'badd' *); { 0x62616464 }
  325. keyAEBestType = $70627374 (* 'pbst' *); { 0x70627374 }
  326. keyAEBgndColor = $6B62636C (* 'kbcl' *); { 0x6b62636c }
  327. keyAEBgndPattern = $6B627074 (* 'kbpt' *); { 0x6b627074 }
  328. keyAEBounds = $70626E64 (* 'pbnd' *); { 0x70626e64 }
  329. keyAECellList = $6B636C74 (* 'kclt' *); { 0x6b636c74 }
  330. keyAEClassID = $636C4944 (* 'clID' *); { 0x636c4944 }
  331. keyAEColor = $636F6C72 (* 'colr' *); { 0x636f6c72 }
  332. keyAEColorTable = $636C7462 (* 'cltb' *); { 0x636c7462 }
  333. keyAECurveHeight = $6B636864 (* 'kchd' *); { 0x6b636864 }
  334. keyAECurveWidth = $6B637764 (* 'kcwd' *); { 0x6b637764 }
  335. keyAEDashStyle = $70647374 (* 'pdst' *); { 0x70647374 }
  336. keyAEData = $64617461 (* 'data' *); { 0x64617461 }
  337. keyAEDefaultType = $64656674 (* 'deft' *); { 0x64656674 }
  338. keyAEDefinitionRect = $70647274 (* 'pdrt' *); { 0x70647274 }
  339. keyAEDescType = $64737470 (* 'dstp' *); { 0x64737470 }
  340. keyAEDestination = $64657374 (* 'dest' *); { 0x64657374 }
  341. keyAEDoAntiAlias = $616E7461 (* 'anta' *); { 0x616e7461 }
  342. keyAEDoDithered = $67646974 (* 'gdit' *); { 0x67646974 }
  343. keyAEDoRotate = $6B647274 (* 'kdrt' *); { 0x6b647274 }
  344. keyAEDoScale = $6B736361 (* 'ksca' *); { 0x6b736361 }
  345. keyAEDoTranslate = $6B747261 (* 'ktra' *); { 0x6b747261 }
  346. keyAEEditionFileLoc = $656C6F63 (* 'eloc' *); { 0x656c6f63 }
  347. keyAEElements = $656C6D73 (* 'elms' *); { 0x656c6d73 }
  348. keyAEEndPoint = $70656E64 (* 'pend' *); { 0x70656e64 }
  349. keyAEEventClass = $6576636C (* 'evcl' *); { 0x6576636c }
  350. keyAEEventID = $65767469 (* 'evti' *); { 0x65767469 }
  351. keyAEFile = $6B66696C (* 'kfil' *); { 0x6b66696c }
  352. keyAEFileType = $666C7470 (* 'fltp' *); { 0x666c7470 }
  353. keyAEFillColor = $666C636C (* 'flcl' *); { 0x666c636c }
  354. keyAEFillPattern = $666C7074 (* 'flpt' *); { 0x666c7074 }
  355. keyAEFlipHorizontal = $6B66686F (* 'kfho' *); { 0x6b66686f }
  356. keyAEFlipVertical = $6B667674 (* 'kfvt' *); { 0x6b667674 }
  357. keyAEFont = $666F6E74 (* 'font' *); { 0x666f6e74 }
  358. keyAEFormula = $70666F72 (* 'pfor' *); { 0x70666f72 }
  359. keyAEGraphicObjects = $676F6273 (* 'gobs' *); { 0x676f6273 }
  360. keyAEID = $49442020 (* 'ID ' *); { 0x49442020 }
  361. keyAEImageQuality = $67717561 (* 'gqua' *); { 0x67717561 }
  362. keyAEInsertHere = $696E7368 (* 'insh' *); { 0x696e7368 }
  363. keyAEKeyForms = $6B657966 (* 'keyf' *); { 0x6b657966 }
  364. keyAEKeyword = $6B797764 (* 'kywd' *); { 0x6b797764 }
  365. keyAELevel = $6C65766C (* 'levl' *); { 0x6c65766c }
  366. keyAELineArrow = $6172726F (* 'arro' *); { 0x6172726f }
  367. keyAEName = $706E616D (* 'pnam' *); { 0x706e616d }
  368. keyAENewElementLoc = $706E656C (* 'pnel' *); { 0x706e656c }
  369. keyAEObject = $6B6F626A (* 'kobj' *); { 0x6b6f626a }
  370. keyAEObjectClass = $6B6F636C (* 'kocl' *); { 0x6b6f636c }
  371. keyAEOffStyles = $6F667374 (* 'ofst' *); { 0x6f667374 }
  372. keyAEOnStyles = $6F6E7374 (* 'onst' *); { 0x6f6e7374 }
  373. keyAEParameters = $70726D73 (* 'prms' *); { 0x70726d73 }
  374. keyAEParamFlags = $706D6667 (* 'pmfg' *); { 0x706d6667 }
  375. keyAEPenColor = $7070636C (* 'ppcl' *); { 0x7070636c }
  376. keyAEPenPattern = $70707061 (* 'pppa' *); { 0x70707061 }
  377. keyAEPenWidth = $70707764 (* 'ppwd' *); { 0x70707764 }
  378. keyAEPixelDepth = $70647074 (* 'pdpt' *); { 0x70647074 }
  379. keyAEPixMapMinus = $6B706D6D (* 'kpmm' *); { 0x6b706d6d }
  380. keyAEPMTable = $6B706D74 (* 'kpmt' *); { 0x6b706d74 }
  381. keyAEPointList = $70746C74 (* 'ptlt' *); { 0x70746c74 }
  382. keyAEPointSize = $7074737A (* 'ptsz' *); { 0x7074737a }
  383. keyAEPosition = $6B706F73 (* 'kpos' *); { 0x6b706f73 }
  384. keyAEPropData = $70726474 (* 'prdt' *); { 0x70726474 }
  385. keyAEProperties = $7170726F (* 'qpro' *); { 0x7170726f }
  386. keyAEProperty = $6B707270 (* 'kprp' *); { 0x6b707270 }
  387. keyAEPropFlags = $70726667 (* 'prfg' *); { 0x70726667 }
  388. keyAEPropID = $70726F70 (* 'prop' *); { 0x70726f70 }
  389. keyAEProtection = $7070726F (* 'ppro' *); { 0x7070726f }
  390. keyAERenderAs = $6B72656E (* 'kren' *); { 0x6b72656e }
  391. keyAERequestedType = $72747970 (* 'rtyp' *); { 0x72747970 }
  392. keyAEResult = $2D2D2D2D (* '----' *); { 0x2d2d2d2d }
  393. keyAEResultInfo = $7273696E (* 'rsin' *); { 0x7273696e }
  394. keyAERotation = $70726F74 (* 'prot' *); { 0x70726f74 }
  395. keyAERotPoint = $6B727470 (* 'krtp' *); { 0x6b727470 }
  396. keyAERowList = $6B726C73 (* 'krls' *); { 0x6b726c73 }
  397. keyAESaveOptions = $7361766F (* 'savo' *); { 0x7361766f }
  398. keyAEScale = $7073636C (* 'pscl' *); { 0x7073636c }
  399. keyAEScriptTag = $70736374 (* 'psct' *); { 0x70736374 }
  400. keyAEShowWhere = $73686F77 (* 'show' *); { 0x73686f77 }
  401. keyAEStartAngle = $70616E67 (* 'pang' *); { 0x70616e67 }
  402. keyAEStartPoint = $70737470 (* 'pstp' *); { 0x70737470 }
  403. keyAEStyles = $6B737479 (* 'ksty' *); { 0x6b737479 }
  404. keyAESuiteID = $73756974 (* 'suit' *); { 0x73756974 }
  405. keyAEText = $6B747874 (* 'ktxt' *); { 0x6b747874 }
  406. keyAETextColor = $70747863 (* 'ptxc' *); { 0x70747863 }
  407. keyAETextFont = $70747866 (* 'ptxf' *); { 0x70747866 }
  408. keyAETextPointSize = $70747073 (* 'ptps' *); { 0x70747073 }
  409. keyAETextStyles = $74787374 (* 'txst' *); { 0x74787374 }
  410. keyAETextLineHeight = $6B746C68 (* 'ktlh' *); { type ShortInteger }
  411. keyAETextLineAscent = $6B746173 (* 'ktas' *); { type ShortInteger }
  412. keyAETheText = $74687478 (* 'thtx' *); { 0x74687478 }
  413. keyAETransferMode = $7070746D (* 'pptm' *); { 0x7070746d }
  414. keyAETranslation = $70747273 (* 'ptrs' *); { 0x70747273 }
  415. keyAETryAsStructGraf = $746F6F67 (* 'toog' *); { 0x746f6f67 }
  416. keyAEUniformStyles = $7573746C (* 'ustl' *); { 0x7573746c }
  417. keyAEUpdateOn = $70757064 (* 'pupd' *); { 0x70757064 }
  418. keyAEUserTerm = $7574726D (* 'utrm' *); { 0x7574726d }
  419. keyAEWindow = $776E6477 (* 'wndw' *); { 0x776e6477 }
  420. keyAEWritingCode = $77726364 (* 'wrcd' *); { 0x77726364 }
  421. keyMiscellaneous = $666D7363 (* 'fmsc' *); { 0x666d7363 }
  422. keySelection = $6673656C (* 'fsel' *); { 0x6673656c }
  423. keyWindow = $6B776E64 (* 'kwnd' *); { 0x6b776e64 }
  424. { EventRecord keys }
  425. keyWhen = $7768656E (* 'when' *);
  426. keyWhere = $77686572 (* 'wher' *);
  427. keyModifiers = $6D6F6473 (* 'mods' *);
  428. keyKey = $6B657920 (* 'key ' *);
  429. keyKeyCode = $636F6465 (* 'code' *);
  430. keyKeyboard = $6B657962 (* 'keyb' *);
  431. keyDriveNumber = $64727623 (* 'drv#' *);
  432. keyErrorCode = $65727223 (* 'err#' *);
  433. keyHighLevelClass = $68636C73 (* 'hcls' *);
  434. keyHighLevelID = $68696420 (* 'hid ' *);
  435. pArcAngle = $70617263 (* 'parc' *); { 0x70617263 }
  436. pBackgroundColor = $7062636C (* 'pbcl' *); { 0x7062636c }
  437. pBackgroundPattern = $70627074 (* 'pbpt' *); { 0x70627074 }
  438. pBestType = $70627374 (* 'pbst' *); { 0x70627374 }
  439. pBounds = $70626E64 (* 'pbnd' *); { 0x70626e64 }
  440. pClass = $70636C73 (* 'pcls' *); { 0x70636c73 }
  441. pClipboard = $70636C69 (* 'pcli' *); { 0x70636c69 }
  442. pColor = $636F6C72 (* 'colr' *); { 0x636f6c72 }
  443. pColorTable = $636C7462 (* 'cltb' *); { 0x636c7462 }
  444. pContents = $70636E74 (* 'pcnt' *); { 0x70636e74 }
  445. pCornerCurveHeight = $70636864 (* 'pchd' *); { 0x70636864 }
  446. pCornerCurveWidth = $70637764 (* 'pcwd' *); { 0x70637764 }
  447. pDashStyle = $70647374 (* 'pdst' *); { 0x70647374 }
  448. pDefaultType = $64656674 (* 'deft' *); { 0x64656674 }
  449. pDefinitionRect = $70647274 (* 'pdrt' *); { 0x70647274 }
  450. pEnabled = $656E626C (* 'enbl' *); { 0x656e626c }
  451. pEndPoint = $70656E64 (* 'pend' *); { 0x70656e64 }
  452. pFillColor = $666C636C (* 'flcl' *); { 0x666c636c }
  453. pFillPattern = $666C7074 (* 'flpt' *); { 0x666c7074 }
  454. pFont = $666F6E74 (* 'font' *); { 0x666f6e74 }
  455. pFormula = $70666F72 (* 'pfor' *); { 0x70666f72 }
  456. pGraphicObjects = $676F6273 (* 'gobs' *); { 0x676f6273 }
  457. pHasCloseBox = $68636C62 (* 'hclb' *); { 0x68636c62 }
  458. pHasTitleBar = $70746974 (* 'ptit' *); { 0x70746974 }
  459. pID = $49442020 (* 'ID ' *); { 0x49442020 }
  460. pIndex = $70696478 (* 'pidx' *); { 0x70696478 }
  461. pInsertionLoc = $70696E73 (* 'pins' *); { 0x70696e73 }
  462. pIsFloating = $6973666C (* 'isfl' *); { 0x6973666c }
  463. pIsFrontProcess = $70697366 (* 'pisf' *); { 0x70697366 }
  464. pIsModal = $706D6F64 (* 'pmod' *); { 0x706d6f64 }
  465. pIsModified = $696D6F64 (* 'imod' *); { 0x696d6f64 }
  466. pIsResizable = $7072737A (* 'prsz' *); { 0x7072737a }
  467. pIsStationeryPad = $70737064 (* 'pspd' *); { 0x70737064 }
  468. pIsZoomable = $69737A6D (* 'iszm' *); { 0x69737a6d }
  469. pIsZoomed = $707A756D (* 'pzum' *); { 0x707a756d }
  470. pItemNumber = $69746D6E (* 'itmn' *); { 0x69746d6e }
  471. pJustification = $706A7374 (* 'pjst' *); { 0x706a7374 }
  472. pLineArrow = $6172726F (* 'arro' *); { 0x6172726f }
  473. pMenuID = $6D6E6964 (* 'mnid' *); { 0x6d6e6964 }
  474. pName = $706E616D (* 'pnam' *); { 0x706e616d }
  475. pNewElementLoc = $706E656C (* 'pnel' *); { 0x706e656c }
  476. pPenColor = $7070636C (* 'ppcl' *); { 0x7070636c }
  477. pPenPattern = $70707061 (* 'pppa' *); { 0x70707061 }
  478. pPenWidth = $70707764 (* 'ppwd' *); { 0x70707764 }
  479. pPixelDepth = $70647074 (* 'pdpt' *); { 0x70647074 }
  480. pPointList = $70746C74 (* 'ptlt' *); { 0x70746c74 }
  481. pPointSize = $7074737A (* 'ptsz' *); { 0x7074737a }
  482. pProtection = $7070726F (* 'ppro' *); { 0x7070726f }
  483. pRotation = $70726F74 (* 'prot' *); { 0x70726f74 }
  484. pScale = $7073636C (* 'pscl' *); { 0x7073636c }
  485. pScript = $73637074 (* 'scpt' *); { 0x73637074 }
  486. pScriptTag = $70736374 (* 'psct' *); { 0x70736374 }
  487. pSelected = $73656C63 (* 'selc' *); { 0x73656c63 }
  488. pSelection = $73656C65 (* 'sele' *); { 0x73656c65 }
  489. pStartAngle = $70616E67 (* 'pang' *); { 0x70616e67 }
  490. pStartPoint = $70737470 (* 'pstp' *); { 0x70737470 }
  491. pTextColor = $70747863 (* 'ptxc' *); { 0x70747863 }
  492. pTextFont = $70747866 (* 'ptxf' *); { 0x70747866 }
  493. pTextItemDelimiters = $7478646C (* 'txdl' *); { 0x7478646c }
  494. pTextPointSize = $70747073 (* 'ptps' *); { 0x70747073 }
  495. pTextStyles = $74787374 (* 'txst' *); { 0x74787374 }
  496. pTransferMode = $7070746D (* 'pptm' *); { 0x7070746d }
  497. pTranslation = $70747273 (* 'ptrs' *); { 0x70747273 }
  498. pUniformStyles = $7573746C (* 'ustl' *); { 0x7573746c }
  499. pUpdateOn = $70757064 (* 'pupd' *); { 0x70757064 }
  500. pUserSelection = $7075736C (* 'pusl' *); { 0x7075736c }
  501. pVersion = $76657273 (* 'vers' *); { 0x76657273 }
  502. pVisible = $70766973 (* 'pvis' *); { 0x70766973 }
  503. typeAEText = $74545854 (* 'tTXT' *); { 0x74545854 }
  504. typeArc = $63617263 (* 'carc' *); { 0x63617263 }
  505. typeBest = $62657374 (* 'best' *); { 0x62657374 }
  506. typeCell = $6363656C (* 'ccel' *); { 0x6363656c }
  507. typeClassInfo = $67636C69 (* 'gcli' *); { 0x67636c69 }
  508. typeColorTable = $636C7274 (* 'clrt' *); { 0x636c7274 }
  509. typeColumn = $63636F6C (* 'ccol' *); { 0x63636f6c }
  510. typeDashStyle = $74646173 (* 'tdas' *); { 0x74646173 }
  511. typeData = $74647461 (* 'tdta' *); { 0x74647461 }
  512. typeDrawingArea = $63647277 (* 'cdrw' *); { 0x63647277 }
  513. typeElemInfo = $656C696E (* 'elin' *); { 0x656c696e }
  514. typeEnumeration = $656E756D (* 'enum' *); { 0x656e756d }
  515. typeEPS = $45505320 (* 'EPS ' *); { 0x45505320 }
  516. typeEventInfo = $6576696E (* 'evin' *); { 0x6576696e }
  517. typeFinderWindow = $6677696E (* 'fwin' *); { 0x6677696e }
  518. typeFixedPoint = $66706E74 (* 'fpnt' *); { 0x66706e74 }
  519. typeFixedRectangle = $66726374 (* 'frct' *); { 0x66726374 }
  520. typeGraphicLine = $676C696E (* 'glin' *); { 0x676c696e }
  521. typeGraphicText = $63677478 (* 'cgtx' *); { 0x63677478 }
  522. typeGroupedGraphic = $63706963 (* 'cpic' *); { 0x63706963 }
  523. typeInsertionLoc = $696E736C (* 'insl' *); { 0x696e736c }
  524. typeIntlText = $69747874 (* 'itxt' *); { 0x69747874 }
  525. typeIntlWritingCode = $696E746C (* 'intl' *); { 0x696e746c }
  526. typeLongDateTime = $6C647420 (* 'ldt ' *); { 0x6c647420 }
  527. typeISO8601DateTime = $69736F74 (* 'isot' *); { 0x69736f74 data is ascii text of an ISO8601 date }
  528. typeLongFixed = $6C667864 (* 'lfxd' *); { 0x6c667864 }
  529. typeLongFixedPoint = $6C667074 (* 'lfpt' *); { 0x6c667074 }
  530. typeLongFixedRectangle = $6C667263 (* 'lfrc' *); { 0x6c667263 }
  531. typeLongPoint = $6C706E74 (* 'lpnt' *); { 0x6c706e74 }
  532. typeLongRectangle = $6C726374 (* 'lrct' *); { 0x6c726374 }
  533. typeMachineLoc = $6D4C6F63 (* 'mLoc' *); { 0x6d4c6f63 }
  534. typeOval = $636F766C (* 'covl' *); { 0x636f766c }
  535. typeParamInfo = $706D696E (* 'pmin' *); { 0x706d696e }
  536. typePict = $50494354 (* 'PICT' *); { 0x50494354 }
  537. typePixelMap = $63706978 (* 'cpix' *); { 0x63706978 }
  538. typePixMapMinus = $74706D6D (* 'tpmm' *); { 0x74706d6d }
  539. typePolygon = $6370676E (* 'cpgn' *); { 0x6370676e }
  540. typePropInfo = $70696E66 (* 'pinf' *); { 0x70696e66 }
  541. typePtr = $70747220 (* 'ptr ' *); { 0x70747220 }
  542. typeQDPoint = $51447074 (* 'QDpt' *); { 0x51447074 }
  543. typeQDRegion = $5172676E (* 'Qrgn' *); { 0x51447074 (data is actual region data, including rectangle and size, _not_ region handle or ptr) }
  544. typeRectangle = $63726563 (* 'crec' *); { 0x63726563 }
  545. typeRGB16 = $74723136 (* 'tr16' *); { 0x74723136 }
  546. typeRGB96 = $74723936 (* 'tr96' *); { 0x74723936 }
  547. typeRGBColor = $63524742 (* 'cRGB' *); { 0x63524742 }
  548. typeRotation = $74726F74 (* 'trot' *); { 0x74726f74 }
  549. typeRoundedRectangle = $63727263 (* 'crrc' *); { 0x63727263 }
  550. typeRow = $63726F77 (* 'crow' *); { 0x63726f77 }
  551. typeScrapStyles = $7374796C (* 'styl' *); { 0x7374796c }
  552. typeScript = $73637074 (* 'scpt' *); { 0x73637074 }
  553. typeStyledText = $53545854 (* 'STXT' *); { 0x53545854 }
  554. typeSuiteInfo = $7375696E (* 'suin' *); { 0x7375696e }
  555. typeTable = $6374626C (* 'ctbl' *); { 0x6374626c }
  556. typeTextStyles = $74737479 (* 'tsty' *); { 0x74737479 }
  557. typeTIFF = $54494646 (* 'TIFF' *); { 0x54494646 }
  558. typeJPEG = $4A504547 (* 'JPEG' *);
  559. typeGIF = $47494666 (* 'GIFf' *);
  560. typeVersion = $76657273 (* 'vers' *); { 0x76657273 }
  561. kAEMenuClass = $6D656E75 (* 'menu' *);
  562. kAEMenuSelect = $6D686974 (* 'mhit' *);
  563. kAEMouseDown = $6D64776E (* 'mdwn' *);
  564. kAEMouseDownInBack = $6D64626B (* 'mdbk' *);
  565. kAEKeyDown = $6B64776E (* 'kdwn' *);
  566. kAEResized = $7273697A (* 'rsiz' *);
  567. kAEPromise = $70726F6D (* 'prom' *);
  568. keyMenuID = $6D696420 (* 'mid ' *);
  569. keyMenuItem = $6D69746D (* 'mitm' *);
  570. keyCloseAllWindows = $63617720 (* 'caw ' *);
  571. keyOriginalBounds = $6F626E64 (* 'obnd' *);
  572. keyNewBounds = $6E626E64 (* 'nbnd' *);
  573. keyLocalWhere = $6C776872 (* 'lwhr' *);
  574. typeHIMenu = $6D6F626A (* 'mobj' *);
  575. typeHIWindow = $776F626A (* 'wobj' *);
  576. kBySmallIcon = 0;
  577. kByIconView = 1;
  578. kByNameView = 2;
  579. kByDateView = 3;
  580. kBySizeView = 4;
  581. kByKindView = 5;
  582. kByCommentView = 6;
  583. kByLabelView = 7;
  584. kByVersionView = 8;
  585. kAEInfo = 11;
  586. kAEMain = 0;
  587. kAESharing = 13;
  588. kAEZoomIn = 7;
  589. kAEZoomOut = 8;
  590. kTextServiceClass = $74737663 (* 'tsvc' *);
  591. kUpdateActiveInputArea = $75706474 (* 'updt' *); { update the active input area }
  592. kShowHideInputWindow = $73686977 (* 'shiw' *); { show or hide the input window }
  593. kPos2Offset = $70327374 (* 'p2st' *); { converting global coordinates to char position }
  594. kOffset2Pos = $73743270 (* 'st2p' *); { converting char position to global coordinates }
  595. kUnicodeNotFromInputMethod = $756E696D (* 'unim' *); { Unicode text when event not handled by Input Method or no Input Method }
  596. kGetSelectedText = $67747874 (* 'gtxt' *); { Get text for current selection }
  597. keyAETSMDocumentRefcon = $72656663 (* 'refc' *); { TSM document refcon, typeLongInteger }
  598. keyAEServerInstance = $73727669 (* 'srvi' *); { component instance }
  599. keyAETheData = $6B646174 (* 'kdat' *); { typeText }
  600. keyAEFixLength = $6669786C (* 'fixl' *); { fix len }
  601. keyAEUpdateRange = $75646E67 (* 'udng' *); { typeTextRangeArray }
  602. keyAECurrentPoint = $63706F73 (* 'cpos' *); { current point }
  603. keyAEBufferSize = $62756666 (* 'buff' *); { buffer size to get the text }
  604. keyAEMoveView = $6D767677 (* 'mvvw' *); { move view flag }
  605. keyAENextBody = $6E786264 (* 'nxbd' *); { next or previous body }
  606. keyAETSMScriptTag = $73636C67 (* 'sclg' *);
  607. keyAETSMTextFont = $6B747866 (* 'ktxf' *); { FMFontFamily or FOND ID }
  608. keyAETSMTextFMFont = $6B74786D (* 'ktxm' *); { FMFont }
  609. keyAETSMTextPointSize = $6B747073 (* 'ktps' *);
  610. keyAETSMEventRecord = $74657674 (* 'tevt' *); { Low level Event Record, typeLowLevelEventRecord }
  611. keyAETSMEventRef = $74657672 (* 'tevr' *); { Carbon EventRef, typeEventRef }
  612. keyAETextServiceEncoding = $7473656E (* 'tsen' *); { Text Service encoding, mac or Unicode in UpdateActiveInputArea or GetSelectedText events. }
  613. keyAETextServiceMacEncoding = $746D656E (* 'tmen' *); { Target mac encoding for TSM conversion of text from Unicode text service. }
  614. typeTextRange = $7478726E (* 'txrn' *); { TextRange }
  615. typeComponentInstance = $636D7069 (* 'cmpi' *); { server instance }
  616. typeOffsetArray = $6F666179 (* 'ofay' *); { offset array }
  617. typeTextRangeArray = $74726179 (* 'tray' *);
  618. typeLowLevelEventRecord = $65767472 (* 'evtr' *); { Low Level Event Record }
  619. typeEventRef = $65767266 (* 'evrf' *); { Carbon EventRef }
  620. typeText = $54455854 (* 'TEXT' *); { Plain text }
  621. { Desc type constants }
  622. kTSMOutsideOfBody = 1;
  623. kTSMInsideOfBody = 2;
  624. kTSMInsideOfActiveInputArea = 3;
  625. kNextBody = 1;
  626. kPreviousBody = 2;
  627. type
  628. TextRangePtr = ^TextRange;
  629. TextRange = record
  630. fStart: SInt32;
  631. fEnd: SInt32;
  632. fHiliteStyle: SInt16;
  633. end;
  634. TextRangeHandle = ^TextRangePtr;
  635. TextRangeArrayPtr = ^TextRangeArray;
  636. TextRangeArray = record
  637. fNumOfRanges: SInt16; { specify the size of the fRange array }
  638. fRange: array [0..0] of TextRange; { when fNumOfRanges > 1, the size of this array has to be calculated }
  639. end;
  640. TextRangeArrayHandle = ^TextRangeArrayPtr;
  641. OffsetArrayPtr = ^OffsetArray;
  642. OffsetArray = record
  643. fNumOfOffsets: SInt16; { specify the size of the fOffset array }
  644. fOffset: array [0..0] of SInt32; { when fNumOfOffsets > 1, the size of this array has to be calculated }
  645. end;
  646. OffsetArrayHandle = ^OffsetArrayPtr;
  647. WritingCodePtr = ^WritingCode;
  648. WritingCode = record
  649. theScriptCode: ScriptCode;
  650. theLangCode: LangCode;
  651. end;
  652. IntlTextPtr = ^IntlText;
  653. IntlText = record
  654. theScriptCode: ScriptCode;
  655. theLangCode: LangCode;
  656. theText: SInt8; { variable length data }
  657. end;
  658. { Hilite styles }
  659. const
  660. kTSMHiliteCaretPosition = 1; { specify caret position }
  661. kTSMHiliteRawText = 2; { specify range of raw text }
  662. kTSMHiliteSelectedRawText = 3; { specify range of selected raw text }
  663. kTSMHiliteConvertedText = 4; { specify range of converted text }
  664. kTSMHiliteSelectedConvertedText = 5; { specify range of selected converted text }
  665. kTSMHiliteBlockFillText = 6; { Block Fill hilite style }
  666. kTSMHiliteOutlineText = 7; { Outline hilite style }
  667. kTSMHiliteSelectedText = 8; { Selected hilite style }
  668. kTSMHiliteNoHilite = 9; { specify range of non-hilited text }
  669. {$ifc OLDROUTINENAMES}
  670. { Hilite styles }
  671. const
  672. kCaretPosition = kTSMHiliteCaretPosition;
  673. kRawText = kTSMHiliteRawText;
  674. kSelectedRawText = kTSMHiliteSelectedRawText;
  675. kConvertedText = kTSMHiliteConvertedText;
  676. kSelectedConvertedText = kTSMHiliteSelectedConvertedText;
  677. kBlockFillText = kTSMHiliteBlockFillText;
  678. kOutlineText = kTSMHiliteOutlineText;
  679. kSelectedText = kTSMHiliteSelectedText;
  680. {$endc} {OLDROUTINENAMES}
  681. keyAEHiliteRange = $68726E67 (* 'hrng' *); { typeTextRangeArray for System 7, typeHiliteRangeArray for System 8 }
  682. keyAEPinRange = $706E7267 (* 'pnrg' *); { typeTextRange for System 7, typeTextRegionRange for System 8 }
  683. keyAEClauseOffsets = $636C6175 (* 'clau' *); { typeOffsetArray for System 7, typeClauseOffsetArray for System 8 }
  684. keyAEOffset = $6F667374 (* 'ofst' *); { typeLongInteger for System 7, typeByteOffset for System 8 }
  685. keyAEPoint = $67706F73 (* 'gpos' *); { typePoint for System 7, typeQDPoint for System 8 }
  686. keyAELeftSide = $6B6C6566 (* 'klef' *); { typeBoolean }
  687. keyAERegionClass = $72676E63 (* 'rgnc' *); { typeShortInteger for System 7, typeRegionClass for System 8 }
  688. keyAEDragging = $626F6F6C (* 'bool' *); { typeBoolean }
  689. {$ifc OLDROUTINENAMES}
  690. keyAELeadingEdge = $6B6C6566 (* 'klef' *);
  691. {$endc} {OLDROUTINENAMES}
  692. { AppleScript 1.3: New Text types }
  693. {
  694. * The following descriptor types are deprecated due to their lack of
  695. * explicit encoding or byte order definition. Please use
  696. * typeUTF16ExternalRepresentation or typeUTF8Text instead. }
  697. typeUnicodeText = $75747874 (* 'utxt' *); { native byte ordering, optional BOM
  698. typeStyledUnicodeText = $73757478 (* 'sutx' *); { Not implemented }
  699. typeEncodedString = $656E6373 (* 'encs' *); { Not implemented }
  700. typeCString = $63737472 (* 'cstr' *); { MacRoman characters followed by a NULL byte }
  701. typePString = $70737472 (* 'pstr' *); { Unsigned length byte followed by MacRoman characters }
  702. { AppleScript 1.3: Unit types }
  703. typeMeters = $6D657472 (* 'metr' *); { Base Unit }
  704. typeInches = $696E6368 (* 'inch' *);
  705. typeFeet = $66656574 (* 'feet' *);
  706. typeYards = $79617264 (* 'yard' *);
  707. typeMiles = $6D696C65 (* 'mile' *);
  708. typeKilometers = $6B6D7472 (* 'kmtr' *);
  709. typeCentimeters = $636D7472 (* 'cmtr' *);
  710. typeSquareMeters = $7371726D (* 'sqrm' *); { Base Unit }
  711. typeSquareFeet = $73716674 (* 'sqft' *);
  712. typeSquareYards = $73717964 (* 'sqyd' *);
  713. typeSquareMiles = $73716D69 (* 'sqmi' *);
  714. typeSquareKilometers = $73716B6D (* 'sqkm' *);
  715. typeLiters = $6C697472 (* 'litr' *); { Base Unit }
  716. typeQuarts = $71727473 (* 'qrts' *);
  717. typeGallons = $67616C6E (* 'galn' *);
  718. typeCubicMeters = $636D6574 (* 'cmet' *); { Base Unit }
  719. typeCubicFeet = $63666574 (* 'cfet' *);
  720. typeCubicInches = $6375696E (* 'cuin' *);
  721. typeCubicCentimeter = $63636D74 (* 'ccmt' *);
  722. typeCubicYards = $63797264 (* 'cyrd' *);
  723. typeKilograms = $6B67726D (* 'kgrm' *); { Base Unit }
  724. typeGrams = $6772616D (* 'gram' *);
  725. typeOunces = $6F7A7320 (* 'ozs ' *);
  726. typePounds = $6C627320 (* 'lbs ' *);
  727. typeDegreesC = $64656763 (* 'degc' *); { Base Unit }
  728. typeDegreesF = $64656766 (* 'degf' *);
  729. typeDegreesK = $6465676B (* 'degk' *);
  730. { AppleScript 1.3: Folder Actions }
  731. kFAServerApp = $73737276 (* 'ssrv' *); { Creator code for Folder Actions Server }
  732. kDoFolderActionEvent = $666F6C61 (* 'fola' *); { Event the Finder sends to the Folder Actions FBA }
  733. kFolderActionCode = $6163746E (* 'actn' *); { Parameter that contains the Folder Action }
  734. kFolderOpenedEvent = $666F706E (* 'fopn' *); { Value of kFolderActionCode parameter; sent to script as event }
  735. kFolderClosedEvent = $66636C6F (* 'fclo' *);
  736. kFolderWindowMovedEvent = $6673697A (* 'fsiz' *);
  737. kFolderItemsAddedEvent = $66676574 (* 'fget' *);
  738. kFolderItemsRemovedEvent = $666C6F73 (* 'flos' *);
  739. kItemList = $666C7374 (* 'flst' *); { List parameter for added and removed items }
  740. kNewSizeParameter = $666E737A (* 'fnsz' *); { Parameter for moved window }
  741. kFASuiteCode = $6661636F (* 'faco' *); { Suite code for the following events }
  742. kFAAttachCommand = $61746661 (* 'atfa' *); { Attach event id }
  743. kFARemoveCommand = $726D6661 (* 'rmfa' *); { Remove event id }
  744. kFAEditCommand = $65646661 (* 'edfa' *); { Edit event id }
  745. kFAFileParam = $6661616C (* 'faal' *); { Key for file parameter for Attach }
  746. kFAIndexParam = $696E6478 (* 'indx' *); { Key for index (0-based) parameter for Remove and Edit }
  747. { AppleScript 1.3 Internet Suite }
  748. { Suite code }
  749. kAEInternetSuite = $6775726C (* 'gurl' *);
  750. kAEISWebStarSuite = $575757CE (* 'WWW½' *);
  751. { Events }
  752. kAEISGetURL = $6775726C (* 'gurl' *);
  753. KAEISHandleCGI = $73646F63 (* 'sdoc' *);
  754. { Classes }
  755. cURL = $75726C20 (* 'url ' *);
  756. cInternetAddress = $49504144 (* 'IPAD' *);
  757. cHTML = $68746D6C (* 'html' *);
  758. cFTPItem = $66747020 (* 'ftp ' *);
  759. { Parameters }
  760. kAEISHTTPSearchArgs = $6B666F72 (* 'kfor' *);
  761. kAEISPostArgs = $706F7374 (* 'post' *);
  762. kAEISMethod = $6D657468 (* 'meth' *);
  763. kAEISClientAddress = $61646472 (* 'addr' *);
  764. kAEISUserName = $75736572 (* 'user' *);
  765. kAEISPassword = $70617373 (* 'pass' *);
  766. kAEISFromUser = $66726D75 (* 'frmu' *);
  767. kAEISServerName = $73766E6D (* 'svnm' *);
  768. kAEISServerPort = $73767074 (* 'svpt' *);
  769. kAEISScriptName = $73636E6D (* 'scnm' *);
  770. kAEISContentType = $63747970 (* 'ctyp' *);
  771. kAEISReferrer = $72656672 (* 'refr' *);
  772. kAEISUserAgent = $41676E74 (* 'Agnt' *);
  773. kAEISAction = $4B616374 (* 'Kact' *);
  774. kAEISActionPath = $4B617074 (* 'Kapt' *);
  775. kAEISClientIP = $4B636970 (* 'Kcip' *);
  776. kAEISFullRequest = $4B667271 (* 'Kfrq' *);
  777. { Properties }
  778. pScheme = $70757363 (* 'pusc' *);
  779. pHost = $484F5354 (* 'HOST' *);
  780. pPath = $46545063 (* 'FTPc' *);
  781. pUserName = $5241756E (* 'RAun' *);
  782. pUserPassword = $52417077 (* 'RApw' *);
  783. pDNSForm = $70444E53 (* 'pDNS' *);
  784. pURL = $7055524C (* 'pURL' *);
  785. pTextEncoding = $70747865 (* 'ptxe' *);
  786. pFTPKind = $6B696E64 (* 'kind' *);
  787. { Scheme enumerations }
  788. eScheme = $65736368 (* 'esch' *);
  789. eurlHTTP = $68747470 (* 'http' *); { RFC 2068 }
  790. eurlHTTPS = $68747073 (* 'htps' *);
  791. eurlFTP = $66747020 (* 'ftp ' *); { RFC 1738 }
  792. eurlMail = $6D61696C (* 'mail' *); { RFC 2638 }
  793. eurlFile = $66696C65 (* 'file' *); { RFC 1738 }
  794. eurlGopher = $67706872 (* 'gphr' *); { RFC 1738 }
  795. eurlTelnet = $746C6E74 (* 'tlnt' *); { RFC 1738 }
  796. eurlNews = $6E657773 (* 'news' *); { RFC 1738 }
  797. eurlSNews = $736E7773 (* 'snws' *);
  798. eurlNNTP = $6E6E7470 (* 'nntp' *); { RFC 1738 }
  799. eurlMessage = $6D657373 (* 'mess' *);
  800. eurlMailbox = $6D626F78 (* 'mbox' *);
  801. eurlMulti = $6D756C74 (* 'mult' *);
  802. eurlLaunch = $6C61756E (* 'laun' *);
  803. eurlAFP = $61667020 (* 'afp ' *);
  804. eurlAT = $61742020 (* 'at ' *);
  805. eurlEPPC = $65707063 (* 'eppc' *);
  806. eurlRTSP = $72747370 (* 'rtsp' *); { RFC 2326 }
  807. eurlIMAP = $696D6170 (* 'imap' *); { RFC 2192 }
  808. eurlNFS = $756E6673 (* 'unfs' *); { RFC 2224 }
  809. eurlPOP = $75706F70 (* 'upop' *); { RFC 2384 }
  810. eurlLDAP = $756C6470 (* 'uldp' *); { RFC 2255 }
  811. eurlUnknown = $75726C3F (* 'url?' *);
  812. { AppleScript 1.3: Connectivity Suite in aeut }
  813. kConnSuite = $6D616363 (* 'macc' *);
  814. cDevSpec = $63646576 (* 'cdev' *);
  815. cAddressSpec = $63616472 (* 'cadr' *);
  816. cADBAddress = $63616462 (* 'cadb' *);
  817. cAppleTalkAddress = $63617420 (* 'cat ' *);
  818. cBusAddress = $63627573 (* 'cbus' *);
  819. cEthernetAddress = $63656E20 (* 'cen ' *);
  820. cFireWireAddress = $63667720 (* 'cfw ' *);
  821. cIPAddress = $63697020 (* 'cip ' *);
  822. cLocalTalkAddress = $636C7420 (* 'clt ' *);
  823. cSCSIAddress = $63736373 (* 'cscs' *);
  824. cTokenRingAddress = $63746F6B (* 'ctok' *);
  825. cUSBAddress = $63757362 (* 'cusb' *); { }
  826. { Properties }
  827. pDeviceType = $70647674 (* 'pdvt' *);
  828. pDeviceAddress = $70647661 (* 'pdva' *);
  829. pConduit = $70636F6E (* 'pcon' *);
  830. pProtocol = $70707274 (* 'pprt' *); { cde 4/27/98 was 'ppro' conflicted with DB suite }
  831. pATMachine = $7061746D (* 'patm' *);
  832. pATZone = $7061747A (* 'patz' *);
  833. pATType = $70617474 (* 'patt' *);
  834. pDottedDecimal = $70697064 (* 'pipd' *);
  835. pDNS = $70646E73 (* 'pdns' *);
  836. pPort = $70706F72 (* 'ppor' *);
  837. pNetwork = $706E6574 (* 'pnet' *);
  838. pNode = $706E6F64 (* 'pnod' *);
  839. pSocket = $70736F63 (* 'psoc' *);
  840. pSCSIBus = $70736362 (* 'pscb' *);
  841. pSCSILUN = $70736C75 (* 'pslu' *); { cde 5/22/98 per WWDC developer request }
  842. { Enumerations and enumerators }
  843. eDeviceType = $65647674 (* 'edvt' *);
  844. eAddressSpec = $65616473 (* 'eads' *);
  845. eConduit = $65636F6E (* 'econ' *);
  846. eProtocol = $6570726F (* 'epro' *);
  847. eADB = $65616462 (* 'eadb' *);
  848. eAnalogAudio = $65706175 (* 'epau' *);
  849. eAppleTalk = $65706174 (* 'epat' *);
  850. eAudioLineIn = $65636169 (* 'ecai' *);
  851. eAudioLineOut = $6563616C (* 'ecal' *); { cde 4/24/98 changed from 'ecao' to not conflict }
  852. eAudioOut = $6563616F (* 'ecao' *);
  853. eBus = $65627573 (* 'ebus' *);
  854. eCDROM = $65636420 (* 'ecd ' *);
  855. eCommSlot = $6563636D (* 'eccm' *);
  856. eDigitalAudio = $65706461 (* 'epda' *);
  857. eDisplay = $65646473 (* 'edds' *);
  858. eDVD = $65647664 (* 'edvd' *);
  859. eEthernet = $6563656E (* 'ecen' *);
  860. eFireWire = $65636677 (* 'ecfw' *);
  861. eFloppy = $65666420 (* 'efd ' *);
  862. eHD = $65686420 (* 'ehd ' *);
  863. eInfrared = $65636972 (* 'ecir' *);
  864. eIP = $65706970 (* 'epip' *);
  865. eIrDA = $65706972 (* 'epir' *);
  866. eIRTalk = $65706974 (* 'epit' *);
  867. eKeyboard = $656B6264 (* 'ekbd' *);
  868. eLCD = $65646C63 (* 'edlc' *);
  869. eLocalTalk = $65636C74 (* 'eclt' *);
  870. eMacIP = $65706D69 (* 'epmi' *);
  871. eMacVideo = $65706D76 (* 'epmv' *);
  872. eMicrophone = $65636D69 (* 'ecmi' *);
  873. eModemPort = $65636D70 (* 'ecmp' *);
  874. eModemPrinterPort = $656D7070 (* 'empp' *);
  875. eModem = $65646D6D (* 'edmm' *);
  876. eMonitorOut = $65636D6E (* 'ecmn' *);
  877. eMouse = $656D6F75 (* 'emou' *);
  878. eNuBusCard = $65646E62 (* 'ednb' *);
  879. eNuBus = $656E7562 (* 'enub' *);
  880. ePCcard = $65637063 (* 'ecpc' *);
  881. ePCIbus = $65637069 (* 'ecpi' *);
  882. ePCIcard = $65647069 (* 'edpi' *);
  883. ePDSslot = $65637064 (* 'ecpd' *);
  884. ePDScard = $65706473 (* 'epds' *);
  885. ePointingDevice = $65647064 (* 'edpd' *);
  886. ePostScript = $65707073 (* 'epps' *);
  887. ePPP = $65707070 (* 'eppp' *);
  888. ePrinterPort = $65637070 (* 'ecpp' *);
  889. ePrinter = $65647072 (* 'edpr' *);
  890. eSvideo = $65707376 (* 'epsv' *);
  891. eSCSI = $65637363 (* 'ecsc' *);
  892. eSerial = $65707372 (* 'epsr' *);
  893. eSpeakers = $65647370 (* 'edsp' *);
  894. eStorageDevice = $65647374 (* 'edst' *);
  895. eSVGA = $65707367 (* 'epsg' *);
  896. eTokenRing = $65746F6B (* 'etok' *);
  897. eTrackball = $6574726B (* 'etrk' *);
  898. eTrackpad = $65647470 (* 'edtp' *);
  899. eUSB = $65637573 (* 'ecus' *);
  900. eVideoIn = $65637669 (* 'ecvi' *);
  901. eVideoMonitor = $6564766D (* 'edvm' *);
  902. eVideoOut = $6563766F (* 'ecvo' *);
  903. { AppleScript 1.3: Keystroke class }
  904. cKeystroke = $6B707273 (* 'kprs' *);
  905. pKeystrokeKey = $6B4D7367 (* 'kMsg' *);
  906. pModifiers = $6B4D6F64 (* 'kMod' *);
  907. pKeyKind = $6B6B6E64 (* 'kknd' *);
  908. eModifiers = $654D6473 (* 'eMds' *);
  909. eOptionDown = $4B6F7074 (* 'Kopt' *);
  910. eCommandDown = $4B636D64 (* 'Kcmd' *);
  911. eControlDown = $4B63746C (* 'Kctl' *);
  912. eShiftDown = $4B736674 (* 'Ksft' *);
  913. eCapsLockDown = $4B636C6B (* 'Kclk' *);
  914. eKeyKind = $656B7374 (* 'ekst' *); { }
  915. { Special keys all start with 'ks' }
  916. eEscapeKey = $6B733500; { Third byte is virtual key code byte }
  917. eDeleteKey = $6B733300; { (see IM Mac Toolbox Essentials, pp. 2-43) }
  918. eTabKey = $6B733000;
  919. eReturnKey = $6B732400;
  920. eClearKey = $6B734700;
  921. eEnterKey = $6B734C00;
  922. eUpArrowKey = $6B737E00;
  923. eDownArrowKey = $6B737D00;
  924. eLeftArrowKey = $6B737B00;
  925. eRightArrowKey = $6B737C00;
  926. eHelpKey = $6B737200;
  927. eHomeKey = $6B737300;
  928. ePageUpKey = $6B737400;
  929. ePageDownKey = $6B737900;
  930. eForwardDelKey = $6B737500;
  931. eEndKey = $6B737700;
  932. eF1Key = $6B737A00;
  933. eF2Key = $6B737800;
  934. eF3Key = $6B736300;
  935. eF4Key = $6B737600;
  936. eF5Key = $6B736000;
  937. eF6Key = $6B736100;
  938. eF7Key = $6B736200;
  939. eF8Key = $6B736400;
  940. eF9Key = $6B736500;
  941. eF10Key = $6B736D00;
  942. eF11Key = $6B736700;
  943. eF12Key = $6B736F00;
  944. eF13Key = $6B736900;
  945. eF14Key = $6B736B00;
  946. eF15Key = $6B737100;
  947. keyAEQuitWithoutUI = $6E6F7569 (* 'noui' *); { If present in a kAEQuitApplication event, autosave any documents with uncommitted changes and quit }
  948. {$ALIGN MAC68K}
  949. end.