Carbon


Descriptor Type Constants

Header: AEDataModel.h

Specify types for descriptor records.

enum {
    typeAEList = 'list',
    typeAERecord = 'reco',
    typeAppleEvent = 'aevt',
    typeEventRecord = 'evrc',
    typeTrue = 'true',
    typeFalse = 'fals',
    typeAlias = 'alis',
    typeEnumerated = 'enum',
    typeType = 'type',
    typeAppParameters = 'appa',
    typeProperty = 'prop',
    typeFSS = 'fss ',
    typeFSRef = ''fsrf'',
    typeKeyword = ''keyw'',
    typeSectionH = ''sect'',
    typeWildCard = ''****'',
    typeApplSignature = ''sign'',
    typeQDRectangle = ''qdrt'',
    typeFixed = ''fixd'',
    typeSessionID = ''ssid'',
    typeTargetID = ''targ'',
    typeProcessSerialNumber = ''psn '',
    typeKernelProcessID = ''kpid'',
    typeDispatcherID = ''dspt'',
    typeNull = ''null''
};

Constant descriptions

typeAEList

List of descriptor records.

typeAERecord

List of keyword-specified descriptor records.

typeAppleEvent

Apple event record.

typeEventRecord
typeTrue

TRUE Boolean value.

typeFalse

FALSE Boolean value.

typeAlias

Alias record.

typeEnumerated

Enumerated data.

typeType

Four-character code for event class or event ID

typeAppParameters

Process Manager launch parameters.

typeProperty

Apple event object property.

typeFSS

File system specification.

typeFSRef
typeKeyword

Apple event keyword.

typeSectionH

Handle to a section record.

typeWildCard

Matches any type.

typeApplSignature

Application signature.

typeQDRectangle
typeFixed
typeSessionID

Session reference number.

typeTargetID

Target ID record.

typeProcessSerialNumber

A process serial number. See also “AEAddressDesc”.

typeKernelProcessID
typeDispatcherID
typeNull

A null data storage pointer. When resolving an object specifier, an object with a null storage pointer specifies the default container at the top of the container hierarchy.

The constants described here specify the data type for a descriptor record and show the kind of data stored in a descriptor with that type.

Descriptor records are the building blocks used by the Apple Event Manager to construct Apple event attributes and parameters. A descriptor record is a data structure of type AEDesc, which consists of data storage and a descriptor type that identifies the type of the data. A descriptor type is defined by the data type DescType.

AppleScript defines descriptor type constants for a wide variety of common data types. For additional types, see “Numeric Descriptor Type Constants” and “Other Descriptor Type Constants”. For a complete listing, including data types such as units of length, weight, and volume, 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)