This page describes Tcl® calls that manipulate AppleEvent descriptors. For information on the associated ToolBox calls and data structures, see INSIDE MACINTOSH: Interapplication Communication.
tclAE::coerceData
Tcl wrapper for ToolBox AECoercePtr
call.
tclAE::coerceData
typeCode
data
toType
New AEDesc
.
Create a new AEDesc
,
casting data
from typeCode
to toType
. Unlike the ToolBox
call, the data is passed directly, rather than in a pointer.
tclAE::coerceDesc
Tcl wrapper for ToolBox AECoerceDesc
call.
tclAE::coerceDesc
anAEDesc
toType
New AEDesc
.
Create a new AEDesc
,
casting the original AEDesc
to toType
.
tclAE::createDesc
Tcl wrapper for ToolBox AECreateDesc
call.
tclAE::createDesc
typeCode
[data]
Hash key for new AEDesc
.
Create a new AEDesc
of
type typeCode
with optional
data
.
tclAE::duplicateDesc
Tcl wrapper for ToolBox AEDuplicateDesc
call.
tclAE::duplicateDesc
anAEDesc
Hash key for duplicate AEDesc
.
The descriptor record specified by anAEDesc
is duplicated and the
new AEDesc
is entered
into the hash table.
tclAE::getData
Tcl wrapper for AEGetDescData
call (read access for
theAEDesc.dataHandle
in pre-Carbon), including coercion.
tclAE::getData
theAEDesc
[desiredType]
[typeCodePtr]
theAEDesc
is cast to desiredType
(if
supplied). Pass '????
' in desiredType
to force
the return of raw binary data. If supplied, the final type of the data will
be placed in the variable named by typeCodePtr
.
tclAE::getDescType
Tcl read access for theAEDesc.descriptorType
.
tclAE::getDescType
theAEDesc
tclAE::replaceDescData
Tcl wrapper for Carbon AEReplaceDescData
call and/or Tcl write access for theAEDesc.typeCode
and
theAEDesc.dataHandle
.
tclAE::replaceDescData
theAEDesc
typeCode
data
None.
The data
and
typeCode
in theAEDesc
are
replaced.
tclAE::setDescType
Tcl write access for theAEDesc.descriptorType
.
tclAE::setDescType
theAEDesc
toType
None.
The DescType
of
theAEDesc
is set to toType
. The internal data
of theAEDesc
is unchanged.
tclAE::countItems
Tcl wrapper for ToolBox AECountItems
call.
tclAE::countItems
anAEDescList
The number of items in anAEDescList
.
Count items in anAEDescList
.
tclAE::createList
Tcl wrapper for ToolBox AECreateList
call.
tclAE::createList
[isRecord]
New AEDescList
.
If isRecord
is present and true, an AERecord
is created, otherwise
an AEDescList
.
tclAE::deleteItem
Tcl wrapper for ToolBox AEDeleteItem
call.
tclAE::deleteItem
theAEDescList
index
None.
Delete descriptor record at position index
from theAEDescList
. All
subesequent descriptor records will then move up one item.
tclAE::getNthData
Tcl emulator for ToolBox AEGetNthPtr
call.
tclAE::getNthData
theAEDescList
index
[desiredType]
[keyIfAnyPtr]
[typeCodePtr]
The data
from
the descriptor record at position index
in theAEDescList
.
The descriptor record specified by index
is obtained from theAEDescList
. The
Resulting AEDesc
is
then processed as by tclAE::getData
.
tclAE::getNthDesc
Tcl wrapper for ToolBox AEGetNthDesc
call.
tclAE::getNthDesc
theAEDescList
index
[desiredType]
[keyIfAnyPtr]
AEDesc hash key for the item descriptor.
The item record specified by index
is obtained from
theAEDescList
. The
Resulting AEDesc
is
optionally coerced to desiredType
,
duplicated, and a new hash key is returned for it.
tclAE::putData
Tcl emulator for ToolBox AEPutPtr
call.
AERecord
by index on Mac OS
X. Use tclAE::putKeyData
.
tclAE::putData
theAEDescList
index
typeCode
data
The updated value of theAEDescList
.
The descriptor record specified by index
in theAEDescList
is
replaced with a new descriptor record composed from data
cast to typeCode
.
tclAE::putDesc
Tcl wrapper for ToolBox AEPutDesc
call.
AEDesc
into an
AERecord
by index on
Mac OS X. Use tclAE::putKeyDesc
.
tclAE::putDesc
theAEDescList
index
anAEDesc
The updated value of theAEDescList
.
The descriptor record specified by index
in theAEDescList
is
replaced with a copy of anAEDesc
.
tclAE::deleteKeyDesc
Tcl wrapper for ToolBox AEDeleteKeyDesc
call.
tclAE::deleteKeyDesc
theAERecord
theAEKeyword
The updated value of theAERecord
.
Delete the keyword-specified descriptor record specified by theAEKeyword
from theAERecord
.
tclAE::getKeyData
Tcl emulator for ToolBox AEGetKeyPtr
call.
tclAE::getKeyData
theAERecord
theAEKeyword
[desiredType]
[typeCodePtr]
data
.
The keyword-specified descriptor record specified by theAEKeyword
is
obtained from theAERecord
. The
Resulting AEDesc
is then
processed as by tclAE::getData
.
tclAE::getKeyDesc
Tcl wrapper for ToolBox AEGetKeyDesc
call.
tclAE::getKeyDesc
theAERecord
theAEKeyword
[desiredType]
New AEDesc
.
The keyword-specified descriptor record specified by theAEKeyword
is
obtained from theAERecord
, optionally
coerced to desiredType
,
duplicated, and a new hash key is returned for it.
tclAE::putKeyData
Tcl emulator for ToolBox AEPutKeyPtr
call.
tclAE::putKeyData
theAERecord
theAEKeyword
typeCode
data
The updated value of theAERecord
.
The keyword-specified descriptor record specified by theAEKeyword
in
theAERecord
is replaced
or inserted with a new descriptor record composed from data
cast to typeCode
.
tclAE::putKeyDesc
Tcl wrapper for ToolBox AEPutKeyDesc
call.
tclAE::putKeyDesc
theAERecord
theAEKeyword
anAEDesc
The updated value of theAERecord
.
The keyword-specified descriptor record specified by theAEKeyword
in
theAERecord
is replaced
or inserted with a copy of anAEDesc
.
tclAE::getAttributeData
Tcl emulator for ToolBox AEGetAttributePtr
call.
tclAE::getAttributeData
theAppleEvent
theAEKeyword
[desiredType]
[typeCodePtr]
The data
from
the keyword-specified descriptor record from theAppleEvent
.
The keyword-specified descriptor record specified by theAEKeyword
is
obtained from theAppleEvent
. The
Resulting AEDesc
is then
processed as by tclAE::getData
.
tclAE::getAttributeDesc
Tcl wrapper for ToolBox AEGetAttributeDesc
call.
tclAE::getAttributeDesc
theAppleEvent
theAEKeyword
[desiredType]
New AEDesc
.
The keyword-specified descriptor record specified by theAEKeyword
is
obtained from theAppleEvent
, optionally
coerced to desiredType
,
duplicated, and a new hash key is returned for it.
Copyright © 1999Ð2003 Jonathan E. Guyer. All rights reserved.
Last modified Wednesday, March 12, 2003 9:15:30 AM