Satimage
Le dictionnaire de AppleEventData.osax
Accueil Les dictionnaires Le dictionnaire de AppleEventData.osax  
Apple Event Data
Mac OS X specific
Apple Event Data

another data of v : Copy the specified data just changing the type

another data of anything : the source data

but type is type class : new type (Note: This command never does coercion.)

→ anything : the copied data (whose content is the same as the source)

do data size of v : Return the size in bytes of the data

do data size of anything : the data whose data size is to be returned

→ integer : the size of the data in bytes

joined data of v : Concatenate items in the specified list

joined data of a list of anything : a list of data to be joined (where the items should be plain text of the same type (unsupported by '&') or binary data meaningful to you)

[but type is type class] : new type (default: type of the first item) (Note: This parameter never does coercion.)

→ anything : the joined data

the raw id of class v : Get raw 4-character code of the class

the raw id of class type : class specifier

→ string

the class of raw id v : Get class specifier of the 4-character code

the class of raw id string : 4-character code

→ type class : (This command is not actually necessary in AppleScript because it supports: "xxxx" as type class)

Mac OS X specific

do AEFlattenDesc v : Flatten Apple event data

do AEFlattenDesc anything : the source data

→ text : the flattened data (binary). Use this command if you have to save complex Apple event data (list, record) especially in X 10.2+. In pre-10.2, 'another data of' command works with the complex data. Difference is that AEFlattenDesc adds 16-byte header.

do AEUnflattenDesc v : Make Apple event data from flattened data

do AEUnflattenDesc string : data flattened by AEFlattenDesc; the type 'string' is not actually checked but just the data is used

→ anything : unflattened Apple event data

do AESizeOfFlattenedDesc v : Return the size in bytes of the flattened data

do AESizeOfFlattenedDesc anything : the data whose flattened data size is to be returned

→ integer : the size in bytes