aetypes— AppleEvent objects
aetypes defines classes used to represent Apple Event data
descriptors and Apple Event object specifiers.
Apple Event data is contained in descriptors, and these descriptors are typed.
For many descriptors the Python representation is simply the corresponding
typeText in OSA is a Python string,
typeFloat is a float,
etc. For OSA types that have no direct Python counterpart this module declares
classes. Packing and unpacking instances of these classes is handled
An object specifier is essentially an address of an object implemented in an
Apple Event server. An Apple Event specifier is used as the direct object for an
Apple Event or as the argument of an optional parameter. The
module contains the base classes for OSA classes and properties, which are used
by the packages generated by
gensuitemodule to populate the classes and
properties in a given suite.
For reasons of backward compatibility, and for cases where you need to script an
application for which you have not generated the stub package this module also
contains object specifiers for a number of common OSA classes such as
This module has been removed in Python 3.x.
AEObjects module defines the following classes to represent Apple
Event descriptor data:
aetypesmodules have no support, i.e. anything that is not represented by the other classes here and that is not equivalent to a simple Python value.
AEText(script, style, text)
IntlText(script, language, text)
QDRectangle(v0, h0, v1, h1)
RGBColor(r, g, b)
"firs", first, or
Comparison(obj1, relo, obj2)
The following classes are used as base classes by the generated stub packages to represent AppleScript classes and properties in Python:
wantto the 4-character OSA class code. Instances of subclasses of this class are equivalent to AppleScript Object Specifiers. Upon instantiation you should pass a selector in
which, and optionally a parent object in
whichto designate which property we are talking about. Instances of subclasses of this class are Object Specifiers.
ObjectSpecifier(want, form, seld[, fr])
NProperty, a general OSA Object Specifier. See the Apple Open Scripting Architecture documentation for the parameters. Note that this class is not abstract.