1 { 2 File: AE/AERegistry.h 3 4 Contains: AppleEvents Registry Interface. 5 6 7 8 Copyright: � 1993-2008 by Apple Computer, Inc., all rights reserved 9 10 Bugs?: For bug reports, consult the following page on 11 the World Wide Web: 12 13 http://bugs.freepascal.org 14 15 } 16 { 17 Modified for use with Free Pascal 18 Version 308 19 Please report any bugs to <gpc@microbizz.nl> 20 } 21 22 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE} 23 {$mode macpas} 24 {$modeswitch cblocks} 25 {$packenum 1} 26 {$macro on} 27 {$inline on} 28 {$calling mwpascal} 29 30 unit AERegistry; 31 interface 32 {$setc UNIVERSAL_INTERFACES_VERSION := $0400} 33 {$setc GAP_INTERFACES_VERSION := $0308} 34 35 {$ifc not defined USE_CFSTR_CONSTANT_MACROS} 36 {$setc USE_CFSTR_CONSTANT_MACROS := TRUE} 37 {$endc} 38 39 {$ifc defined CPUPOWERPC and defined CPUI386} 40 {$error Conflicting initial definitions for CPUPOWERPC and CPUI386} 41 {$endc} 42 {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN} 43 {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN} 44 {$endc} 45 46 {$ifc not defined __ppc__ and defined CPUPOWERPC32} 47 {$setc __ppc__ := 1} 48 {$elsec} 49 {$setc __ppc__ := 0} 50 {$endc} 51 {$ifc not defined __ppc64__ and defined CPUPOWERPC64} 52 {$setc __ppc64__ := 1} 53 {$elsec} 54 {$setc __ppc64__ := 0} 55 {$endc} 56 {$ifc not defined __i386__ and defined CPUI386} 57 {$setc __i386__ := 1} 58 {$elsec} 59 {$setc __i386__ := 0} 60 {$endc} 61 {$ifc not defined __x86_64__ and defined CPUX86_64} 62 {$setc __x86_64__ := 1} 63 {$elsec} 64 {$setc __x86_64__ := 0} 65 {$endc} 66 {$ifc not defined __arm__ and defined CPUARM} 67 {$setc __arm__ := 1} 68 {$elsec} 69 {$setc __arm__ := 0} 70 {$endc} 71 {$ifc not defined __arm64__ and defined CPUAARCH64} 72 {$setc __arm64__ := 1} 73 {$elsec} 74 {$setc __arm64__ := 0} 75 {$endc} 76 77 {$ifc defined cpu64} 78 {$setc __LP64__ := 1} 79 {$elsec} 80 {$setc __LP64__ := 0} 81 {$endc} 82 83 84 {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__} 85 {$error Conflicting definitions for __ppc__ and __i386__} 86 {$endc} 87 88 {$ifc defined __ppc__ and __ppc__} 89 {$setc TARGET_CPU_PPC := TRUE} 90 {$setc TARGET_CPU_PPC64 := FALSE} 91 {$setc TARGET_CPU_X86 := FALSE} 92 {$setc TARGET_CPU_X86_64 := FALSE} 93 {$setc TARGET_CPU_ARM := FALSE} 94 {$setc TARGET_CPU_ARM64 := FALSE} 95 {$setc TARGET_OS_MAC := TRUE} 96 {$setc TARGET_OS_IPHONE := FALSE} 97 {$setc TARGET_IPHONE_SIMULATOR := FALSE} 98 {$setc TARGET_OS_EMBEDDED := FALSE} 99 {$elifc defined __ppc64__ and __ppc64__} 100 {$setc TARGET_CPU_PPC := FALSE} 101 {$setc TARGET_CPU_PPC64 := TRUE} 102 {$setc TARGET_CPU_X86 := FALSE} 103 {$setc TARGET_CPU_X86_64 := FALSE} 104 {$setc TARGET_CPU_ARM := FALSE} 105 {$setc TARGET_CPU_ARM64 := FALSE} 106 {$setc TARGET_OS_MAC := TRUE} 107 {$setc TARGET_OS_IPHONE := FALSE} 108 {$setc TARGET_IPHONE_SIMULATOR := FALSE} 109 {$setc TARGET_OS_EMBEDDED := FALSE} 110 {$elifc defined __i386__ and __i386__} 111 {$setc TARGET_CPU_PPC := FALSE} 112 {$setc TARGET_CPU_PPC64 := FALSE} 113 {$setc TARGET_CPU_X86 := TRUE} 114 {$setc TARGET_CPU_X86_64 := FALSE} 115 {$setc TARGET_CPU_ARM := FALSE} 116 {$setc TARGET_CPU_ARM64 := FALSE} 117 {$ifc defined iphonesim} 118 {$setc TARGET_OS_MAC := FALSE} 119 {$setc TARGET_OS_IPHONE := TRUE} 120 {$setc TARGET_IPHONE_SIMULATOR := TRUE} 121 {$elsec} 122 {$setc TARGET_OS_MAC := TRUE} 123 {$setc TARGET_OS_IPHONE := FALSE} 124 {$setc TARGET_IPHONE_SIMULATOR := FALSE} 125 {$endc} 126 {$setc TARGET_OS_EMBEDDED := FALSE} 127 {$elifc defined __x86_64__ and __x86_64__} 128 {$setc TARGET_CPU_PPC := FALSE} 129 {$setc TARGET_CPU_PPC64 := FALSE} 130 {$setc TARGET_CPU_X86 := FALSE} 131 {$setc TARGET_CPU_X86_64 := TRUE} 132 {$setc TARGET_CPU_ARM := FALSE} 133 {$setc TARGET_CPU_ARM64 := FALSE} 134 {$ifc defined iphonesim} 135 {$setc TARGET_OS_MAC := FALSE} 136 {$setc TARGET_OS_IPHONE := TRUE} 137 {$setc TARGET_IPHONE_SIMULATOR := TRUE} 138 {$elsec} 139 {$setc TARGET_OS_MAC := TRUE} 140 {$setc TARGET_OS_IPHONE := FALSE} 141 {$setc TARGET_IPHONE_SIMULATOR := FALSE} 142 {$endc} 143 {$setc TARGET_OS_EMBEDDED := FALSE} 144 {$elifc defined __arm__ and __arm__} 145 {$setc TARGET_CPU_PPC := FALSE} 146 {$setc TARGET_CPU_PPC64 := FALSE} 147 {$setc TARGET_CPU_X86 := FALSE} 148 {$setc TARGET_CPU_X86_64 := FALSE} 149 {$setc TARGET_CPU_ARM := TRUE} 150 {$setc TARGET_CPU_ARM64 := FALSE} 151 {$setc TARGET_OS_MAC := FALSE} 152 {$setc TARGET_OS_IPHONE := TRUE} 153 {$setc TARGET_IPHONE_SIMULATOR := FALSE} 154 {$setc TARGET_OS_EMBEDDED := TRUE} 155 {$elifc defined __arm64__ and __arm64__} 156 {$setc TARGET_CPU_PPC := FALSE} 157 {$setc TARGET_CPU_PPC64 := FALSE} 158 {$setc TARGET_CPU_X86 := FALSE} 159 {$setc TARGET_CPU_X86_64 := FALSE} 160 {$setc TARGET_CPU_ARM := FALSE} 161 {$setc TARGET_CPU_ARM64 := TRUE} 162 {$ifc defined ios} 163 {$setc TARGET_OS_MAC := FALSE} 164 {$setc TARGET_OS_IPHONE := TRUE} 165 {$setc TARGET_OS_EMBEDDED := TRUE} 166 {$elsec} 167 {$setc TARGET_OS_MAC := TRUE} 168 {$setc TARGET_OS_IPHONE := FALSE} 169 {$setc TARGET_OS_EMBEDDED := FALSE} 170 {$endc} 171 {$setc TARGET_IPHONE_SIMULATOR := FALSE} 172 {$elsec} 173 {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.} 174 {$endc} 175 176 {$ifc defined __LP64__ and __LP64__ } 177 {$setc TARGET_CPU_64 := TRUE} 178 {$elsec} 179 {$setc TARGET_CPU_64 := FALSE} 180 {$endc} 181 182 {$ifc defined FPC_BIG_ENDIAN} 183 {$setc TARGET_RT_BIG_ENDIAN := TRUE} 184 {$setc TARGET_RT_LITTLE_ENDIAN := FALSE} 185 {$elifc defined FPC_LITTLE_ENDIAN} 186 {$setc TARGET_RT_BIG_ENDIAN := FALSE} 187 {$setc TARGET_RT_LITTLE_ENDIAN := TRUE} 188 {$elsec} 189 {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.} 190 {$endc} 191 {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE} 192 {$setc CALL_NOT_IN_CARBON := FALSE} 193 {$setc OLDROUTINENAMES := FALSE} 194 {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE} 195 {$setc OPAQUE_UPP_TYPES := TRUE} 196 {$setc OTCARBONAPPLICATION := TRUE} 197 {$setc OTKERNEL := FALSE} 198 {$setc PM_USE_SESSION_APIS := TRUE} 199 {$setc TARGET_API_MAC_CARBON := TRUE} 200 {$setc TARGET_API_MAC_OS8 := FALSE} 201 {$setc TARGET_API_MAC_OSX := TRUE} 202 {$setc TARGET_CARBON := TRUE} 203 {$setc TARGET_CPU_68K := FALSE} 204 {$setc TARGET_CPU_MIPS := FALSE} 205 {$setc TARGET_CPU_SPARC := FALSE} 206 {$setc TARGET_OS_UNIX := FALSE} 207 {$setc TARGET_OS_WIN32 := FALSE} 208 {$setc TARGET_RT_MAC_68881 := FALSE} 209 {$setc TARGET_RT_MAC_CFM := FALSE} 210 {$setc TARGET_RT_MAC_MACHO := TRUE} 211 {$setc TYPED_FUNCTION_POINTERS := TRUE} 212 {$setc TYPE_BOOL := FALSE} 213 {$setc TYPE_EXTENDED := FALSE} 214 {$setc TYPE_LONGLONG := TRUE} 215 uses MacTypes,ATSTypes,MacErrors,AppleEvents,AEDataModel; 216 {$endc} {not MACOSALLINCLUDE} 217 218 219 {$ifc TARGET_OS_MAC} 220 221 {$ALIGN MAC68K} 222 223 224 const 225 cAEList = FourCharCode('list'); { 0x6c697374 } 226 cApplication = FourCharCode('capp'); { 0x63617070 } 227 cArc = FourCharCode('carc'); { 0x63617263 } 228 cBoolean = FourCharCode('bool'); { 0x626f6f6c } 229 cCell = FourCharCode('ccel'); { 0x6363656c } 230 cChar = FourCharCode('cha '); { 0x63686120 } 231 cColorTable = FourCharCode('clrt'); { 0x636c7274 } 232 cColumn = FourCharCode('ccol'); { 0x63636f6c } 233 cDocument = FourCharCode('docu'); { 0x646f6375 } 234 cDrawingArea = FourCharCode('cdrw'); { 0x63647277 } 235 cEnumeration = FourCharCode('enum'); { 0x656e756d } 236 cFile = FourCharCode('file'); { 0x66696c65 } 237 cFixed = FourCharCode('fixd'); { 0x66697864 } 238 cFixedPoint = FourCharCode('fpnt'); { 0x66706e74 } 239 cFixedRectangle = FourCharCode('frct'); { 0x66726374 } 240 cGraphicLine = FourCharCode('glin'); { 0x676c696e } 241 cGraphicObject = FourCharCode('cgob'); { 0x63676f62 } 242 cGraphicShape = FourCharCode('cgsh'); { 0x63677368 } 243 cGraphicText = FourCharCode('cgtx'); { 0x63677478 } 244 cGroupedGraphic = FourCharCode('cpic'); { 0x63706963 } 245 246 const 247 cInsertionLoc = FourCharCode('insl'); { 0x696e736c } 248 cInsertionPoint = FourCharCode('cins'); { 0x63696e73 } 249 cIntlText = FourCharCode('itxt'); { 0x69747874 } 250 cIntlWritingCode = FourCharCode('intl'); { 0x696e746c } 251 cItem = FourCharCode('citm'); { 0x6369746d } 252 cLine = FourCharCode('clin'); { 0x636c696e } 253 cLongDateTime = FourCharCode('ldt '); { 0x6c647420 } 254 cLongFixed = FourCharCode('lfxd'); { 0x6c667864 } 255 cLongFixedPoint = FourCharCode('lfpt'); { 0x6c667074 } 256 cLongFixedRectangle = FourCharCode('lfrc'); { 0x6c667263 } 257 cLongInteger = FourCharCode('long'); { 0x6c6f6e67 } 258 cLongPoint = FourCharCode('lpnt'); { 0x6c706e74 } 259 cLongRectangle = FourCharCode('lrct'); { 0x6c726374 } 260 cMachineLoc = FourCharCode('mLoc'); { 0x6d4c6f63 } 261 cMenu = FourCharCode('cmnu'); { 0x636d6e75 } 262 cMenuItem = FourCharCode('cmen'); { 0x636d656e } 263 cObject = FourCharCode('cobj'); { 0x636f626a } 264 cObjectSpecifier = FourCharCode('obj '); { 0x6f626a20 } 265 cOpenableObject = FourCharCode('coob'); { 0x636f6f62 } 266 cOval = FourCharCode('covl'); { 0x636f766c } 267 268 const 269 cParagraph = FourCharCode('cpar'); { 0x63706172 } 270 cPICT = FourCharCode('PICT'); { 0x50494354 } 271 cPixel = FourCharCode('cpxl'); { 0x6370786c } 272 cPixelMap = FourCharCode('cpix'); { 0x63706978 } 273 cPolygon = FourCharCode('cpgn'); { 0x6370676e } 274 cProperty = FourCharCode('prop'); { 0x70726f70 } 275 cQDPoint = FourCharCode('QDpt'); { 0x51447074 } 276 cQDRectangle = FourCharCode('qdrt'); { 0x71647274 } 277 cRectangle = FourCharCode('crec'); { 0x63726563 } 278 cRGBColor = FourCharCode('cRGB'); { 0x63524742 } 279 cRotation = FourCharCode('trot'); { 0x74726f74 } 280 cRoundedRectangle = FourCharCode('crrc'); { 0x63727263 } 281 cRow = FourCharCode('crow'); { 0x63726f77 } 282 cSelection = FourCharCode('csel'); { 0x6373656c } 283 cShortInteger = FourCharCode('shor'); { 0x73686f72 } 284 cTable = FourCharCode('ctbl'); { 0x6374626c } 285 cText = FourCharCode('ctxt'); { 0x63747874 } 286 cTextFlow = FourCharCode('cflo'); { 0x63666c6f } 287 cTextStyles = FourCharCode('tsty'); { 0x74737479 } 288 cType = FourCharCode('type'); { 0x74797065 } 289 290 const 291 cVersion = FourCharCode('vers'); { 0x76657273 } 292 cWindow = FourCharCode('cwin'); { 0x6377696e } 293 cWord = FourCharCode('cwor'); { 0x63776f72 } 294 enumArrows = FourCharCode('arro'); { 0x6172726f } 295 enumJustification = FourCharCode('just'); { 0x6a757374 } 296 enumKeyForm = FourCharCode('kfrm'); { 0x6b66726d } 297 enumPosition = FourCharCode('posi'); { 0x706f7369 } 298 enumProtection = FourCharCode('prtn'); { 0x7072746e } 299 enumQuality = FourCharCode('qual'); { 0x7175616c } 300 enumSaveOptions = FourCharCode('savo'); { 0x7361766f } 301 enumStyle = FourCharCode('styl'); { 0x7374796c } 302 enumTransferMode = FourCharCode('tran'); { 0x7472616e } 303 kAEAbout = FourCharCode('abou'); { 0x61626f75 } 304 kAEAfter = FourCharCode('afte'); { 0x61667465 } 305 kAEAliasSelection = FourCharCode('sali'); { 0x73616c69 } 306 kAEAllCaps = FourCharCode('alcp'); { 0x616c6370 } 307 kAEArrowAtEnd = FourCharCode('aren'); { 0x6172656e } 308 kAEArrowAtStart = FourCharCode('arst'); { 0x61727374 } 309 kAEArrowBothEnds = FourCharCode('arbo'); { 0x6172626f } 310 311 const 312 kAEAsk = FourCharCode('ask '); { 0x61736b20 } 313 kAEBefore = FourCharCode('befo'); { 0x6265666f } 314 kAEBeginning = FourCharCode('bgng'); { 0x62676e67 } 315 kAEBeginsWith = FourCharCode('bgwt'); { 0x62677774 } 316 kAEBeginTransaction = FourCharCode('begi'); { 0x62656769 } 317 kAEBold = FourCharCode('bold'); { 0x626f6c64 } 318 kAECaseSensEquals = FourCharCode('cseq'); { 0x63736571 } 319 kAECentered = FourCharCode('cent'); { 0x63656e74 } 320 kAEChangeView = FourCharCode('view'); { 0x76696577 } 321 kAEClone = FourCharCode('clon'); { 0x636c6f6e } 322 kAEClose = FourCharCode('clos'); { 0x636c6f73 } 323 kAECondensed = FourCharCode('cond'); { 0x636f6e64 } 324 kAEContains = FourCharCode('cont'); { 0x636f6e74 } 325 kAECopy = FourCharCode('copy'); { 0x636f7079 } 326 kAECoreSuite = FourCharCode('core'); { 0x636f7265 } 327 kAECountElements = FourCharCode('cnte'); { 0x636e7465 } 328 kAECreateElement = FourCharCode('crel'); { 0x6372656c } 329 kAECreatePublisher = FourCharCode('cpub'); { 0x63707562 } 330 kAECut = FourCharCode('cut '); { 0x63757420 } 331 kAEDelete = FourCharCode('delo'); { 0x64656c6f } 332 333 const 334 kAEDoObjectsExist = FourCharCode('doex'); { 0x646f6578 } 335 kAEDoScript = FourCharCode('dosc'); { 0x646f7363 } 336 kAEDrag = FourCharCode('drag'); { 0x64726167 } 337 kAEDuplicateSelection = FourCharCode('sdup'); { 0x73647570 } 338 kAEEditGraphic = FourCharCode('edit'); { 0x65646974 } 339 kAEEmptyTrash = FourCharCode('empt'); { 0x656d7074 } 340 kAEEnd = FourCharCode('end '); { 0x656e6420 } 341 kAEEndsWith = FourCharCode('ends'); { 0x656e6473 } 342 kAEEndTransaction = FourCharCode('endt'); { 0x656e6474 } 343 kAEEquals = FourCharCode('= '); { 0x3d202020 } 344 kAEExpanded = FourCharCode('pexp'); { 0x70657870 } 345 kAEFast = FourCharCode('fast'); { 0x66617374 } 346 kAEFinderEvents = FourCharCode('FNDR'); { 0x464e4452 } 347 kAEFormulaProtect = FourCharCode('fpro'); { 0x6670726f } 348 kAEFullyJustified = FourCharCode('full'); { 0x66756c6c } 349 kAEGetClassInfo = FourCharCode('qobj'); { 0x716f626a } 350 kAEGetData = FourCharCode('getd'); { 0x67657464 } 351 kAEGetDataSize = FourCharCode('dsiz'); { 0x6473697a } 352 kAEGetEventInfo = FourCharCode('gtei'); { 0x67746569 } 353 kAEGetInfoSelection = FourCharCode('sinf'); { 0x73696e66 } 354 355 const 356 kAEGetPrivilegeSelection = FourCharCode('sprv'); { 0x73707276 } 357 kAEGetSuiteInfo = FourCharCode('gtsi'); { 0x67747369 } 358 kAEGreaterThan = FourCharCode('> '); { 0x3e202020 } 359 kAEGreaterThanEquals = FourCharCode('>= '); { 0x3e3d2020 } 360 kAEGrow = FourCharCode('grow'); { 0x67726f77 } 361 kAEHidden = FourCharCode('hidn'); { 0x6869646e } 362 kAEHiQuality = FourCharCode('hiqu'); { 0x68697175 } 363 kAEImageGraphic = FourCharCode('imgr'); { 0x696d6772 } 364 kAEIsUniform = FourCharCode('isun'); { 0x6973756e } 365 kAEItalic = FourCharCode('ital'); { 0x6974616c } 366 kAELeftJustified = FourCharCode('left'); { 0x6c656674 } 367 kAELessThan = FourCharCode('< '); { 0x3c202020 } 368 kAELessThanEquals = FourCharCode('<= '); { 0x3c3d2020 } 369 kAELowercase = FourCharCode('lowc'); { 0x6c6f7763 } 370 kAEMakeObjectsVisible = FourCharCode('mvis'); { 0x6d766973 } 371 kAEMiscStandards = FourCharCode('misc'); { 0x6d697363 } 372 kAEModifiable = FourCharCode('modf'); { 0x6d6f6466 } 373 kAEMove = FourCharCode('move'); { 0x6d6f7665 } 374 kAENo = FourCharCode('no '); { 0x6e6f2020 } 375 kAENoArrow = FourCharCode('arno'); { 0x61726e6f } 376 377 const 378 kAENonmodifiable = FourCharCode('nmod'); { 0x6e6d6f64 } 379 kAEOpen = FourCharCode('odoc'); { 0x6f646f63 } 380 kAEOpenSelection = FourCharCode('sope'); { 0x736f7065 } 381 kAEOutline = FourCharCode('outl'); { 0x6f75746c } 382 kAEPageSetup = FourCharCode('pgsu'); { 0x70677375 } 383 kAEPaste = FourCharCode('past'); { 0x70617374 } 384 kAEPlain = FourCharCode('plan'); { 0x706c616e } 385 kAEPrint = FourCharCode('pdoc'); { 0x70646f63 } 386 kAEPrintSelection = FourCharCode('spri'); { 0x73707269 } 387 kAEPrintWindow = FourCharCode('pwin'); { 0x7077696e } 388 kAEPutAwaySelection = FourCharCode('sput'); { 0x73707574 } 389 kAEQDAddOver = FourCharCode('addo'); { 0x6164646f } 390 kAEQDAddPin = FourCharCode('addp'); { 0x61646470 } 391 kAEQDAdMax = FourCharCode('admx'); { 0x61646d78 } 392 kAEQDAdMin = FourCharCode('admn'); { 0x61646d6e } 393 kAEQDBic = FourCharCode('bic '); { 0x62696320 } 394 kAEQDBlend = FourCharCode('blnd'); { 0x626c6e64 } 395 kAEQDCopy = FourCharCode('cpy '); { 0x63707920 } 396 kAEQDNotBic = FourCharCode('nbic'); { 0x6e626963 } 397 kAEQDNotCopy = FourCharCode('ncpy'); { 0x6e637079 } 398 399 const 400 kAEQDNotOr = FourCharCode('ntor'); { 0x6e746f72 } 401 kAEQDNotXor = FourCharCode('nxor'); { 0x6e786f72 } 402 kAEQDOr = FourCharCode('or '); { 0x6f722020 } 403 kAEQDSubOver = FourCharCode('subo'); { 0x7375626f } 404 kAEQDSubPin = FourCharCode('subp'); { 0x73756270 } 405 kAEQDSupplementalSuite = FourCharCode('qdsp'); { 0x71647370 } 406 kAEQDXor = FourCharCode('xor '); { 0x786f7220 } 407 kAEQuickdrawSuite = FourCharCode('qdrw'); { 0x71647277 } 408 kAEQuitAll = FourCharCode('quia'); { 0x71756961 } 409 kAERedo = FourCharCode('redo'); { 0x7265646f } 410 kAERegular = FourCharCode('regl'); { 0x7265676c } 411 kAEReopenApplication = FourCharCode('rapp'); { 0x72617070 } 412 kAEReplace = FourCharCode('rplc'); { 0x72706c63 } 413 kAERequiredSuite = FourCharCode('reqd'); { 0x72657164 } 414 kAERestart = FourCharCode('rest'); { 0x72657374 } 415 kAERevealSelection = FourCharCode('srev'); { 0x73726576 } 416 kAERevert = FourCharCode('rvrt'); { 0x72767274 } 417 kAERightJustified = FourCharCode('rght'); { 0x72676874 } 418 kAESave = FourCharCode('save'); { 0x73617665 } 419 kAESelect = FourCharCode('slct'); { 0x736c6374 } 420 kAESetData = FourCharCode('setd'); { 0x73657464 } 421 422 const 423 kAESetPosition = FourCharCode('posn'); { 0x706f736e } 424 kAEShadow = FourCharCode('shad'); { 0x73686164 } 425 kAEShowClipboard = FourCharCode('shcl'); { 0x7368636c } 426 kAEShutDown = FourCharCode('shut'); { 0x73687574 } 427 kAESleep = FourCharCode('slep'); { 0x736c6570 } 428 kAESmallCaps = FourCharCode('smcp'); { 0x736d6370 } 429 kAESpecialClassProperties = FourCharCode('c@#!'); { 0x63402321 } 430 kAEStrikethrough = FourCharCode('strk'); { 0x7374726b } 431 kAESubscript = FourCharCode('sbsc'); { 0x73627363 } 432 kAESuperscript = FourCharCode('spsc'); { 0x73707363 } 433 kAETableSuite = FourCharCode('tbls'); { 0x74626c73 } 434 kAETextSuite = FourCharCode('TEXT'); { 0x54455854 } 435 kAETransactionTerminated = FourCharCode('ttrm'); { 0x7474726d } 436 kAEUnderline = FourCharCode('undl'); { 0x756e646c } 437 kAEUndo = FourCharCode('undo'); { 0x756e646f } 438 kAEWholeWordEquals = FourCharCode('wweq'); { 0x77776571 } 439 kAEYes = FourCharCode('yes '); { 0x79657320 } 440 kAEZoom = FourCharCode('zoom'); { 0x7a6f6f6d } 441 442 { events that can be sent to the "system" process (eg, loginwindow) on OS X 10.2 or later } 443 const 444 kAELogOut = FourCharCode('logo'); 445 kAEReallyLogOut = FourCharCode('rlgo'); 446 kAEShowRestartDialog = FourCharCode('rrst'); 447 kAEShowShutdownDialog = FourCharCode('rsdn'); 448 449 { EventRecord Classes and EventIDs } 450 const 451 kAEMouseClass = FourCharCode('mous'); 452 kAEDown = FourCharCode('down'); 453 kAEUp = FourCharCode('up '); 454 kAEMoved = FourCharCode('move'); 455 kAEStoppedMoving = FourCharCode('stop'); 456 kAEWindowClass = FourCharCode('wind'); 457 kAEUpdate = FourCharCode('updt'); 458 kAEActivate = FourCharCode('actv'); 459 kAEDeactivate = FourCharCode('dact'); 460 kAECommandClass = FourCharCode('cmnd'); { Modern Command Event Class } 461 kAEKeyClass = FourCharCode('keyc'); 462 kAERawKey = FourCharCode('rkey'); { Modern Raw Key Event } 463 kAEVirtualKey = FourCharCode('keyc'); { Modern Virtual Key Event } 464 kAENavigationKey = FourCharCode('nave'); { Modern Navigation Key Event } 465 kAEAutoDown = FourCharCode('auto'); 466 kAEApplicationClass = FourCharCode('appl'); 467 kAESuspend = FourCharCode('susp'); 468 kAEResume = FourCharCode('rsme'); 469 kAEDiskEvent = FourCharCode('disk'); 470 kAENullEvent = FourCharCode('null'); 471 kAEWakeUpEvent = FourCharCode('wake'); 472 kAEScrapEvent = FourCharCode('scrp'); 473 kAEHighLevel = FourCharCode('high'); 474 475 const 476 keyAEAngle = FourCharCode('kang'); { 0x6b616e67 } 477 keyAEArcAngle = FourCharCode('parc'); { 0x70617263 } 478 479 const 480 keyAEBaseAddr = FourCharCode('badd'); { 0x62616464 } 481 keyAEBestType = FourCharCode('pbst'); { 0x70627374 } 482 keyAEBgndColor = FourCharCode('kbcl'); { 0x6b62636c } 483 keyAEBgndPattern = FourCharCode('kbpt'); { 0x6b627074 } 484 keyAEBounds = FourCharCode('pbnd'); { 0x70626e64 } 485 keyAECellList = FourCharCode('kclt'); { 0x6b636c74 } 486 keyAEClassID = FourCharCode('clID'); { 0x636c4944 } 487 keyAEColor = FourCharCode('colr'); { 0x636f6c72 } 488 keyAEColorTable = FourCharCode('cltb'); { 0x636c7462 } 489 keyAECurveHeight = FourCharCode('kchd'); { 0x6b636864 } 490 keyAECurveWidth = FourCharCode('kcwd'); { 0x6b637764 } 491 keyAEDashStyle = FourCharCode('pdst'); { 0x70647374 } 492 keyAEData = FourCharCode('data'); { 0x64617461 } 493 keyAEDefaultType = FourCharCode('deft'); { 0x64656674 } 494 keyAEDefinitionRect = FourCharCode('pdrt'); { 0x70647274 } 495 keyAEDescType = FourCharCode('dstp'); { 0x64737470 } 496 keyAEDestination = FourCharCode('dest'); { 0x64657374 } 497 keyAEDoAntiAlias = FourCharCode('anta'); { 0x616e7461 } 498 keyAEDoDithered = FourCharCode('gdit'); { 0x67646974 } 499 keyAEDoRotate = FourCharCode('kdrt'); { 0x6b647274 } 500 501 const 502 keyAEDoScale = FourCharCode('ksca'); { 0x6b736361 } 503 keyAEDoTranslate = FourCharCode('ktra'); { 0x6b747261 } 504 keyAEEditionFileLoc = FourCharCode('eloc'); { 0x656c6f63 } 505 keyAEElements = FourCharCode('elms'); { 0x656c6d73 } 506 keyAEEndPoint = FourCharCode('pend'); { 0x70656e64 } 507 keyAEEventClass = FourCharCode('evcl'); { 0x6576636c } 508 keyAEEventID = FourCharCode('evti'); { 0x65767469 } 509 keyAEFile = FourCharCode('kfil'); { 0x6b66696c } 510 keyAEFileType = FourCharCode('fltp'); { 0x666c7470 } 511 keyAEFillColor = FourCharCode('flcl'); { 0x666c636c } 512 keyAEFillPattern = FourCharCode('flpt'); { 0x666c7074 } 513 keyAEFlipHorizontal = FourCharCode('kfho'); { 0x6b66686f } 514 keyAEFlipVertical = FourCharCode('kfvt'); { 0x6b667674 } 515 keyAEFont = FourCharCode('font'); { 0x666f6e74 } 516 keyAEFormula = FourCharCode('pfor'); { 0x70666f72 } 517 keyAEGraphicObjects = FourCharCode('gobs'); { 0x676f6273 } 518 keyAEID = FourCharCode('ID '); { 0x49442020 } 519 keyAEImageQuality = FourCharCode('gqua'); { 0x67717561 } 520 keyAEInsertHere = FourCharCode('insh'); { 0x696e7368 } 521 keyAEKeyForms = FourCharCode('keyf'); { 0x6b657966 } 522 523 const 524 keyAEKeyword = FourCharCode('kywd'); { 0x6b797764 } 525 keyAELevel = FourCharCode('levl'); { 0x6c65766c } 526 keyAELineArrow = FourCharCode('arro'); { 0x6172726f } 527 keyAEName = FourCharCode('pnam'); { 0x706e616d } 528 keyAENewElementLoc = FourCharCode('pnel'); { 0x706e656c } 529 keyAEObject = FourCharCode('kobj'); { 0x6b6f626a } 530 keyAEObjectClass = FourCharCode('kocl'); { 0x6b6f636c } 531 keyAEOffStyles = FourCharCode('ofst'); { 0x6f667374 } 532 keyAEOnStyles = FourCharCode('onst'); { 0x6f6e7374 } 533 keyAEParameters = FourCharCode('prms'); { 0x70726d73 } 534 keyAEParamFlags = FourCharCode('pmfg'); { 0x706d6667 } 535 keyAEPenColor = FourCharCode('ppcl'); { 0x7070636c } 536 keyAEPenPattern = FourCharCode('pppa'); { 0x70707061 } 537 keyAEPenWidth = FourCharCode('ppwd'); { 0x70707764 } 538 keyAEPixelDepth = FourCharCode('pdpt'); { 0x70647074 } 539 keyAEPixMapMinus = FourCharCode('kpmm'); { 0x6b706d6d } 540 keyAEPMTable = FourCharCode('kpmt'); { 0x6b706d74 } 541 keyAEPointList = FourCharCode('ptlt'); { 0x70746c74 } 542 keyAEPointSize = FourCharCode('ptsz'); { 0x7074737a } 543 keyAEPosition = FourCharCode('kpos'); { 0x6b706f73 } 544 545 const 546 keyAEPropData = FourCharCode('prdt'); { 0x70726474 } 547 keyAEProperties = FourCharCode('qpro'); { 0x7170726f } 548 keyAEProperty = FourCharCode('kprp'); { 0x6b707270 } 549 keyAEPropFlags = FourCharCode('prfg'); { 0x70726667 } 550 keyAEPropID = FourCharCode('prop'); { 0x70726f70 } 551 keyAEProtection = FourCharCode('ppro'); { 0x7070726f } 552 keyAERenderAs = FourCharCode('kren'); { 0x6b72656e } 553 keyAERequestedType = FourCharCode('rtyp'); { 0x72747970 } 554 keyAEResult = FourCharCode('----'); { 0x2d2d2d2d } 555 keyAEResultInfo = FourCharCode('rsin'); { 0x7273696e } 556 keyAERotation = FourCharCode('prot'); { 0x70726f74 } 557 keyAERotPoint = FourCharCode('krtp'); { 0x6b727470 } 558 keyAERowList = FourCharCode('krls'); { 0x6b726c73 } 559 keyAESaveOptions = FourCharCode('savo'); { 0x7361766f } 560 keyAEScale = FourCharCode('pscl'); { 0x7073636c } 561 keyAEScriptTag = FourCharCode('psct'); { 0x70736374 } 562 keyAESearchText = FourCharCode('stxt'); { 0x73747874 } 563 keyAEShowWhere = FourCharCode('show'); { 0x73686f77 } 564 keyAEStartAngle = FourCharCode('pang'); { 0x70616e67 } 565 keyAEStartPoint = FourCharCode('pstp'); { 0x70737470 } 566 keyAEStyles = FourCharCode('ksty'); { 0x6b737479 } 567 568 const 569 keyAESuiteID = FourCharCode('suit'); { 0x73756974 } 570 keyAEText = FourCharCode('ktxt'); { 0x6b747874 } 571 keyAETextColor = FourCharCode('ptxc'); { 0x70747863 } 572 keyAETextFont = FourCharCode('ptxf'); { 0x70747866 } 573 keyAETextPointSize = FourCharCode('ptps'); { 0x70747073 } 574 keyAETextStyles = FourCharCode('txst'); { 0x74787374 } 575 keyAETextLineHeight = FourCharCode('ktlh'); { type ShortInteger } 576 keyAETextLineAscent = FourCharCode('ktas'); { type ShortInteger } 577 keyAETheText = FourCharCode('thtx'); { 0x74687478 } 578 keyAETransferMode = FourCharCode('pptm'); { 0x7070746d } 579 keyAETranslation = FourCharCode('ptrs'); { 0x70747273 } 580 keyAETryAsStructGraf = FourCharCode('toog'); { 0x746f6f67 } 581 keyAEUniformStyles = FourCharCode('ustl'); { 0x7573746c } 582 keyAEUpdateOn = FourCharCode('pupd'); { 0x70757064 } 583 keyAEUserTerm = FourCharCode('utrm'); { 0x7574726d } 584 keyAEWindow = FourCharCode('wndw'); { 0x776e6477 } 585 keyAEWritingCode = FourCharCode('wrcd'); { 0x77726364 } 586 587 const 588 keyMiscellaneous = FourCharCode('fmsc'); { 0x666d7363 } 589 keySelection = FourCharCode('fsel'); { 0x6673656c } 590 keyWindow = FourCharCode('kwnd'); { 0x6b776e64 } 591 { EventRecord keys } 592 keyWhen = FourCharCode('when'); 593 keyWhere = FourCharCode('wher'); 594 keyModifiers = FourCharCode('mods'); 595 keyKey = FourCharCode('key '); 596 keyKeyCode = FourCharCode('code'); 597 keyKeyboard = FourCharCode('keyb'); 598 keyDriveNumber = FourCharCode('drv#'); 599 keyErrorCode = FourCharCode('err#'); 600 keyHighLevelClass = FourCharCode('hcls'); 601 keyHighLevelID = FourCharCode('hid '); 602 603 const 604 pArcAngle = FourCharCode('parc'); { 0x70617263 } 605 pBackgroundColor = FourCharCode('pbcl'); { 0x7062636c } 606 pBackgroundPattern = FourCharCode('pbpt'); { 0x70627074 } 607 pBestType = FourCharCode('pbst'); { 0x70627374 } 608 pBounds = FourCharCode('pbnd'); { 0x70626e64 } 609 pClass = FourCharCode('pcls'); { 0x70636c73 } 610 pClipboard = FourCharCode('pcli'); { 0x70636c69 } 611 pColor = FourCharCode('colr'); { 0x636f6c72 } 612 pColorTable = FourCharCode('cltb'); { 0x636c7462 } 613 pContents = FourCharCode('pcnt'); { 0x70636e74 } 614 pCornerCurveHeight = FourCharCode('pchd'); { 0x70636864 } 615 pCornerCurveWidth = FourCharCode('pcwd'); { 0x70637764 } 616 pDashStyle = FourCharCode('pdst'); { 0x70647374 } 617 pDefaultType = FourCharCode('deft'); { 0x64656674 } 618 pDefinitionRect = FourCharCode('pdrt'); { 0x70647274 } 619 pEnabled = FourCharCode('enbl'); { 0x656e626c } 620 pEndPoint = FourCharCode('pend'); { 0x70656e64 } 621 pFillColor = FourCharCode('flcl'); { 0x666c636c } 622 pFillPattern = FourCharCode('flpt'); { 0x666c7074 } 623 pFont = FourCharCode('font'); { 0x666f6e74 } 624 625 const 626 pFormula = FourCharCode('pfor'); { 0x70666f72 } 627 pGraphicObjects = FourCharCode('gobs'); { 0x676f6273 } 628 pHasCloseBox = FourCharCode('hclb'); { 0x68636c62 } 629 pHasTitleBar = FourCharCode('ptit'); { 0x70746974 } 630 pID = FourCharCode('ID '); { 0x49442020 } 631 pIndex = FourCharCode('pidx'); { 0x70696478 } 632 pInsertionLoc = FourCharCode('pins'); { 0x70696e73 } 633 pIsFloating = FourCharCode('isfl'); { 0x6973666c } 634 pIsFrontProcess = FourCharCode('pisf'); { 0x70697366 } 635 pIsModal = FourCharCode('pmod'); { 0x706d6f64 } 636 pIsModified = FourCharCode('imod'); { 0x696d6f64 } 637 pIsResizable = FourCharCode('prsz'); { 0x7072737a } 638 pIsStationeryPad = FourCharCode('pspd'); { 0x70737064 } 639 pIsZoomable = FourCharCode('iszm'); { 0x69737a6d } 640 pIsZoomed = FourCharCode('pzum'); { 0x707a756d } 641 pItemNumber = FourCharCode('itmn'); { 0x69746d6e } 642 pJustification = FourCharCode('pjst'); { 0x706a7374 } 643 pLineArrow = FourCharCode('arro'); { 0x6172726f } 644 pMenuID = FourCharCode('mnid'); { 0x6d6e6964 } 645 pName = FourCharCode('pnam'); { 0x706e616d } 646 647 const 648 pNewElementLoc = FourCharCode('pnel'); { 0x706e656c } 649 pPenColor = FourCharCode('ppcl'); { 0x7070636c } 650 pPenPattern = FourCharCode('pppa'); { 0x70707061 } 651 pPenWidth = FourCharCode('ppwd'); { 0x70707764 } 652 pPixelDepth = FourCharCode('pdpt'); { 0x70647074 } 653 pPointList = FourCharCode('ptlt'); { 0x70746c74 } 654 pPointSize = FourCharCode('ptsz'); { 0x7074737a } 655 pProtection = FourCharCode('ppro'); { 0x7070726f } 656 pRotation = FourCharCode('prot'); { 0x70726f74 } 657 pScale = FourCharCode('pscl'); { 0x7073636c } 658 pScript = FourCharCode('scpt'); { 0x73637074 } 659 pScriptTag = FourCharCode('psct'); { 0x70736374 } 660 pSelected = FourCharCode('selc'); { 0x73656c63 } 661 pSelection = FourCharCode('sele'); { 0x73656c65 } 662 pStartAngle = FourCharCode('pang'); { 0x70616e67 } 663 pStartPoint = FourCharCode('pstp'); { 0x70737470 } 664 pTextColor = FourCharCode('ptxc'); { 0x70747863 } 665 pTextFont = FourCharCode('ptxf'); { 0x70747866 } 666 pTextItemDelimiters = FourCharCode('txdl'); { 0x7478646c } 667 pTextPointSize = FourCharCode('ptps'); { 0x70747073 } 668 669 const 670 pTextStyles = FourCharCode('txst'); { 0x74787374 } 671 pTransferMode = FourCharCode('pptm'); { 0x7070746d } 672 pTranslation = FourCharCode('ptrs'); { 0x70747273 } 673 pUniformStyles = FourCharCode('ustl'); { 0x7573746c } 674 pUpdateOn = FourCharCode('pupd'); { 0x70757064 } 675 pUserSelection = FourCharCode('pusl'); { 0x7075736c } 676 pVersion = FourCharCode('vers'); { 0x76657273 } 677 pVisible = FourCharCode('pvis'); { 0x70766973 } 678 679 const 680 typeAEText = FourCharCode('tTXT'); { 0x74545854 } 681 typeArc = FourCharCode('carc'); { 0x63617263 } 682 typeBest = FourCharCode('best'); { 0x62657374 } 683 typeCell = FourCharCode('ccel'); { 0x6363656c } 684 typeClassInfo = FourCharCode('gcli'); { 0x67636c69 } 685 typeColorTable = FourCharCode('clrt'); { 0x636c7274 } 686 typeColumn = FourCharCode('ccol'); { 0x63636f6c } 687 typeDashStyle = FourCharCode('tdas'); { 0x74646173 } 688 typeData = FourCharCode('tdta'); { 0x74647461 } 689 typeDrawingArea = FourCharCode('cdrw'); { 0x63647277 } 690 typeElemInfo = FourCharCode('elin'); { 0x656c696e } 691 typeEnumeration = FourCharCode('enum'); { 0x656e756d } 692 typeEPS = FourCharCode('EPS '); { 0x45505320 } 693 typeEventInfo = FourCharCode('evin'); { 0x6576696e } 694 695 const 696 typeFinderWindow = FourCharCode('fwin'); { 0x6677696e } 697 typeFixedPoint = FourCharCode('fpnt'); { 0x66706e74 } 698 typeFixedRectangle = FourCharCode('frct'); { 0x66726374 } 699 typeGraphicLine = FourCharCode('glin'); { 0x676c696e } 700 typeGraphicText = FourCharCode('cgtx'); { 0x63677478 } 701 typeGroupedGraphic = FourCharCode('cpic'); { 0x63706963 } 702 typeInsertionLoc = FourCharCode('insl'); { 0x696e736c } 703 typeIntlText = FourCharCode('itxt'); { 0x69747874 } 704 typeIntlWritingCode = FourCharCode('intl'); { 0x696e746c } 705 typeLongDateTime = FourCharCode('ldt '); { 0x6c647420 } 706 typeCFAbsoluteTime = FourCharCode('cfat'); 707 typeISO8601DateTime = FourCharCode('isot'); { 0x69736f74 data is ascii text of an ISO8601 date } 708 typeLongFixed = FourCharCode('lfxd'); { 0x6c667864 } 709 typeLongFixedPoint = FourCharCode('lfpt'); { 0x6c667074 } 710 typeLongFixedRectangle = FourCharCode('lfrc'); { 0x6c667263 } 711 typeLongPoint = FourCharCode('lpnt'); { 0x6c706e74 } 712 typeLongRectangle = FourCharCode('lrct'); { 0x6c726374 } 713 typeMachineLoc = FourCharCode('mLoc'); { 0x6d4c6f63 } 714 typeOval = FourCharCode('covl'); { 0x636f766c } 715 typeParamInfo = FourCharCode('pmin'); { 0x706d696e } 716 typePict = FourCharCode('PICT'); { 0x50494354 } 717 718 const 719 typePixelMap = FourCharCode('cpix'); { 0x63706978 } 720 typePixMapMinus = FourCharCode('tpmm'); { 0x74706d6d } 721 typePolygon = FourCharCode('cpgn'); { 0x6370676e } 722 typePropInfo = FourCharCode('pinf'); { 0x70696e66 } 723 typePtr = FourCharCode('ptr '); { 0x70747220 } 724 typeQDPoint = FourCharCode('QDpt'); { 0x51447074 } 725 typeQDRegion = FourCharCode('Qrgn'); { 0x51447074 (data is actual region data, including rectangle and size, _not_ region handle or ptr)} 726 typeRectangle = FourCharCode('crec'); { 0x63726563 } 727 typeRGB16 = FourCharCode('tr16'); { 0x74723136 } 728 typeRGB96 = FourCharCode('tr96'); { 0x74723936 } 729 typeRGBColor = FourCharCode('cRGB'); { 0x63524742 } 730 typeRotation = FourCharCode('trot'); { 0x74726f74 } 731 typeRoundedRectangle = FourCharCode('crrc'); { 0x63727263 } 732 typeRow = FourCharCode('crow'); { 0x63726f77 } 733 typeScrapStyles = FourCharCode('styl'); { 0x7374796c } 734 typeScript = FourCharCode('scpt'); { 0x73637074 } 735 typeStyledText = FourCharCode('STXT'); { 0x53545854 } 736 typeSuiteInfo = FourCharCode('suin'); { 0x7375696e } 737 typeTable = FourCharCode('ctbl'); { 0x6374626c } 738 typeTextStyles = FourCharCode('tsty'); { 0x74737479 } 739 740 const 741 typeTIFF = FourCharCode('TIFF'); { 0x54494646 } 742 typeJPEG = FourCharCode('JPEG'); 743 typeGIF = FourCharCode('GIFf'); 744 typeVersion = FourCharCode('vers'); { 0x76657273 } 745 746 const 747 kAEMenuClass = FourCharCode('menu'); 748 kAEMenuSelect = FourCharCode('mhit'); 749 kAEMouseDown = FourCharCode('mdwn'); 750 kAEMouseDownInBack = FourCharCode('mdbk'); 751 kAEKeyDown = FourCharCode('kdwn'); 752 kAEResized = FourCharCode('rsiz'); 753 kAEPromise = FourCharCode('prom'); 754 755 const 756 keyMenuID = FourCharCode('mid '); 757 keyMenuItem = FourCharCode('mitm'); 758 keyCloseAllWindows = FourCharCode('caw '); 759 keyOriginalBounds = FourCharCode('obnd'); 760 keyNewBounds = FourCharCode('nbnd'); 761 keyLocalWhere = FourCharCode('lwhr'); 762 763 const 764 typeHIMenu = FourCharCode('mobj'); 765 typeHIWindow = FourCharCode('wobj'); 766 767 const 768 kAEQuitPreserveState = FourCharCode('stat'); { in a kAEQuitApplication event, this optional parameter hints the application as to whether it should write out } 769 { persistent state which may be restored on the next launch. The possible values are kAENo ( the default ), or kAEYes } 770 kAEQuitReason = FourCharCode('why?'); { in a kAEQuitApplication event, this parameter if present is the reason the quit is being sent. The possible values are kAEQuitAll, kAEShutDown, kAERestart, kAEReallyLogOut } 771 772 const 773 kBySmallIcon = 0; 774 kByIconView = 1; 775 kByNameView = 2; 776 kByDateView = 3; 777 kBySizeView = 4; 778 kByKindView = 5; 779 kByCommentView = 6; 780 kByLabelView = 7; 781 kByVersionView = 8; 782 783 const 784 kAEInfo = 11; 785 kAEMain = 0; 786 kAESharing = 13; 787 788 const 789 kAEZoomIn = 7; 790 kAEZoomOut = 8; 791 792 const 793 kTextServiceClass = FourCharCode('tsvc'); 794 kUpdateActiveInputArea = FourCharCode('updt'); { update the active input area } 795 kShowHideInputWindow = FourCharCode('shiw'); { show or hide the input window } 796 kPos2Offset = FourCharCode('p2st'); { converting global coordinates to char position } 797 kOffset2Pos = FourCharCode('st2p'); { converting char position to global coordinates } 798 kUnicodeNotFromInputMethod = FourCharCode('unim'); { Unicode text when event not handled by Input Method or no Input Method } 799 kGetSelectedText = FourCharCode('gtxt'); { Get text for current selection } 800 keyAETSMDocumentRefcon = FourCharCode('refc'); { TSM document refcon, typeLongInteger } 801 keyAEServerInstance = FourCharCode('srvi'); { component instance } 802 keyAETheData = FourCharCode('kdat'); { typeText } 803 keyAEFixLength = FourCharCode('fixl'); { fix len } 804 keyAEUpdateRange = FourCharCode('udng'); { typeTextRangeArray } 805 keyAECurrentPoint = FourCharCode('cpos'); { current point } 806 keyAEBufferSize = FourCharCode('buff'); { buffer size to get the text } 807 keyAEMoveView = FourCharCode('mvvw'); { move view flag } 808 keyAENextBody = FourCharCode('nxbd'); { next or previous body } 809 keyAETSMScriptTag = FourCharCode('sclg'); 810 keyAETSMTextFont = FourCharCode('ktxf'); { FMFontFamily or FOND ID } 811 keyAETSMTextFMFont = FourCharCode('ktxm'); { FMFont } 812 keyAETSMTextPointSize = FourCharCode('ktps'); 813 keyAETSMEventRecord = FourCharCode('tevt'); { Low level Event Record, typeLowLevelEventRecord } 814 keyAETSMEventRef = FourCharCode('tevr'); { Carbon EventRef, typeEventRef } 815 keyAETextServiceEncoding = FourCharCode('tsen'); { Text Service encoding, mac or Unicode in UpdateActiveInputArea or GetSelectedText events. } 816 keyAETextServiceMacEncoding = FourCharCode('tmen'); { Target mac encoding for TSM conversion of text from Unicode text service. } 817 keyAETSMGlyphInfoArray = FourCharCode('tgia'); { typeGlyphInfoArray } 818 typeTextRange = FourCharCode('txrn'); { TextRange } 819 typeComponentInstance = FourCharCode('cmpi'); { server instance } 820 typeOffsetArray = FourCharCode('ofay'); { offset array } 821 typeTextRangeArray = FourCharCode('tray'); 822 typeLowLevelEventRecord = FourCharCode('evtr'); { Low Level Event Record } 823 typeGlyphInfoArray = FourCharCode('glia'); { Glyph/FMFont info array for sub ranges of Unicode text. See GlyphInfoArray in TextServices.h } 824 typeEventRef = FourCharCode('evrf'); { Carbon EventRef } 825 typeText = typeChar; { Plain text } 826 827 828 { Desc type constants } 829 const 830 kTSMOutsideOfBody = 1; 831 kTSMInsideOfBody = 2; 832 kTSMInsideOfActiveInputArea = 3; 833 834 const 835 kNextBody = 1; 836 kPreviousBody = 2; 837 838 type 839 TextRange = record 840 fStart: SInt32; 841 fEnd: SInt32; 842 fHiliteStyle: SInt16; 843 end; 844 TextRangePtr = ^TextRange; 845 type 846 TextRangeHandle = ^TextRangePtr; 847 TextRangeArray = record 848 fNumOfRanges: SInt16; { specify the size of the fRange array } 849 fRange: array [0..0] of TextRange; { when fNumOfRanges > 1, the size of this array has to be calculated } 850 end; 851 TextRangeArrayPtr = ^TextRangeArray; 852 type 853 TextRangeArrayHandle = ^TextRangeArrayPtr; 854 OffsetArray = record 855 fNumOfOffsets: SInt16; { specify the size of the fOffset array } 856 fOffset: array [0..0] of SInt32; { when fNumOfOffsets > 1, the size of this array has to be calculated } 857 end; 858 OffsetArrayPtr = ^OffsetArray; 859 type 860 OffsetArrayHandle = ^OffsetArrayPtr; 861 WritingCode = record 862 theScriptCode: ScriptCode; 863 theLangCode: LangCode; 864 end; 865 WritingCodePtr = ^WritingCode; 866 type 867 IntlText = record 868 theScriptCode: ScriptCode; 869 theLangCode: LangCode; 870 theText: SInt8; { variable length data } 871 end; 872 IntlTextPtr = ^IntlText; 873 874 { Hilite styles } 875 const 876 kTSMHiliteCaretPosition = 1; { specify caret position } 877 kTSMHiliteRawText = 2; { specify range of raw text } 878 kTSMHiliteSelectedRawText = 3; { specify range of selected raw text } 879 kTSMHiliteConvertedText = 4; { specify range of converted text } 880 kTSMHiliteSelectedConvertedText = 5; { specify range of selected converted text } 881 kTSMHiliteBlockFillText = 6; { Block Fill hilite style } 882 kTSMHiliteOutlineText = 7; { Outline hilite style } 883 kTSMHiliteSelectedText = 8; { Selected hilite style } 884 kTSMHiliteNoHilite = 9; { specify range of non-hilited text } 885 886 887 {$ifc OLDROUTINENAMES} 888 { Hilite styles } 889 const 890 kCaretPosition = kTSMHiliteCaretPosition; 891 kRawText = kTSMHiliteRawText; 892 kSelectedRawText = kTSMHiliteSelectedRawText; 893 kConvertedText = kTSMHiliteConvertedText; 894 kSelectedConvertedText = kTSMHiliteSelectedConvertedText; 895 kBlockFillText = kTSMHiliteBlockFillText; 896 kOutlineText = kTSMHiliteOutlineText; 897 kSelectedText = kTSMHiliteSelectedText; 898 899 {$endc} {OLDROUTINENAMES} 900 901 const 902 keyAEHiliteRange = FourCharCode('hrng'); { typeTextRangeArray for System 7, typeHiliteRangeArray for System 8 } 903 keyAEPinRange = FourCharCode('pnrg'); { typeTextRange for System 7, typeTextRegionRange for System 8 } 904 keyAEClauseOffsets = FourCharCode('clau'); { typeOffsetArray for System 7, typeClauseOffsetArray for System 8 } 905 keyAEOffset = FourCharCode('ofst'); { typeLongInteger for System 7, typeByteOffset for System 8 } 906 keyAEPoint = FourCharCode('gpos'); { typePoint for System 7, typeQDPoint for System 8 } 907 keyAELeftSide = FourCharCode('klef'); { typeBoolean } 908 keyAERegionClass = FourCharCode('rgnc'); { typeShortInteger for System 7, typeRegionClass for System 8 } 909 keyAEDragging = FourCharCode('bool'); { typeBoolean } 910 911 912 {$ifc OLDROUTINENAMES} 913 const 914 keyAELeadingEdge = keyAELeftSide; 915 916 {$endc} {OLDROUTINENAMES} 917 918 const 919 { AppleScript 1.3: Unit types } 920 typeMeters = FourCharCode('metr'); { Base Unit } 921 typeInches = FourCharCode('inch'); 922 typeFeet = FourCharCode('feet'); 923 typeYards = FourCharCode('yard'); 924 typeMiles = FourCharCode('mile'); 925 typeKilometers = FourCharCode('kmtr'); 926 typeCentimeters = FourCharCode('cmtr'); 927 typeSquareMeters = FourCharCode('sqrm'); { Base Unit } 928 typeSquareFeet = FourCharCode('sqft'); 929 typeSquareYards = FourCharCode('sqyd'); 930 typeSquareMiles = FourCharCode('sqmi'); 931 typeSquareKilometers = FourCharCode('sqkm'); 932 typeLiters = FourCharCode('litr'); { Base Unit } 933 typeQuarts = FourCharCode('qrts'); 934 typeGallons = FourCharCode('galn'); 935 typeCubicMeters = FourCharCode('cmet'); { Base Unit } 936 typeCubicFeet = FourCharCode('cfet'); 937 typeCubicInches = FourCharCode('cuin'); 938 typeCubicCentimeter = FourCharCode('ccmt'); 939 typeCubicYards = FourCharCode('cyrd'); 940 typeKilograms = FourCharCode('kgrm'); { Base Unit } 941 typeGrams = FourCharCode('gram'); 942 typeOunces = FourCharCode('ozs '); 943 typePounds = FourCharCode('lbs '); 944 typeDegreesC = FourCharCode('degc'); { Base Unit } 945 typeDegreesF = FourCharCode('degf'); 946 typeDegreesK = FourCharCode('degk'); 947 948 const 949 { AppleScript 1.3: Folder Actions } 950 kFAServerApp = FourCharCode('ssrv'); { Creator code for Folder Actions Server} 951 kDoFolderActionEvent = FourCharCode('fola'); { Event the Finder sends to the Folder Actions FBA} 952 kFolderActionCode = FourCharCode('actn'); { Parameter that contains the Folder Action} 953 kFolderOpenedEvent = FourCharCode('fopn'); { Value of kFolderActionCode parameter; sent to script as event} 954 kFolderClosedEvent = FourCharCode('fclo'); 955 kFolderWindowMovedEvent = FourCharCode('fsiz'); 956 kFolderItemsAddedEvent = FourCharCode('fget'); 957 kFolderItemsRemovedEvent = FourCharCode('flos'); 958 kItemList = FourCharCode('flst'); { List parameter for added and removed items} 959 kNewSizeParameter = FourCharCode('fnsz'); { Parameter for moved window} 960 kFASuiteCode = FourCharCode('faco'); { Suite code for the following events} 961 kFAAttachCommand = FourCharCode('atfa'); { Attach event id} 962 kFARemoveCommand = FourCharCode('rmfa'); { Remove event id} 963 kFAEditCommand = FourCharCode('edfa'); { Edit event id} 964 kFAFileParam = FourCharCode('faal'); { Key for file parameter for Attach} 965 kFAIndexParam = FourCharCode('indx'); { Key for index (0-based) parameter for Remove and Edit} 966 967 { AppleScript 1.3 Internet Suite } 968 const 969 { Suite code } 970 kAEInternetSuite = FourCharCode('gurl'); 971 kAEISWebStarSuite = $575757BD; 972 973 const 974 { Events } 975 kAEISGetURL = FourCharCode('gurl'); 976 KAEISHandleCGI = FourCharCode('sdoc'); 977 978 const 979 { Classes } 980 cURL = FourCharCode('url '); 981 cInternetAddress = FourCharCode('IPAD'); 982 cHTML = FourCharCode('html'); 983 cFTPItem = FourCharCode('ftp '); 984 985 const 986 { Parameters } 987 kAEISHTTPSearchArgs = FourCharCode('kfor'); 988 kAEISPostArgs = FourCharCode('post'); 989 kAEISMethod = FourCharCode('meth'); 990 kAEISClientAddress = FourCharCode('addr'); 991 kAEISUserName = FourCharCode('user'); 992 kAEISPassword = FourCharCode('pass'); 993 kAEISFromUser = FourCharCode('frmu'); 994 kAEISServerName = FourCharCode('svnm'); 995 kAEISServerPort = FourCharCode('svpt'); 996 kAEISScriptName = FourCharCode('scnm'); 997 kAEISContentType = FourCharCode('ctyp'); 998 kAEISReferrer = FourCharCode('refr'); 999 kAEISUserAgent = FourCharCode('Agnt'); 1000 kAEISAction = FourCharCode('Kact'); 1001 kAEISActionPath = FourCharCode('Kapt'); 1002 kAEISClientIP = FourCharCode('Kcip'); 1003 kAEISFullRequest = FourCharCode('Kfrq'); 1004 1005 const 1006 { Properties } 1007 pScheme = FourCharCode('pusc'); 1008 pHost = FourCharCode('HOST'); 1009 pPath = FourCharCode('FTPc'); 1010 pUserName = FourCharCode('RAun'); 1011 pUserPassword = FourCharCode('RApw'); 1012 pDNSForm = FourCharCode('pDNS'); 1013 pURL = FourCharCode('pURL'); 1014 pTextEncoding = FourCharCode('ptxe'); 1015 pFTPKind = FourCharCode('kind'); 1016 1017 const 1018 { Scheme enumerations } 1019 eScheme = FourCharCode('esch'); 1020 eurlHTTP = FourCharCode('http'); { RFC 2068 } 1021 eurlHTTPS = FourCharCode('htps'); 1022 eurlFTP = FourCharCode('ftp '); { RFC 1738 } 1023 eurlMail = FourCharCode('mail'); { RFC 2638 } 1024 eurlFile = FourCharCode('file'); { RFC 1738 } 1025 eurlGopher = FourCharCode('gphr'); { RFC 1738 } 1026 eurlTelnet = FourCharCode('tlnt'); { RFC 1738 } 1027 eurlNews = FourCharCode('news'); { RFC 1738 } 1028 eurlSNews = FourCharCode('snws'); 1029 eurlNNTP = FourCharCode('nntp'); { RFC 1738 } 1030 eurlMessage = FourCharCode('mess'); 1031 eurlMailbox = FourCharCode('mbox'); 1032 eurlMulti = FourCharCode('mult'); 1033 eurlLaunch = FourCharCode('laun'); 1034 eurlAFP = FourCharCode('afp '); 1035 eurlAT = FourCharCode('at '); 1036 eurlEPPC = FourCharCode('eppc'); 1037 eurlRTSP = FourCharCode('rtsp'); { RFC 2326 } 1038 eurlIMAP = FourCharCode('imap'); { RFC 2192 } 1039 eurlNFS = FourCharCode('unfs'); { RFC 2224 } 1040 eurlPOP = FourCharCode('upop'); { RFC 2384 } 1041 eurlLDAP = FourCharCode('uldp'); { RFC 2255 } 1042 eurlUnknown = FourCharCode('url?'); 1043 1044 const 1045 { AppleScript 1.3: Connectivity Suite in aeut } 1046 kConnSuite = FourCharCode('macc'); 1047 cDevSpec = FourCharCode('cdev'); 1048 cAddressSpec = FourCharCode('cadr'); 1049 cADBAddress = FourCharCode('cadb'); 1050 cAppleTalkAddress = FourCharCode('cat '); 1051 cBusAddress = FourCharCode('cbus'); 1052 cEthernetAddress = FourCharCode('cen '); 1053 cFireWireAddress = FourCharCode('cfw '); 1054 cIPAddress = FourCharCode('cip '); 1055 cLocalTalkAddress = FourCharCode('clt '); 1056 cSCSIAddress = FourCharCode('cscs'); 1057 cTokenRingAddress = FourCharCode('ctok'); 1058 cUSBAddress = FourCharCode('cusb'); { } 1059 { Properties } 1060 pDeviceType = FourCharCode('pdvt'); 1061 pDeviceAddress = FourCharCode('pdva'); 1062 pConduit = FourCharCode('pcon'); 1063 pProtocol = FourCharCode('pprt'); { cde 4/27/98 was 'ppro' conflicted with DB suite } 1064 pATMachine = FourCharCode('patm'); 1065 pATZone = FourCharCode('patz'); 1066 pATType = FourCharCode('patt'); 1067 pDottedDecimal = FourCharCode('pipd'); 1068 pDNS = FourCharCode('pdns'); 1069 pPort = FourCharCode('ppor'); 1070 pNetwork = FourCharCode('pnet'); 1071 pNode = FourCharCode('pnod'); 1072 pSocket = FourCharCode('psoc'); 1073 pSCSIBus = FourCharCode('pscb'); 1074 pSCSILUN = FourCharCode('pslu'); { cde 5/22/98 per WWDC developer request } 1075 { Enumerations and enumerators } 1076 eDeviceType = FourCharCode('edvt'); 1077 eAddressSpec = FourCharCode('eads'); 1078 eConduit = FourCharCode('econ'); 1079 eProtocol = FourCharCode('epro'); 1080 eADB = FourCharCode('eadb'); 1081 eAnalogAudio = FourCharCode('epau'); 1082 eAppleTalk = FourCharCode('epat'); 1083 eAudioLineIn = FourCharCode('ecai'); 1084 eAudioLineOut = FourCharCode('ecal'); { cde 4/24/98 changed from 'ecao' to not conflict } 1085 eAudioOut = FourCharCode('ecao'); 1086 eBus = FourCharCode('ebus'); 1087 eCDROM = FourCharCode('ecd '); 1088 eCommSlot = FourCharCode('eccm'); 1089 eDigitalAudio = FourCharCode('epda'); 1090 eDisplay = FourCharCode('edds'); 1091 eDVD = FourCharCode('edvd'); 1092 eEthernet = FourCharCode('ecen'); 1093 eFireWire = FourCharCode('ecfw'); 1094 eFloppy = FourCharCode('efd '); 1095 eHD = FourCharCode('ehd '); 1096 eInfrared = FourCharCode('ecir'); 1097 eIP = FourCharCode('epip'); 1098 eIrDA = FourCharCode('epir'); 1099 eIRTalk = FourCharCode('epit'); 1100 eKeyboard = FourCharCode('ekbd'); 1101 eLCD = FourCharCode('edlc'); 1102 eLocalTalk = FourCharCode('eclt'); 1103 eMacIP = FourCharCode('epmi'); 1104 eMacVideo = FourCharCode('epmv'); 1105 eMicrophone = FourCharCode('ecmi'); 1106 eModemPort = FourCharCode('ecmp'); 1107 eModemPrinterPort = FourCharCode('empp'); 1108 eModem = FourCharCode('edmm'); 1109 eMonitorOut = FourCharCode('ecmn'); 1110 eMouse = FourCharCode('emou'); 1111 eNuBusCard = FourCharCode('ednb'); 1112 eNuBus = FourCharCode('enub'); 1113 ePCcard = FourCharCode('ecpc'); 1114 ePCIbus = FourCharCode('ecpi'); 1115 ePCIcard = FourCharCode('edpi'); 1116 ePDSslot = FourCharCode('ecpd'); 1117 ePDScard = FourCharCode('epds'); 1118 ePointingDevice = FourCharCode('edpd'); 1119 ePostScript = FourCharCode('epps'); 1120 ePPP = FourCharCode('eppp'); 1121 ePrinterPort = FourCharCode('ecpp'); 1122 ePrinter = FourCharCode('edpr'); 1123 eSvideo = FourCharCode('epsv'); 1124 eSCSI = FourCharCode('ecsc'); 1125 eSerial = FourCharCode('epsr'); 1126 eSpeakers = FourCharCode('edsp'); 1127 eStorageDevice = FourCharCode('edst'); 1128 eSVGA = FourCharCode('epsg'); 1129 eTokenRing = FourCharCode('etok'); 1130 eTrackball = FourCharCode('etrk'); 1131 eTrackpad = FourCharCode('edtp'); 1132 eUSB = FourCharCode('ecus'); 1133 eVideoIn = FourCharCode('ecvi'); 1134 eVideoMonitor = FourCharCode('edvm'); 1135 eVideoOut = FourCharCode('ecvo'); 1136 1137 const 1138 { AppleScript 1.3: Keystroke class } 1139 cKeystroke = FourCharCode('kprs'); 1140 pKeystrokeKey = FourCharCode('kMsg'); 1141 pModifiers = FourCharCode('kMod'); 1142 pKeyKind = FourCharCode('kknd'); 1143 eModifiers = FourCharCode('eMds'); 1144 eOptionDown = FourCharCode('Kopt'); 1145 eCommandDown = FourCharCode('Kcmd'); 1146 eControlDown = FourCharCode('Kctl'); 1147 eShiftDown = FourCharCode('Ksft'); 1148 eCapsLockDown = FourCharCode('Kclk'); 1149 eKeyKind = FourCharCode('ekst'); { } 1150 { Special keys all start with 'ks' } 1151 eEscapeKey = $6B733500; { Third byte is virtual key code byte } 1152 eDeleteKey = $6B733300; { (see IM Mac Toolbox Essentials, pp. 2-43) } 1153 eTabKey = $6B733000; 1154 eReturnKey = $6B732400; 1155 eClearKey = $6B734700; 1156 eEnterKey = $6B734C00; 1157 eUpArrowKey = $6B737E00; 1158 eDownArrowKey = $6B737D00; 1159 eLeftArrowKey = $6B737B00; 1160 eRightArrowKey = $6B737C00; 1161 eHelpKey = $6B737200; 1162 eHomeKey = $6B737300; 1163 ePageUpKey = $6B737400; 1164 ePageDownKey = $6B737900; 1165 eForwardDelKey = $6B737500; 1166 eEndKey = $6B737700; 1167 eF1Key = $6B737A00; 1168 eF2Key = $6B737800; 1169 eF3Key = $6B736300; 1170 eF4Key = $6B737600; 1171 eF5Key = $6B736000; 1172 eF6Key = $6B736100; 1173 eF7Key = $6B736200; 1174 eF8Key = $6B736400; 1175 eF9Key = $6B736500; 1176 eF10Key = $6B736D00; 1177 eF11Key = $6B736700; 1178 eF12Key = $6B736F00; 1179 eF13Key = $6B736900; 1180 eF14Key = $6B736B00; 1181 eF15Key = $6B737100; 1182 1183 const 1184 keyAELaunchedAsLogInItem = FourCharCode('lgit'); { If present in a kAEOpenApplication event, application was launched as a login item and probably shouldn't open up untitled documents, etc. Mac OS X 10.4 and later. } 1185 keyAELaunchedAsServiceItem = FourCharCode('svit'); { If present in a kAEOpenApplication event, application was launched as a service item and probably shouldn't open up untitled documents, etc. Mac OS X 10.4 and later. } 1186 1187 1188 {$endc} {TARGET_OS_MAC} 1189 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE} 1190 1191 end. 1192 {$endc} {not MACOSALLINCLUDE} 1193