#ifndef AEREGISTRY_H
#define AEREGISTRY_H



#ifndef CORESERVICES_H
#include <CoreServices/CoreServices.h>
#endif

#ifndef APPLEEVENTS_H
#include <AE/AppleEvents.h>
#endif


//#include <HYS/AE/AERegistry.h>
#include <APPLE/AE/AERegistry.h>
#include <AvailabilityMacros.h>

#if PRAGMA_ONCE
#pragma once
#endif

/*pNewElementLoc

enum {
   pNewElementLoc = 'pnel',
   pPenColor = 'ppcl',
   pPenPattern = 'pppa',
   pPenWidth = 'ppwd',
   pPixelDepth = 'pdpt',
   pPointList = 'ptlt',
   pPointSize = 'ptsz',
   pProtection = 'ppro',
   pRotation = 'prot',
   pScale = 'pscl',
   pScript = 'scpt',
   pScriptTag = 'psct',
   pSelected = 'selc',
   pSelection = 'sele',
   pStartAngle = 'pang',
   pStartPoint = 'pstp',
   pTextColor = 'ptxc',
   pTextFont = 'ptxf',
   pTextItemDelimiters = 'txdl',
   pTextPointSize = 'ptps'
};*/
enum {
   pNewElementLoc = 'pnel',
   pPenColor = 'ppcl',
   pPenPattern = 'pppa',
   pPenWidth = 'ppwd',
   pPixelDepth = 'pdpt',
   pPointList = 'ptlt',
   pPointSize = 'ptsz',
   pProtection = 'ppro',
   pRotation = 'prot',
   pScale = 'pscl',
   pScript = 'scpt',
   pScriptTag = 'psct',
   pSelected = 'selc',
   pSelection = 'sele',
   pStartAngle = 'pang',
   pStartPoint = 'pstp',
   pTextColor = 'ptxc',
   pTextFont = 'ptxf',
   pTextItemDelimiters = 'txdl',
   pTextPointSize = 'ptps'
};

/*cVersion

enum {
   cVersion = 'vers',
   cWindow = 'cwin',
   cWord = 'cwor',
   enumArrows = 'arro',
   enumJustification = 'just',
   enumKeyForm = 'kfrm',
   enumPosition = 'posi',
   enumProtection = 'prtn',
   enumQuality = 'qual',
   enumSaveOptions = 'savo',
   enumStyle = 'styl',
   enumTransferMode = 'tran',
   formUniqueID = 'ID  ',
   kAEAbout = 'abou',
   kAEAfter = 'afte',
   kAEAliasSelection = 'sali',
   kAEAllCaps = 'alcp',
   kAEArrowAtEnd = 'aren',
   kAEArrowAtStart = 'arst',
   kAEArrowBothEnds = 'arbo'
};*/
enum {
   cVersion = 'vers',
   cWindow = 'cwin',
   cWord = 'cwor',
   enumArrows = 'arro',
   enumJustification = 'just',
   enumKeyForm = 'kfrm',
   enumPosition = 'posi',
   enumProtection = 'prtn',
   enumQuality = 'qual',
   enumSaveOptions = 'savo',
   enumStyle = 'styl',
   enumTransferMode = 'tran',
   formUniqueID = 'ID  ',
   kAEAbout = 'abou',
   kAEAfter = 'afte',
   kAEAliasSelection = 'sali',
   kAEAllCaps = 'alcp',
   kAEArrowAtEnd = 'aren',
   kAEArrowAtStart = 'arst',
   kAEArrowBothEnds = 'arbo'
};

/*pArcAngle

enum {
   pArcAngle = 'parc',
   pBackgroundColor = 'pbcl',
   pBackgroundPattern = 'pbpt',
   pBestType = 'pbst',
   pBounds = 'pbnd',
   pClass = 'pcls',
   pClipboard = 'pcli',
   pColor = 'colr',
   pColorTable = 'cltb',
   pContents = 'pcnt',
   pCornerCurveHeight = 'pchd',
   pCornerCurveWidth = 'pcwd',
   pDashStyle = 'pdst',
   pDefaultType = 'deft',
   pDefinitionRect = 'pdrt',
   pEnabled = 'enbl',
   pEndPoint = 'pend',
   pFillColor = 'flcl',
   pFillPattern = 'flpt',
   pFont = 'font'
};*/
enum {
   pArcAngle = 'parc',
   pBackgroundColor = 'pbcl',
   pBackgroundPattern = 'pbpt',
   pBestType = 'pbst',
   pBounds = 'pbnd',
   pClass = 'pcls',
   pClipboard = 'pcli',
   pColor = 'colr',
   pColorTable = 'cltb',
   pContents = 'pcnt',
   pCornerCurveHeight = 'pchd',
   pCornerCurveWidth = 'pcwd',
   pDashStyle = 'pdst',
   pDefaultType = 'deft',
   pDefinitionRect = 'pdrt',
   pEnabled = 'enbl',
   pEndPoint = 'pend',
   pFillColor = 'flcl',
   pFillPattern = 'flpt',
   pFont = 'font'
};

/*keyAEBaseAddr

enum {
   keyAEBaseAddr = 'badd',
   keyAEBestType = 'pbst',
   keyAEBgndColor = 'kbcl',
   keyAEBgndPattern = 'kbpt',
   keyAEBounds = 'pbnd',
   keyAECellList = 'kclt',
   keyAEClassID = 'clID',
   keyAEColor = 'colr',
   keyAEColorTable = 'cltb',
   keyAECurveHeight = 'kchd',
   keyAECurveWidth = 'kcwd',
   keyAEDashStyle = 'pdst',
   keyAEData = 'data',
   keyAEDefaultType = 'deft',
   keyAEDefinitionRect = 'pdrt',
   keyAEDescType = 'dstp',
   keyAEDestination = 'dest',
   keyAEDoAntiAlias = 'anta',
   keyAEDoDithered = 'gdit',
   keyAEDoRotate = 'kdrt'
};*/
enum {
   keyAEBaseAddr = 'badd',
   keyAEBestType = 'pbst',
   keyAEBgndColor = 'kbcl',
   keyAEBgndPattern = 'kbpt',
   keyAEBounds = 'pbnd',
   keyAECellList = 'kclt',
   keyAEClassID = 'clID',
   keyAEColor = 'colr',
   keyAEColorTable = 'cltb',
   keyAECurveHeight = 'kchd',
   keyAECurveWidth = 'kcwd',
   keyAEDashStyle = 'pdst',
   keyAEData = 'data',
   keyAEDefaultType = 'deft',
   keyAEDefinitionRect = 'pdrt',
   keyAEDescType = 'dstp',
   keyAEDestination = 'dest',
   keyAEDoAntiAlias = 'anta',
   keyAEDoDithered = 'gdit',
   keyAEDoRotate = 'kdrt'
};


/*pTextStyles

enum {
   pTextStyles = 'txst',
   pTransferMode = 'pptm',
   pTranslation = 'ptrs',
   pUniformStyles = 'ustl',
   pUpdateOn = 'pupd',
   pUserSelection = 'pusl',
   pVersion = 'vers',
   pVisible = 'pvis'
};*/
enum {
   pTextStyles = 'txst',
   pTransferMode = 'pptm',
   pTranslation = 'ptrs',
   pUniformStyles = 'ustl',
   pUpdateOn = 'pupd',
   pUserSelection = 'pusl',
   pVersion = 'vers',
   pVisible = 'pvis'
};

/*kAENonmodifiable

enum {
   kAENonmodifiable = 'nmod',
   kAEOpen = 'odoc',
   kAEOpenSelection = 'sope',
   kAEOutline = 'outl',
   kAEPageSetup = 'pgsu',
   kAEPaste = 'past',
   kAEPlain = 'plan',
   kAEPrint = 'pdoc',
   kAEPrintSelection = 'spri',
   kAEPrintWindow = 'pwin',
   kAEPutAwaySelection = 'sput',
   kAEQDAddOver = 'addo',
   kAEQDAddPin = 'addp',
   kAEQDAdMax = 'admx',
   kAEQDAdMin = 'admn',
   kAEQDBic = 'bic ',
   kAEQDBlend = 'blnd',
   kAEQDCopy = 'cpy ',
   kAEQDNotBic = 'nbic',
   kAEQDNotCopy = 'ncpy'
};*/
enum {
   kAENonmodifiable = 'nmod',
   kAEOpen = 'odoc',
   kAEOpenSelection = 'sope',
   kAEOutline = 'outl',
   kAEPageSetup = 'pgsu',
   kAEPaste = 'past',
   kAEPlain = 'plan',
   kAEPrint = 'pdoc',
   kAEPrintSelection = 'spri',
   kAEPrintWindow = 'pwin',
   kAEPutAwaySelection = 'sput',
   kAEQDAddOver = 'addo',
   kAEQDAddPin = 'addp',
   kAEQDAdMax = 'admx',
   kAEQDAdMin = 'admn',
   kAEQDBic = 'bic ',
   kAEQDBlend = 'blnd',
   kAEQDCopy = 'cpy ',
   kAEQDNotBic = 'nbic',
   kAEQDNotCopy = 'ncpy'
};

/*keyMiscellaneous

enum {
   keyMiscellaneous = 'fmsc',
   keySelection = 'fsel',
   keyWindow = 'kwnd',
   keyWhen = 'when',
   keyWhere = 'wher',
   keyModifiers = 'mods',
   keyKey = 'key ',
   keyKeyCode = 'code',
   keyKeyboard = 'keyb',
   keyDriveNumber = 'drv#',
   keyErrorCode = 'err#',
   keyHighLevelClass = 'hcls',
   keyHighLevelID = 'hid '
};*/
enum {
   keyMiscellaneous = 'fmsc',
   keySelection = 'fsel',
   keyWindow = 'kwnd',
   keyWhen = 'when',
   keyWhere = 'wher',
   keyModifiers = 'mods',
   keyKey = 'key ',
   keyKeyCode = 'code',
   keyKeyboard = 'keyb',
   keyDriveNumber = 'drv#',
   keyErrorCode = 'err#',
   keyHighLevelClass = 'hcls',
   keyHighLevelID = 'hid '
};

/*kCaretPosition

enum {
   kCaretPosition = 1,
   kRawText = 2,
   kSelectedRawText = 3,
   kConvertedText = 4,
   kSelectedConvertedText = 5,
   kBlockFillText = 6,
   kOutlineText = 7,
   kSelectedText = 8
};
Version Notes

Starting in Mac OS X v10.4, use the constants defined in “kTSMHiliteCaretPosition” in place of these constants.*/

enum {
   kCaretPosition = 1,
   kRawText = 2,
   kSelectedRawText = 3,
   kConvertedText = 4,
   kSelectedConvertedText = 5,
   kBlockFillText = 6,
   kOutlineText = 7,
   kSelectedText = 8
};

/*kAEQDNotOr

enum {
   kAEQDNotOr = 'ntor',
   kAEQDNotXor = 'nxor',
   kAEQDOr = 'or  ',
   kAEQDSubOver = 'subo',
   kAEQDSubPin = 'subp',
   kAEQDSupplementalSuite = 'qdsp',
   kAEQDXor = 'xor ',
   kAEQuickdrawSuite = 'qdrw',
   kAEQuitAll = 'quia',
   kAERedo = 'redo',
   kAERegular = 'regl',
   kAEReplace = 'rplc',
   kAERequiredSuite = 'reqd',
   kAERestart = 'rest',
   kAERevealSelection = 'srev',
   kAERevert = 'rvrt',
   kAERightJustified = 'rght',
   kAESave = 'save',
   kAESelect = 'slct',
   kAESetData = 'setd'
};*/

enum {
   kAEQDNotOr = 'ntor',
   kAEQDNotXor = 'nxor',
   kAEQDOr = 'or  ',
   kAEQDSubOver = 'subo',
   kAEQDSubPin = 'subp',
   kAEQDSupplementalSuite = 'qdsp',
   kAEQDXor = 'xor ',
   kAEQuickdrawSuite = 'qdrw',
   kAEQuitAll = 'quia',
   kAERedo = 'redo',
   kAERegular = 'regl',
   kAEReplace = 'rplc',
   kAERequiredSuite = 'reqd',
   kAERestart = 'rest',
   kAERevealSelection = 'srev',
   kAERevert = 'rvrt',
   kAERightJustified = 'rght',
   kAESave = 'save',
   kAESelect = 'slct',
   kAESetData = 'setd'
};


/*typeFinderWindow

enum {
   typeFinderWindow = 'fwin',
   typeFixedPoint = 'fpnt',
   typeFixedRectangle = 'frct',
   typeGraphicLine = 'glin',
   typeGraphicText = 'cgtx',
   typeGroupedGraphic = 'cpic',
   typeInsertionLoc = 'insl',
   typeIntlText = 'itxt',
   typeIntlWritingCode = 'intl',
   typeLongDateTime = 'ldt ',
   typeISO8601DateTime = 'isot',
   typeLongFixed = 'lfxd',
   typeLongFixedPoint = 'lfpt',
   typeLongFixedRectangle = 'lfrc',
   typeLongPoint = 'lpnt',
   typeLongRectangle = 'lrct',
   typeMachineLoc = 'mLoc',
   typeOval = 'covl',
   typeParamInfo = 'pmin',
   typePict = 'PICT'
};
Constants
typeIntlText

For important information, see the Version Notes section of the typeUnicodeText enum.

Available in Mac OS X v10.0 and later.*/
enum {
   typeFinderWindow = 'fwin',
   typeFixedPoint = 'fpnt',
   typeFixedRectangle = 'frct',
   typeGraphicLine = 'glin',
   typeGraphicText = 'cgtx',
   typeGroupedGraphic = 'cpic',
   typeInsertionLoc = 'insl',
   typeIntlText = 'itxt',
   typeIntlWritingCode = 'intl',
   typeLongDateTime = 'ldt ',
   typeISO8601DateTime = 'isot',
   typeLongFixed = 'lfxd',
   typeLongFixedPoint = 'lfpt',
   typeLongFixedRectangle = 'lfrc',
   typeLongPoint = 'lpnt',
   typeLongRectangle = 'lrct',
   typeMachineLoc = 'mLoc',
   typeOval = 'covl',
   typeParamInfo = 'pmin',
   typePict = 'PICT'
};

/*cAEList

enum {
   cAEList = 'list',
   cApplication = 'capp',
   cArc = 'carc',
   cBoolean = 'bool',
   cCell = 'ccel',
   cChar = 'cha ',
   cColorTable = 'clrt',
   cColumn = 'ccol',
   cDocument = 'docu',
   cDrawingArea = 'cdrw',
   cEnumeration = 'enum',
   cFile = 'file',
   cFixed = 'fixd',
   cFixedPoint = 'fpnt',
   cFixedRectangle = 'frct',
   cGraphicLine = 'glin',
   cGraphicObject = 'cgob',
   cGraphicShape = 'cgsh',
   cGraphicText = 'cgtx',
   cGroupedGraphic = 'cpic'
};*/
enum {
   cAEList = 'list',
   cApplication = 'capp',
   cArc = 'carc',
   cBoolean = 'bool',
   cCell = 'ccel',
   cChar = 'cha ',
   cColorTable = 'clrt',
   cColumn = 'ccol',
   cDocument = 'docu',
   cDrawingArea = 'cdrw',
   cEnumeration = 'enum',
   cFile = 'file',
   cFixed = 'fixd',
   cFixedPoint = 'fpnt',
   cFixedRectangle = 'frct',
   cGraphicLine = 'glin',
   cGraphicObject = 'cgob',
   cGraphicShape = 'cgsh',
   cGraphicText = 'cgtx',
   cGroupedGraphic = 'cpic'
};

/*Object Class ID Constants

Specify the object class for an Apple event object.

enum {
   cParagraph = 'cpar',
   cPICT = 'PICT',
   cPixel = 'cpxl',
   cPixelMap = 'cpix',
   cPolygon = 'cpgn',
   cProperty = 'prop',
   cQDPoint = 'QDpt',
   cQDRectangle = 'qdrt',
   cRectangle = 'crec',
   cRGBColor = 'cRGB',
   cRotation = 'trot',
   cRoundedRectangle = 'crrc',
   cRow = 'crow',
   cSelection = 'csel',
   cShortInteger = 'shor',
   cTable = 'ctbl',
   cText = 'ctxt',
   cTextFlow = 'cflo',
   cTextStyles = 'tsty',
   cType = 'type'
};
Constants
cParagraph

A paragraph of text.

Available in Mac OS X v10.0 and later.
cPICT

A PICT format figure.

Available in Mac OS X v10.0 and later.
cProperty

A property of any object class.

Available in Mac OS X v10.0 and later.
cRGBColor

An RGB color value.

Available in Mac OS X v10.0 and later.
Discussion

The object class of an Apple event object is identified by an object class ID. For example, the object class for an object specifier that specifies an RGB color value is the four-character code 'cRGB', which can be represented by the constant cRGBColor.

AppleScript defines constants for a wide variety of common object classes, though only a small number are shown here. For a more complete listing, see the Apple Event Manager and Open Scripting Architecture header files.*/
enum {
   cParagraph = 'cpar',
   cPICT = 'PICT',
   cPixel = 'cpxl',
   cPixelMap = 'cpix',
   cPolygon = 'cpgn',
   cProperty = 'prop',
   cQDPoint = 'QDpt',
   cQDRectangle = 'qdrt',
   cRectangle = 'crec',
   cRGBColor = 'cRGB',
   cRotation = 'trot',
   cRoundedRectangle = 'crrc',
   cRow = 'crow',
   cSelection = 'csel',
   cShortInteger = 'shor',
   cTable = 'ctbl',
   cText = 'ctxt',
   cTextFlow = 'cflo',
   cTextStyles = 'tsty',
   cType = 'type'
};

/*TextRange

struct TextRange {
   long fStart;
   long fEnd;
   short fHiliteStyle;
};
typedef struct TextRange TextRange;
Availability
Available in Mac OS X v10.0 and later.*/

struct TextRange {
   long fStart;
   long fEnd;
   short fHiliteStyle;
};
typedef struct TextRange TextRange;



/*kTextServiceClass

enum {
   kTextServiceClass = 'tsvc',
   kUpdateActiveInputArea = 'updt',
   kShowHideInputWindow = 'shiw',
   kPos2Offset = 'p2st',
   kOffset2Pos = 'st2p',
   kUnicodeNotFromInputMethod = 'unim',
   kGetSelectedText = 'gtxt',
   keyAETSMDocumentRefcon = 'refc',
   keyAEServerInstance = 'srvi',
   keyAETheData = 'kdat',
   keyAEFixLength = 'fixl',
   keyAEUpdateRange = 'udng',
   keyAECurrentPoint = 'cpos',
   keyAEBufferSize = 'buff',
   keyAEMoveView = 'mvvw',
   keyAENextBody = 'nxbd',
   keyAETSMScriptTag = 'sclg',
   keyAETSMTextFont = 'ktxf',
   keyAETSMTextFMFont = 'ktxm',
   keyAETSMTextPointSize = 'ktps',
   keyAETSMEventRecord = 'tevt',
   keyAETSMEventRef = 'tevr',
   keyAETextServiceEncoding = 'tsen',
   keyAETextServiceMacEncoding = 'tmen',
   keyAETSMGlyphInfoArray = 'tgia',
   typeTextRange = 'txrn',
   typeComponentInstance = 'cmpi',
   typeOffsetArray = 'ofay',
   typeTextRangeArray = 'tray',
   typeLowLevelEventRecord = 'evtr',
   typeGlyphInfoArray = 'glia',
   typeEventRef = 'evrf',
   typeText = 'TEXT'
};*/

enum {
   kTextServiceClass = 'tsvc',
   kUpdateActiveInputArea = 'updt',
   kShowHideInputWindow = 'shiw',
   kPos2Offset = 'p2st',
   kOffset2Pos = 'st2p',
   kUnicodeNotFromInputMethod = 'unim',
   kGetSelectedText = 'gtxt',
   keyAETSMDocumentRefcon = 'refc',
   keyAEServerInstance = 'srvi',
   keyAETheData = 'kdat',
   keyAEFixLength = 'fixl',
   keyAEUpdateRange = 'udng',
   keyAECurrentPoint = 'cpos',
   keyAEBufferSize = 'buff',
   keyAEMoveView = 'mvvw',
   keyAENextBody = 'nxbd',
   keyAETSMScriptTag = 'sclg',
   keyAETSMTextFont = 'ktxf',
   keyAETSMTextFMFont = 'ktxm',
   keyAETSMTextPointSize = 'ktps',
   keyAETSMEventRecord = 'tevt',
   keyAETSMEventRef = 'tevr',
   keyAETextServiceEncoding = 'tsen',
   keyAETextServiceMacEncoding = 'tmen',
   keyAETSMGlyphInfoArray = 'tgia',
   typeTextRange = 'txrn',
   typeComponentInstance = 'cmpi',
   typeOffsetArray = 'ofay',
   typeTextRangeArray = 'tray',
   typeLowLevelEventRecord = 'evtr',
   typeGlyphInfoArray = 'glia',
   typeEventRef = 'evrf',
   typeText = 'TEXT'
};



/*typePixelMap

enum {
   typePixelMap = 'cpix',
   typePixMapMinus = 'tpmm',
   typePolygon = 'cpgn',
   typePropInfo = 'pinf',
   typePtr = 'ptr ',
   typeQDPoint = 'QDpt',
   typeQDRegion = 'Qrgn',
   typeRectangle = 'crec',
   typeRGB16 = 'tr16',
   typeRGB96 = 'tr96',
   typeRGBColor = 'cRGB',
   typeRotation = 'trot',
   typeRoundedRectangle = 'crrc',
   typeRow = 'crow',
   typeScrapStyles = 'styl',
   typeScript = 'scpt',
   typeStyledText = 'STXT',
   typeSuiteInfo = 'suin',
   typeTable = 'ctbl',
   typeTextStyles = 'tsty'
};
Constants
typeStyledText

Text that includes style information.

Styled text is stored as a record, in which the styles have the key 'ksty' and the plain text is has the key 'ktxt'. You can use this information to extract plain text from styled text without coercion.

However, getting rid of the style information, with or without coercion, may corrupt the text, since the styles imply what encoding to use. In fact, use of typeText and typeStyledText are not recommended, starting with Mac OS X, because they are not safe with international characters—you should use one of the Unicode text types instead.

For important information, see the Version Notes section of the typeUnicodeText enum.

Available in Mac OS X v10.0 and later.*/
enum {
   typePixelMap = 'cpix',
   typePixMapMinus = 'tpmm',
   typePolygon = 'cpgn',
   typePropInfo = 'pinf',
   typePtr = 'ptr ',
   typeQDPoint = 'QDpt',
   typeQDRegion = 'Qrgn',
   typeRectangle = 'crec',
   typeRGB16 = 'tr16',
   typeRGB96 = 'tr96',
   typeRGBColor = 'cRGB',
   typeRotation = 'trot',
   typeRoundedRectangle = 'crrc',
   typeRow = 'crow',
   typeScrapStyles = 'styl',
   typeScript = 'scpt',
   typeStyledText = 'STXT',
   typeSuiteInfo = 'suin',
   typeTable = 'ctbl',
   typeTextStyles = 'tsty'
};


/*typeAEText

enum {
   typeAEText = 'tTXT',
   typeArc = 'carc',
   typeBest = 'best',
   typeCell = 'ccel',
   typeClassInfo = 'gcli',
   typeColorTable = 'clrt',
   typeColumn = 'ccol',
   typeDashStyle = 'tdas',
   typeData = 'tdta',
   typeDrawingArea = 'cdrw',
   typeElemInfo = 'elin',
   typeEnumeration = 'enum',
   typeEPS = 'EPS ',
   typeEventInfo = 'evin'
};*/
enum {
   typeAEText = 'tTXT',
   typeArc = 'carc',
   typeBest = 'best',
   typeCell = 'ccel',
   typeClassInfo = 'gcli',
   typeColorTable = 'clrt',
   typeColumn = 'ccol',
   typeDashStyle = 'tdas',
   typeData = 'tdta',
   typeDrawingArea = 'cdrw',
   typeElemInfo = 'elin',
   typeEnumeration = 'enum',
   typeEPS = 'EPS ',
   typeEventInfo = 'evin'
};


/*cInsertionLoc

enum {
   cInsertionLoc = 'insl',
   cInsertionPoint = 'cins',
   cIntlText = 'itxt',
   cIntlWritingCode = 'intl',
   cItem = 'citm',
   cLine = 'clin',
   cLongDateTime = 'ldt ',
   cLongFixed = 'lfxd',
   cLongFixedPoint = 'lfpt',
   cLongFixedRectangle = 'lfrc',
   cLongInteger = 'long',
   cLongPoint = 'lpnt',
   cLongRectangle = 'lrct',
   cMachineLoc = 'mLoc',
   cMenu = 'cmnu',
   cMenuItem = 'cmen',
   cObject = 'cobj',
   cObjectSpecifier = 'obj ',
   cOpenableObject = 'coob',
   cOval = 'covl'
};*/
enum {
   cInsertionLoc = 'insl',
   cInsertionPoint = 'cins',
   cIntlText = 'itxt',
   cIntlWritingCode = 'intl',
   cItem = 'citm',
   cLine = 'clin',
   cLongDateTime = 'ldt ',
   cLongFixed = 'lfxd',
   cLongFixedPoint = 'lfpt',
   cLongFixedRectangle = 'lfrc',
   cLongInteger = 'long',
   cLongPoint = 'lpnt',
   cLongRectangle = 'lrct',
   cMachineLoc = 'mLoc',
   cMenu = 'cmnu',
   cMenuItem = 'cmen',
   cObject = 'cobj',
   cObjectSpecifier = 'obj ',
   cOpenableObject = 'coob',
   cOval = 'covl'
};


/*keyAEPropData

enum {
   keyAEPropData = 'prdt',
   keyAEProperties = 'qpro',
   keyAEProperty = 'kprp',
   keyAEPropFlags = 'prfg',
   keyAEPropID = 'prop',
   keyAEProtection = 'ppro',
   keyAERenderAs = 'kren',
   keyAERequestedType = 'rtyp',
   keyAEResult = '----',
   keyAEResultInfo = 'rsin',
   keyAERotation = 'prot',
   keyAERotPoint = 'krtp',
   keyAERowList = 'krls',
   keyAESaveOptions = 'savo',
   keyAEScale = 'pscl',
   keyAEScriptTag = 'psct',
   keyAESearchText = 'stxt',
   keyAEShowWhere = 'show',
   keyAEStartAngle = 'pang',
   keyAEStartPoint = 'pstp',
   keyAEStyles = 'ksty'
};
Constants
keyAESearchText

Identifies an optional parameter to the open documents Apple event, described in “Event ID Constants”. The parameter contains the search text from the Spotlight search that identified the documents to be opened. The application should make a reasonable effort to display an occurrence of the search text in each opened document—for example by scrolling the text into view.

For more information, see “Handling Apple Events Sent by the Mac OS” in “Responding to Apple Events” in Apple Events Programming Guide.

Available in Mac OS X v10.4 and later.
Version Notes

The constant keyAESearchText is available starting in Mac OS X v10.4.*/
enum {
   keyAEPropData = 'prdt',
   keyAEProperties = 'qpro',
   keyAEProperty = 'kprp',
   keyAEPropFlags = 'prfg',
   keyAEPropID = 'prop',
   keyAEProtection = 'ppro',
   keyAERenderAs = 'kren',
   keyAERequestedType = 'rtyp',
   keyAEResult = '----',
   keyAEResultInfo = 'rsin',
   keyAERotation = 'prot',
   keyAERotPoint = 'krtp',
   keyAERowList = 'krls',
   keyAESaveOptions = 'savo',
   keyAEScale = 'pscl',
   keyAEScriptTag = 'psct',
   keyAESearchText = 'stxt',
   keyAEShowWhere = 'show',
   keyAEStartAngle = 'pang',
   keyAEStartPoint = 'pstp',
   keyAEStyles = 'ksty'
};

/*keyAEKeyword

enum {
   keyAEKeyword = 'kywd',
   keyAELevel = 'levl',
   keyAELineArrow = 'arro',
   keyAEName = 'pnam',
   keyAENewElementLoc = 'pnel',
   keyAEObject = 'kobj',
   keyAEObjectClass = 'kocl',
   keyAEOffStyles = 'ofst',
   keyAEOnStyles = 'onst',
   keyAEParameters = 'prms',
   keyAEParamFlags = 'pmfg',
   keyAEPenColor = 'ppcl',
   keyAEPenPattern = 'pppa',
   keyAEPenWidth = 'ppwd',
   keyAEPixelDepth = 'pdpt',
   keyAEPixMapMinus = 'kpmm',
   keyAEPMTable = 'kpmt',
   keyAEPointList = 'ptlt',
   keyAEPointSize = 'ptsz',
   keyAEPosition = 'kpos'
};*/
enum {
   keyAEKeyword = 'kywd',
   keyAELevel = 'levl',
   keyAELineArrow = 'arro',
   keyAEName = 'pnam',
   keyAENewElementLoc = 'pnel',
   keyAEObject = 'kobj',
   keyAEObjectClass = 'kocl',
   keyAEOffStyles = 'ofst',
   keyAEOnStyles = 'onst',
   keyAEParameters = 'prms',
   keyAEParamFlags = 'pmfg',
   keyAEPenColor = 'ppcl',
   keyAEPenPattern = 'pppa',
   keyAEPenWidth = 'ppwd',
   keyAEPixelDepth = 'pdpt',
   keyAEPixMapMinus = 'kpmm',
   keyAEPMTable = 'kpmt',
   keyAEPointList = 'ptlt',
   keyAEPointSize = 'ptsz',
   keyAEPosition = 'kpos'
};

/*kAEDoObjectsExist

enum {
   kAEDoObjectsExist = 'doex',
   kAEDoScript = 'dosc',
   kAEDrag = 'drag',
   kAEDuplicateSelection = 'sdup',
   kAEEditGraphic = 'edit',
   kAEEmptyTrash = 'empt',
   kAEEnd = 'end ',
   kAEEndsWith = 'ends',
   kAEEndTransaction = 'endt',
   kAEEquals = '=   ',
   kAEExpanded = 'pexp',
   kAEFast = 'fast',
   kAEFinderEvents = 'FNDR',
   kAEFormulaProtect = 'fpro',
   kAEFullyJustified = 'full',
   kAEGetClassInfo = 'qobj',
   kAEGetData = 'getd',
   kAEGetDataSize = 'dsiz',
   kAEGetEventInfo = 'gtei',
   kAEGetInfoSelection = 'sinf'
};
Constants
kAEEndsWith

The value of operand1 ends with the value of operand2 (for example, the string "operand" ends with the string "and").

Available in Mac OS X v10.0 and later.
kAEEquals

The value of operand1 is equal to the value of operand2

Available in Mac OS X v10.0 and later.
kAEFinderEvents

An event that the Finder accepts.

Available in Mac OS X v10.0 and later.*/
enum {
   kAEDoObjectsExist = 'doex',
   kAEDoScript = 'dosc',
   kAEDrag = 'drag',
   kAEDuplicateSelection = 'sdup',
   kAEEditGraphic = 'edit',
   kAEEmptyTrash = 'empt',
   kAEEnd = 'end ',
   kAEEndsWith = 'ends',
   kAEEndTransaction = 'endt',
   kAEEquals = '=   ',
   kAEExpanded = 'pexp',
   kAEFast = 'fast',
   kAEFinderEvents = 'FNDR',
   kAEFormulaProtect = 'fpro',
   kAEFullyJustified = 'full',
   kAEGetClassInfo = 'qobj',
   kAEGetData = 'getd',
   kAEGetDataSize = 'dsiz',
   kAEGetEventInfo = 'gtei',
   kAEGetInfoSelection = 'sinf'
};

/*Comparison Operator Constants

Specify a comparison operation to perform on two operands.

enum {
   kAEAsk = 'ask ',
   kAEBefore = 'befo',
   kAEBeginning = 'bgng',
   kAEBeginsWith = 'bgwt',
   kAEBeginTransaction = 'begi',
   kAEBold = 'bold',
   kAECaseSensEquals = 'cseq',
   kAECentered = 'cent',
   kAEChangeView = 'view',
   kAEClone = 'clon',
   kAEClose = 'clos',
   kAECondensed = 'cond',
   kAEContains = 'cont',
   kAECopy = 'copy',
   kAECoreSuite = 'core',
   kAECountElements = 'cnte',
   kAECreateElement = 'crel',
   kAECreatePublisher = 'cpub',
   kAECut = 'cut ',
   kAEDelete = 'delo'
};
Constants
kAEBeginsWith

The value of operand1 begins with the value of operand2 (for example, the string "operand" begins with the string "opera").

Available in Mac OS X v10.0 and later.
kAEContains

The value of operand1 contains the value of operand2 (for example, the string "operand" contains the string "era").

Available in Mac OS X v10.0 and later.
kAECoreSuite

An Apple event in the Standard Suite.

Available in Mac OS X v10.0 and later.
Discussion

When you call the CreateCompDescriptor function, you pass one of these comparison operators in the comparisonOperator parameter. The CreateCompDescriptor function creates a comparison descriptor that specifies how to compare one or more Apple event objects with either another Apple event object or a descriptor.

The actual comparison of the two operands is performed by the object comparison function provided by the client application—see OSLCompareProcPtr. The way a comparison operator is interpreted is up to each application.

For related information, see “Constants for Object Specifiers, Positions, and Logical and Comparison Operations”.*/
enum {
   kAEAsk = 'ask ',
   kAEBefore = 'befo',
   kAEBeginning = 'bgng',
   kAEBeginsWith = 'bgwt',
   kAEBeginTransaction = 'begi',
   kAEBold = 'bold',
   kAECaseSensEquals = 'cseq',
   kAECentered = 'cent',
   kAEChangeView = 'view',
   kAEClone = 'clon',
   kAEClose = 'clos',
   kAECondensed = 'cond',
   kAEContains = 'cont',
   kAECopy = 'copy',
   kAECoreSuite = 'core',
   kAECountElements = 'cnte',
   kAECreateElement = 'crel',
   kAECreatePublisher = 'cpub',
   kAECut = 'cut ',
   kAEDelete = 'delo'
};


/*kASErrorEventCode

enum {
   kASErrorEventCode = 'err ',
   kOSAErrorArgs = 'erra',
   keyAEErrorObject = 'erob',
   pLength = 'leng',
   pReverse = 'rvse',
   pRest = 'rest',
   pInherits = 'c@#^',
   pProperties = 'pALL',
   keyASUserRecordFields = 'usrf',
   typeUserRecordFields = typeAEList
};*/
enum {
   kASErrorEventCode = 'err ',
   kOSAErrorArgs = 'erra',
   keyAEErrorObject = 'erob',
   pLength = 'leng',
   pReverse = 'rvse',
   pRest = 'rest',
   pInherits = 'c@#^',
   pProperties = 'pALL',
   keyASUserRecordFields = 'usrf',
   typeUserRecordFields = typeAEList
};
/*keyAEDoScale

enum {
   keyAEDoScale = 'ksca',
   keyAEDoTranslate = 'ktra',
   keyAEEditionFileLoc = 'eloc',
   keyAEElements = 'elms',
   keyAEEndPoint = 'pend',
   keyAEEventClass = 'evcl',
   keyAEEventID = 'evti',
   keyAEFile = 'kfil',
   keyAEFileType = 'fltp',
   keyAEFillColor = 'flcl',
   keyAEFillPattern = 'flpt',
   keyAEFlipHorizontal = 'kfho',
   keyAEFlipVertical = 'kfvt',
   keyAEFont = 'font',
   keyAEFormula = 'pfor',
   keyAEGraphicObjects = 'gobs',
   keyAEID = 'ID  ',
   keyAEImageQuality = 'gqua',
   keyAEInsertHere = 'insh',
   keyAEKeyForms = 'keyf'
};
AERegistry.h*/

enum {
   keyAEDoScale = 'ksca',
   keyAEDoTranslate = 'ktra',
   keyAEEditionFileLoc = 'eloc',
   keyAEElements = 'elms',
   keyAEEndPoint = 'pend',
   keyAEEventClass = 'evcl',
   keyAEEventID = 'evti',
   keyAEFile = 'kfil',
   keyAEFileType = 'fltp',
   keyAEFillColor = 'flcl',
   keyAEFillPattern = 'flpt',
   keyAEFlipHorizontal = 'kfho',
   keyAEFlipVertical = 'kfvt',
   keyAEFont = 'font',
   keyAEFormula = 'pfor',
   keyAEGraphicObjects = 'gobs',
   keyAEID = 'ID  ',
   keyAEImageQuality = 'gqua',
   keyAEInsertHere = 'insh',
   keyAEKeyForms = 'keyf'
};

/*TextRangeArray

struct TextRangeArray {
   short fNumOfRanges;
   TextRange fRange[1];
};
typedef struct TextRangeArray TextRangeArray;
Availability
Available in Mac OS X v10.0 and later.*/
struct TextRangeArray {
   short fNumOfRanges;
   TextRange fRange[1];
};
typedef struct TextRangeArray TextRangeArray;
typedef  TextRangeArray * TextRangeArrayPtr;

/*kAEGetPrivilegeSelection

enum {
   kAEGetPrivilegeSelection = 'sprv',
   kAEGetSuiteInfo = 'gtsi',
   kAEGreaterThan = '>   ',
   kAEGreaterThanEquals = '>=  ',
   kAEGrow = 'grow',
   kAEHidden = 'hidn',
   kAEHiQuality = 'hiqu',
   kAEImageGraphic = 'imgr',
   kAEIsUniform = 'isun',
   kAEItalic = 'ital',
   kAELeftJustified = 'left',
   kAELessThan = '<   ',
   kAELessThanEquals = '<=  ',
   kAELowercase = 'lowc',
   kAEMakeObjectsVisible = 'mvis',
   kAEMiscStandards = 'misc',
   kAEModifiable = 'modf',
   kAEMove = 'move',
   kAENo = 'no  ',
   kAENoArrow = 'arno'
};
Constants
kAEGreaterThan

The value of operand1 is greater than the value of operand2.

Available in Mac OS X v10.0 and later.
kAEGreaterThanEquals

The value of operand1 is greater than or equal to the value of operand2.

Available in Mac OS X v10.0 and later.
kAELessThanEquals

The value of operand1 is less than or equal to the value of operand2.

Available in Mac OS X v10.0 and later.*/
enum {
   kAEGetPrivilegeSelection = 'sprv',
   kAEGetSuiteInfo = 'gtsi',
   kAEGreaterThan = '>   ',
   kAEGreaterThanEquals = '>=  ',
   kAEGrow = 'grow',
   kAEHidden = 'hidn',
   kAEHiQuality = 'hiqu',
   kAEImageGraphic = 'imgr',
   kAEIsUniform = 'isun',
   kAEItalic = 'ital',
   kAELeftJustified = 'left',
   kAELessThan = '<   ',
   kAELessThanEquals = '<=  ',
   kAELowercase = 'lowc',
   kAEMakeObjectsVisible = 'mvis',
   kAEMiscStandards = 'misc',
   kAEModifiable = 'modf',
   kAEMove = 'move',
   kAENo = 'no  ',
   kAENoArrow = 'arno'
};

/*kAEMouseClass

enum {
   kAEMouseClass = 'mous',
   kAEDown = 'down',
   kAEUp = 'up  ',
   kAEMoved = 'move',
   kAEStoppedMoving = 'stop',
   kAEWindowClass = 'wind',
   kAEUpdate = 'updt',
   kAEActivate = 'actv',
   kAEDeactivate = 'dact',
   kAECommandClass = 'cmnd',
   kAEKeyClass = 'keyc',
   kAERawKey = 'rkey',
   kAEVirtualKey = 'keyc',
   kAENavigationKey = 'nave',
   kAEAutoDown = 'auto',
   kAEApplicationClass = 'appl',
   kAESuspend = 'susp',
   kAEResume = 'rsme',
   kAEDiskEvent = 'disk',
   kAENullEvent = 'null',
   kAEWakeUpEvent = 'wake',
   kAEScrapEvent = 'scrp',
   kAEHighLevel = 'high'
};*/
enum {
   kAEMouseClass = 'mous',
   kAEDown = 'down',
   kAEUp = 'up  ',
   kAEMoved = 'move',
   kAEStoppedMoving = 'stop',
   kAEWindowClass = 'wind',
   kAEUpdate = 'updt',
   kAEActivate = 'actv',
   kAEDeactivate = 'dact',
   kAECommandClass = 'cmnd',
   kAEKeyClass = 'keyc',
   kAERawKey = 'rkey',
   kAEVirtualKey = 'keyc',
   kAENavigationKey = 'nave',
   kAEAutoDown = 'auto',
   kAEApplicationClass = 'appl',
   kAESuspend = 'susp',
   kAEResume = 'rsme',
   kAEDiskEvent = 'disk',
   kAENullEvent = 'null',
   kAEWakeUpEvent = 'wake',
   kAEScrapEvent = 'scrp',
   kAEHighLevel = 'high'
};

#endif