Carbon


Object Class ID Constants

Header: AERegistry.h

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'
};

Constant descriptions

cParagraph

A paragraph of text.

cPICT

A PICT format figure.

cPixel
cPixelMap
cPolygon
cProperty

A property of any object class.

cQDPoint
cQDRectangle
cRectangle
cRGBColor

An RGB color value.

cRotation
cRoundedRectangle
cRow
cSelection
cShortInteger
cTable
cText
cTextFlow
cTextStyles
cType

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 and Scripting header files or the Mac OS Registry, a database collection of Apple Event and Scripting information distributed with AppleScript SDKs.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)