Open Media Library Platform
This commit is contained in:
commit
411ad5b16f
5849 changed files with 1778641 additions and 0 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,373 @@
|
|||
"""Suite Macintosh Connectivity Classes: Classes relating to Apple Macintosh personal computer connectivity
|
||||
Level 1, version 1
|
||||
|
||||
Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'macc'
|
||||
|
||||
class Macintosh_Connectivity_Clas_Events:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class ADB_address(aetools.ComponentItem):
|
||||
"""ADB address - Addresses a device connected via Apple Desktop Bus """
|
||||
want = 'cadb'
|
||||
class _Prop__3c_inheritance_3e_(aetools.NProperty):
|
||||
"""<inheritance> - inherits some of its properties from this class """
|
||||
which = 'c@#^'
|
||||
want = 'cadr'
|
||||
class _Prop_ID(aetools.NProperty):
|
||||
"""ID - the Apple Desktop Bus device ID """
|
||||
which = 'ID '
|
||||
want = 'shor'
|
||||
|
||||
ADB_addresses = ADB_address
|
||||
|
||||
class address_specification(aetools.ComponentItem):
|
||||
"""address specification - Unique designation of a device or service connected to this computer """
|
||||
want = 'cadr'
|
||||
class _Prop_conduit(aetools.NProperty):
|
||||
"""conduit - How the addressee is physically connected """
|
||||
which = 'pcon'
|
||||
want = 'econ'
|
||||
class _Prop_properties(aetools.NProperty):
|
||||
"""properties - property that allows getting and setting of multiple properties """
|
||||
which = 'pALL'
|
||||
want = 'reco'
|
||||
class _Prop_protocol(aetools.NProperty):
|
||||
"""protocol - How to talk to this addressee """
|
||||
which = 'pprt'
|
||||
want = 'epro'
|
||||
|
||||
address_specifications = address_specification
|
||||
|
||||
class AppleTalk_address(aetools.ComponentItem):
|
||||
"""AppleTalk address - Addresses a device or service connected via the AppleTalk protocol """
|
||||
want = 'cat '
|
||||
class _Prop_AppleTalk_machine(aetools.NProperty):
|
||||
"""AppleTalk machine - the machine name part of the address """
|
||||
which = 'patm'
|
||||
want = 'TEXT'
|
||||
class _Prop_AppleTalk_type(aetools.NProperty):
|
||||
"""AppleTalk type - the type part of the AppleTalk address """
|
||||
which = 'patt'
|
||||
want = 'TEXT'
|
||||
class _Prop_AppleTalk_zone(aetools.NProperty):
|
||||
"""AppleTalk zone - the zone part of the address """
|
||||
which = 'patz'
|
||||
want = 'TEXT'
|
||||
|
||||
AppleTalk_addresses = AppleTalk_address
|
||||
|
||||
class bus_slot(aetools.ComponentItem):
|
||||
"""bus slot - Addresses a PC, PCI, or NuBus card """
|
||||
want = 'cbus'
|
||||
|
||||
bus_slots = bus_slot
|
||||
|
||||
class device_specification(aetools.ComponentItem):
|
||||
"""device specification - A device connected to a computer """
|
||||
want = 'cdev'
|
||||
class _Prop_device_address(aetools.NProperty):
|
||||
"""device address - the address of the device """
|
||||
which = 'pdva'
|
||||
want = 'cadr'
|
||||
class _Prop_device_type(aetools.NProperty):
|
||||
"""device type - the kind of device """
|
||||
which = 'pdvt'
|
||||
want = 'edvt'
|
||||
|
||||
device_specifications = device_specification
|
||||
|
||||
class Ethernet_address(aetools.ComponentItem):
|
||||
"""Ethernet address - Addresses a device by its Ethernet address """
|
||||
want = 'cen '
|
||||
|
||||
Ethernet_addresses = Ethernet_address
|
||||
|
||||
class FireWire_address(aetools.ComponentItem):
|
||||
"""FireWire address - Addresses a device on the FireWire bus """
|
||||
want = 'cfw '
|
||||
|
||||
FireWire_addresses = FireWire_address
|
||||
|
||||
class IP_address(aetools.ComponentItem):
|
||||
"""IP address - Addresses a device or service via the Internet Protocol (IP) """
|
||||
want = 'cip '
|
||||
class _Prop_DNS_form(aetools.NProperty):
|
||||
"""DNS form - the address in the form "apple.com" """
|
||||
which = 'pdns'
|
||||
want = 'TEXT'
|
||||
class _Prop_port(aetools.NProperty):
|
||||
"""port - the port number of the service or client being addressed """
|
||||
which = 'ppor'
|
||||
want = 'TEXT'
|
||||
|
||||
IP_addresses = IP_address
|
||||
|
||||
class LocalTalk_address(aetools.ComponentItem):
|
||||
"""LocalTalk address - Addresses a device by its LocalTalk address """
|
||||
want = 'clt '
|
||||
class _Prop_network(aetools.NProperty):
|
||||
"""network - the LocalTalk network number """
|
||||
which = 'pnet'
|
||||
want = 'shor'
|
||||
class _Prop_node(aetools.NProperty):
|
||||
"""node - the LocalTalk node number """
|
||||
which = 'pnod'
|
||||
want = 'shor'
|
||||
class _Prop_socket(aetools.NProperty):
|
||||
"""socket - the LocalTalk socket number """
|
||||
which = 'psoc'
|
||||
want = 'shor'
|
||||
|
||||
LocalTalk_addresses = LocalTalk_address
|
||||
|
||||
class SCSI_address(aetools.ComponentItem):
|
||||
"""SCSI address - Addresses a SCSI device """
|
||||
want = 'cscs'
|
||||
class _Prop_LUN(aetools.NProperty):
|
||||
"""LUN - the SCSI logical unit number """
|
||||
which = 'pslu'
|
||||
want = 'shor'
|
||||
class _Prop_SCSI_bus(aetools.NProperty):
|
||||
"""SCSI bus - the SCSI bus number """
|
||||
which = 'pscb'
|
||||
want = 'shor'
|
||||
|
||||
SCSI_addresses = SCSI_address
|
||||
|
||||
class Token_Ring_address(aetools.ComponentItem):
|
||||
"""Token Ring address - Addresses a device or service via the Token Ring protocol """
|
||||
want = 'ctok'
|
||||
|
||||
Token_Ring_addresses = Token_Ring_address
|
||||
|
||||
class USB_address(aetools.ComponentItem):
|
||||
"""USB address - Addresses a device on the Universal Serial Bus """
|
||||
want = 'cusb'
|
||||
class _Prop_name(aetools.NProperty):
|
||||
"""name - the USB device name """
|
||||
which = 'pnam'
|
||||
want = 'TEXT'
|
||||
|
||||
USB_Addresses = USB_address
|
||||
ADB_address._superclassnames = ['address_specification']
|
||||
ADB_address._privpropdict = {
|
||||
'ID' : _Prop_ID,
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
}
|
||||
ADB_address._privelemdict = {
|
||||
}
|
||||
address_specification._superclassnames = []
|
||||
address_specification._privpropdict = {
|
||||
'conduit' : _Prop_conduit,
|
||||
'properties' : _Prop_properties,
|
||||
'protocol' : _Prop_protocol,
|
||||
}
|
||||
address_specification._privelemdict = {
|
||||
}
|
||||
AppleTalk_address._superclassnames = ['address_specification']
|
||||
AppleTalk_address._privpropdict = {
|
||||
'AppleTalk_machine' : _Prop_AppleTalk_machine,
|
||||
'AppleTalk_type' : _Prop_AppleTalk_type,
|
||||
'AppleTalk_zone' : _Prop_AppleTalk_zone,
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
}
|
||||
AppleTalk_address._privelemdict = {
|
||||
}
|
||||
bus_slot._superclassnames = ['address_specification']
|
||||
bus_slot._privpropdict = {
|
||||
'ID' : _Prop_ID,
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
}
|
||||
bus_slot._privelemdict = {
|
||||
}
|
||||
device_specification._superclassnames = []
|
||||
device_specification._privpropdict = {
|
||||
'device_address' : _Prop_device_address,
|
||||
'device_type' : _Prop_device_type,
|
||||
'properties' : _Prop_properties,
|
||||
}
|
||||
device_specification._privelemdict = {
|
||||
}
|
||||
Ethernet_address._superclassnames = ['address_specification']
|
||||
Ethernet_address._privpropdict = {
|
||||
'ID' : _Prop_ID,
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
}
|
||||
Ethernet_address._privelemdict = {
|
||||
}
|
||||
FireWire_address._superclassnames = ['address_specification']
|
||||
FireWire_address._privpropdict = {
|
||||
'ID' : _Prop_ID,
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
}
|
||||
FireWire_address._privelemdict = {
|
||||
}
|
||||
IP_address._superclassnames = ['address_specification']
|
||||
IP_address._privpropdict = {
|
||||
'DNS_form' : _Prop_DNS_form,
|
||||
'ID' : _Prop_ID,
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
'port' : _Prop_port,
|
||||
}
|
||||
IP_address._privelemdict = {
|
||||
}
|
||||
LocalTalk_address._superclassnames = ['address_specification']
|
||||
LocalTalk_address._privpropdict = {
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
'network' : _Prop_network,
|
||||
'node' : _Prop_node,
|
||||
'socket' : _Prop_socket,
|
||||
}
|
||||
LocalTalk_address._privelemdict = {
|
||||
}
|
||||
SCSI_address._superclassnames = ['address_specification']
|
||||
SCSI_address._privpropdict = {
|
||||
'ID' : _Prop_ID,
|
||||
'LUN' : _Prop_LUN,
|
||||
'SCSI_bus' : _Prop_SCSI_bus,
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
}
|
||||
SCSI_address._privelemdict = {
|
||||
}
|
||||
Token_Ring_address._superclassnames = ['address_specification']
|
||||
Token_Ring_address._privpropdict = {
|
||||
'ID' : _Prop_ID,
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
}
|
||||
Token_Ring_address._privelemdict = {
|
||||
}
|
||||
USB_address._superclassnames = ['address_specification']
|
||||
USB_address._privpropdict = {
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
'name' : _Prop_name,
|
||||
}
|
||||
USB_address._privelemdict = {
|
||||
}
|
||||
_Enum_econ = {
|
||||
'ADB' : 'eadb', #
|
||||
'printer_port' : 'ecpp', #
|
||||
'modem_port' : 'ecmp', #
|
||||
'modem_printer_port' : 'empp', #
|
||||
'LocalTalk' : 'eclt', #
|
||||
'Ethernet' : 'ecen', #
|
||||
'Token_Ring' : 'etok', #
|
||||
'SCSI' : 'ecsc', #
|
||||
'USB' : 'ecus', #
|
||||
'FireWire' : 'ecfw', #
|
||||
'infrared' : 'ecir', #
|
||||
'PC_card' : 'ecpc', #
|
||||
'PCI_bus' : 'ecpi', #
|
||||
'NuBus' : 'enub', #
|
||||
'PDS_slot' : 'ecpd', #
|
||||
'Comm_slot' : 'eccm', #
|
||||
'monitor_out' : 'ecmn', #
|
||||
'video_out' : 'ecvo', #
|
||||
'video_in' : 'ecvi', #
|
||||
'audio_out' : 'ecao', #
|
||||
'audio_line_in' : 'ecai', #
|
||||
'audio_line_out' : 'ecal', #
|
||||
'microphone' : 'ecmi', #
|
||||
}
|
||||
|
||||
_Enum_edvt = {
|
||||
'hard_disk_drive' : 'ehd ', #
|
||||
'floppy_disk_drive' : 'efd ', #
|
||||
'CD_ROM_drive' : 'ecd ', #
|
||||
'DVD_drive' : 'edvd', #
|
||||
'storage_device' : 'edst', #
|
||||
'keyboard' : 'ekbd', #
|
||||
'mouse' : 'emou', #
|
||||
'trackball' : 'etrk', #
|
||||
'trackpad' : 'edtp', #
|
||||
'pointing_device' : 'edpd', #
|
||||
'video_monitor' : 'edvm', #
|
||||
'LCD_display' : 'edlc', #
|
||||
'display' : 'edds', #
|
||||
'modem' : 'edmm', #
|
||||
'PC_card' : 'ecpc', #
|
||||
'PCI_card' : 'edpi', #
|
||||
'NuBus_card' : 'ednb', #
|
||||
'printer' : 'edpr', #
|
||||
'speakers' : 'edsp', #
|
||||
'microphone' : 'ecmi', #
|
||||
}
|
||||
|
||||
_Enum_epro = {
|
||||
'serial' : 'epsr', #
|
||||
'AppleTalk' : 'epat', #
|
||||
'IP' : 'epip', #
|
||||
'SCSI' : 'ecsc', #
|
||||
'ADB' : 'eadb', #
|
||||
'FireWire' : 'ecfw', #
|
||||
'IrDA' : 'epir', #
|
||||
'IRTalk' : 'epit', #
|
||||
'USB' : 'ecus', #
|
||||
'PC_card' : 'ecpc', #
|
||||
'PCI_bus' : 'ecpi', #
|
||||
'NuBus' : 'enub', #
|
||||
'bus' : 'ebus', #
|
||||
'Macintosh_video' : 'epmv', #
|
||||
'SVGA' : 'epsg', #
|
||||
'S_video' : 'epsv', #
|
||||
'analog_audio' : 'epau', #
|
||||
'digital_audio' : 'epda', #
|
||||
'PostScript' : 'epps', #
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'cadb' : ADB_address,
|
||||
'cadr' : address_specification,
|
||||
'cat ' : AppleTalk_address,
|
||||
'cbus' : bus_slot,
|
||||
'cdev' : device_specification,
|
||||
'cen ' : Ethernet_address,
|
||||
'cfw ' : FireWire_address,
|
||||
'cip ' : IP_address,
|
||||
'clt ' : LocalTalk_address,
|
||||
'cscs' : SCSI_address,
|
||||
'ctok' : Token_Ring_address,
|
||||
'cusb' : USB_address,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'ID ' : _Prop_ID,
|
||||
'c@#^' : _Prop__3c_inheritance_3e_,
|
||||
'pALL' : _Prop_properties,
|
||||
'patm' : _Prop_AppleTalk_machine,
|
||||
'patt' : _Prop_AppleTalk_type,
|
||||
'patz' : _Prop_AppleTalk_zone,
|
||||
'pcon' : _Prop_conduit,
|
||||
'pdns' : _Prop_DNS_form,
|
||||
'pdva' : _Prop_device_address,
|
||||
'pdvt' : _Prop_device_type,
|
||||
'pnam' : _Prop_name,
|
||||
'pnet' : _Prop_network,
|
||||
'pnod' : _Prop_node,
|
||||
'ppor' : _Prop_port,
|
||||
'pprt' : _Prop_protocol,
|
||||
'pscb' : _Prop_SCSI_bus,
|
||||
'pslu' : _Prop_LUN,
|
||||
'psoc' : _Prop_socket,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
'econ' : _Enum_econ,
|
||||
'edvt' : _Enum_edvt,
|
||||
'epro' : _Enum_epro,
|
||||
}
|
||||
|
|
@ -0,0 +1,417 @@
|
|||
"""Suite QuickDraw Graphics Suite: A set of basic classes for graphics
|
||||
Level 1, version 1
|
||||
|
||||
Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'qdrw'
|
||||
|
||||
class QuickDraw_Graphics_Suite_Events:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class arc(aetools.ComponentItem):
|
||||
"""arc - An arc """
|
||||
want = 'carc'
|
||||
class _Prop_arc_angle(aetools.NProperty):
|
||||
"""arc angle - the angle of the arc in degrees """
|
||||
which = 'parc'
|
||||
want = 'fixd'
|
||||
class _Prop_bounds(aetools.NProperty):
|
||||
"""bounds - the smallest rectangle that contains the entire arc """
|
||||
which = 'pbnd'
|
||||
want = 'qdrt'
|
||||
class _Prop_definition_rect(aetools.NProperty):
|
||||
"""definition rect - the rectangle that contains the circle or oval used to define the arc """
|
||||
which = 'pdrt'
|
||||
want = 'qdrt'
|
||||
class _Prop_fill_color(aetools.NProperty):
|
||||
"""fill color - the fill color """
|
||||
which = 'flcl'
|
||||
want = 'cRGB'
|
||||
class _Prop_fill_pattern(aetools.NProperty):
|
||||
"""fill pattern - the fill pattern """
|
||||
which = 'flpt'
|
||||
want = 'cpix'
|
||||
class _Prop_pen_color(aetools.NProperty):
|
||||
"""pen color - the pen color """
|
||||
which = 'ppcl'
|
||||
want = 'cRGB'
|
||||
class _Prop_pen_pattern(aetools.NProperty):
|
||||
"""pen pattern - the pen pattern """
|
||||
which = 'pppa'
|
||||
want = 'cpix'
|
||||
class _Prop_pen_width(aetools.NProperty):
|
||||
"""pen width - the pen width """
|
||||
which = 'ppwd'
|
||||
want = 'shor'
|
||||
class _Prop_start_angle(aetools.NProperty):
|
||||
"""start angle - the angle that defines the start of the arc, in degrees """
|
||||
which = 'pang'
|
||||
want = 'fixd'
|
||||
class _Prop_transfer_mode(aetools.NProperty):
|
||||
"""transfer mode - the transfer mode """
|
||||
which = 'pptm'
|
||||
want = 'tran'
|
||||
|
||||
arcs = arc
|
||||
|
||||
class drawing_area(aetools.ComponentItem):
|
||||
"""drawing area - Container for graphics and supporting information """
|
||||
want = 'cdrw'
|
||||
class _Prop_background_color(aetools.NProperty):
|
||||
"""background color - the color used to fill in unoccupied areas """
|
||||
which = 'pbcl'
|
||||
want = 'cRGB'
|
||||
class _Prop_background_pattern(aetools.NProperty):
|
||||
"""background pattern - the pattern used to fill in unoccupied areas """
|
||||
which = 'pbpt'
|
||||
want = 'cpix'
|
||||
class _Prop_color_table(aetools.NProperty):
|
||||
"""color table - the color table """
|
||||
which = 'cltb'
|
||||
want = 'clrt'
|
||||
class _Prop_default_font(aetools.NProperty):
|
||||
"""default font - the name of the default font for text objects """
|
||||
which = 'ptxf'
|
||||
want = 'itxt'
|
||||
class _Prop_default_location(aetools.NProperty):
|
||||
"""default location - the default location of each new graphic object """
|
||||
which = 'pnel'
|
||||
want = 'QDpt'
|
||||
class _Prop_default_size(aetools.NProperty):
|
||||
"""default size - the default size for text objects """
|
||||
which = 'ptps'
|
||||
want = 'fixd'
|
||||
class _Prop_name(aetools.NProperty):
|
||||
"""name - the name """
|
||||
which = 'pnam'
|
||||
want = 'itxt'
|
||||
class _Prop_ordering(aetools.NProperty):
|
||||
"""ordering - the ordered list of graphic objects in the drawing area """
|
||||
which = 'gobs'
|
||||
want = 'obj '
|
||||
class _Prop_pixel_depth(aetools.NProperty):
|
||||
"""pixel depth - the number of bits per pixel """
|
||||
which = 'pdpt'
|
||||
want = 'shor'
|
||||
class _Prop_style(aetools.NProperty):
|
||||
"""style - the default text style for text objects """
|
||||
which = 'txst'
|
||||
want = 'tsty'
|
||||
class _Prop_text_color(aetools.NProperty):
|
||||
"""text color - the default color for text objects """
|
||||
which = 'ptxc'
|
||||
want = 'cRGB'
|
||||
class _Prop_update_on_change(aetools.NProperty):
|
||||
"""update on change - Redraw after each change? """
|
||||
which = 'pupd'
|
||||
want = 'bool'
|
||||
class _Prop_writing_code(aetools.NProperty):
|
||||
"""writing code - the script system and language of text objects in the drawing area """
|
||||
which = 'psct'
|
||||
want = 'intl'
|
||||
|
||||
drawing_areas = drawing_area
|
||||
|
||||
class graphic_objects(aetools.ComponentItem):
|
||||
"""graphic objects - """
|
||||
want = 'cgob'
|
||||
|
||||
graphic_object = graphic_objects
|
||||
|
||||
class graphic_shapes(aetools.ComponentItem):
|
||||
"""graphic shapes - """
|
||||
want = 'cgsh'
|
||||
|
||||
graphic_shape = graphic_shapes
|
||||
|
||||
class graphic_text(aetools.ComponentItem):
|
||||
"""graphic text - A series of characters within a drawing area """
|
||||
want = 'cgtx'
|
||||
class _Prop_color(aetools.NProperty):
|
||||
"""color - the color of the first character """
|
||||
which = 'colr'
|
||||
want = 'cRGB'
|
||||
class _Prop_font(aetools.NProperty):
|
||||
"""font - the name of the font of the first character """
|
||||
which = 'font'
|
||||
want = 'ctxt'
|
||||
class _Prop_size(aetools.NProperty):
|
||||
"""size - the size in points of the first character """
|
||||
which = 'ptsz'
|
||||
want = 'fixd'
|
||||
class _Prop_uniform_styles(aetools.NProperty):
|
||||
"""uniform styles - the text styles that are uniform throughout the text """
|
||||
which = 'ustl'
|
||||
want = 'tsty'
|
||||
|
||||
class ovals(aetools.ComponentItem):
|
||||
"""ovals - """
|
||||
want = 'covl'
|
||||
|
||||
oval = ovals
|
||||
|
||||
class polygon(aetools.ComponentItem):
|
||||
"""polygon - A polygon """
|
||||
want = 'cpgn'
|
||||
class _Prop_point_list(aetools.NProperty):
|
||||
"""point list - the list of points that define the polygon """
|
||||
which = 'ptlt'
|
||||
want = 'QDpt'
|
||||
|
||||
polygons = polygon
|
||||
|
||||
class graphic_groups(aetools.ComponentItem):
|
||||
"""graphic groups - """
|
||||
want = 'cpic'
|
||||
|
||||
graphic_group = graphic_groups
|
||||
|
||||
class pixel_maps(aetools.ComponentItem):
|
||||
"""pixel maps - """
|
||||
want = 'cpix'
|
||||
|
||||
pixel_map = pixel_maps
|
||||
|
||||
class pixel(aetools.ComponentItem):
|
||||
"""pixel - A pixel """
|
||||
want = 'cpxl'
|
||||
|
||||
pixels = pixel
|
||||
|
||||
class rectangles(aetools.ComponentItem):
|
||||
"""rectangles - """
|
||||
want = 'crec'
|
||||
|
||||
rectangle = rectangles
|
||||
|
||||
class rounded_rectangle(aetools.ComponentItem):
|
||||
"""rounded rectangle - A rounded rectangle """
|
||||
want = 'crrc'
|
||||
class _Prop_corner_curve_height(aetools.NProperty):
|
||||
"""corner curve height - the height of the oval used to define the shape of the rounded corners """
|
||||
which = 'pchd'
|
||||
want = 'shor'
|
||||
class _Prop_corner_curve_width(aetools.NProperty):
|
||||
"""corner curve width - the width of the oval used to define the shape of the rounded corners """
|
||||
which = 'pcwd'
|
||||
want = 'shor'
|
||||
|
||||
rounded_rectangles = rounded_rectangle
|
||||
|
||||
class graphic_line(aetools.ComponentItem):
|
||||
"""graphic line - A graphic line """
|
||||
want = 'glin'
|
||||
class _Prop_arrow_style(aetools.NProperty):
|
||||
"""arrow style - the arrow style """
|
||||
which = 'arro'
|
||||
want = 'arro'
|
||||
class _Prop_dash_style(aetools.NProperty):
|
||||
"""dash style - the dash style """
|
||||
which = 'pdst'
|
||||
want = 'tdas'
|
||||
class _Prop_end_point(aetools.NProperty):
|
||||
"""end point - the ending point of the line """
|
||||
which = 'pend'
|
||||
want = 'QDpt'
|
||||
class _Prop_start_point(aetools.NProperty):
|
||||
"""start point - the starting point of the line """
|
||||
which = 'pstp'
|
||||
want = 'QDpt'
|
||||
|
||||
graphic_lines = graphic_line
|
||||
arc._superclassnames = []
|
||||
arc._privpropdict = {
|
||||
'arc_angle' : _Prop_arc_angle,
|
||||
'bounds' : _Prop_bounds,
|
||||
'definition_rect' : _Prop_definition_rect,
|
||||
'fill_color' : _Prop_fill_color,
|
||||
'fill_pattern' : _Prop_fill_pattern,
|
||||
'pen_color' : _Prop_pen_color,
|
||||
'pen_pattern' : _Prop_pen_pattern,
|
||||
'pen_width' : _Prop_pen_width,
|
||||
'start_angle' : _Prop_start_angle,
|
||||
'transfer_mode' : _Prop_transfer_mode,
|
||||
}
|
||||
arc._privelemdict = {
|
||||
}
|
||||
drawing_area._superclassnames = []
|
||||
drawing_area._privpropdict = {
|
||||
'background_color' : _Prop_background_color,
|
||||
'background_pattern' : _Prop_background_pattern,
|
||||
'color_table' : _Prop_color_table,
|
||||
'default_font' : _Prop_default_font,
|
||||
'default_location' : _Prop_default_location,
|
||||
'default_size' : _Prop_default_size,
|
||||
'name' : _Prop_name,
|
||||
'ordering' : _Prop_ordering,
|
||||
'pixel_depth' : _Prop_pixel_depth,
|
||||
'style' : _Prop_style,
|
||||
'text_color' : _Prop_text_color,
|
||||
'update_on_change' : _Prop_update_on_change,
|
||||
'writing_code' : _Prop_writing_code,
|
||||
}
|
||||
drawing_area._privelemdict = {
|
||||
}
|
||||
graphic_objects._superclassnames = []
|
||||
graphic_objects._privpropdict = {
|
||||
}
|
||||
graphic_objects._privelemdict = {
|
||||
}
|
||||
graphic_shapes._superclassnames = []
|
||||
graphic_shapes._privpropdict = {
|
||||
}
|
||||
graphic_shapes._privelemdict = {
|
||||
}
|
||||
graphic_text._superclassnames = []
|
||||
graphic_text._privpropdict = {
|
||||
'color' : _Prop_color,
|
||||
'font' : _Prop_font,
|
||||
'size' : _Prop_size,
|
||||
'uniform_styles' : _Prop_uniform_styles,
|
||||
}
|
||||
graphic_text._privelemdict = {
|
||||
}
|
||||
ovals._superclassnames = []
|
||||
ovals._privpropdict = {
|
||||
}
|
||||
ovals._privelemdict = {
|
||||
}
|
||||
polygon._superclassnames = []
|
||||
polygon._privpropdict = {
|
||||
'point_list' : _Prop_point_list,
|
||||
}
|
||||
polygon._privelemdict = {
|
||||
}
|
||||
graphic_groups._superclassnames = []
|
||||
graphic_groups._privpropdict = {
|
||||
}
|
||||
graphic_groups._privelemdict = {
|
||||
}
|
||||
pixel_maps._superclassnames = []
|
||||
pixel_maps._privpropdict = {
|
||||
}
|
||||
pixel_maps._privelemdict = {
|
||||
}
|
||||
pixel._superclassnames = []
|
||||
pixel._privpropdict = {
|
||||
'color' : _Prop_color,
|
||||
}
|
||||
pixel._privelemdict = {
|
||||
}
|
||||
rectangles._superclassnames = []
|
||||
rectangles._privpropdict = {
|
||||
}
|
||||
rectangles._privelemdict = {
|
||||
}
|
||||
rounded_rectangle._superclassnames = []
|
||||
rounded_rectangle._privpropdict = {
|
||||
'corner_curve_height' : _Prop_corner_curve_height,
|
||||
'corner_curve_width' : _Prop_corner_curve_width,
|
||||
}
|
||||
rounded_rectangle._privelemdict = {
|
||||
}
|
||||
graphic_line._superclassnames = []
|
||||
graphic_line._privpropdict = {
|
||||
'arrow_style' : _Prop_arrow_style,
|
||||
'dash_style' : _Prop_dash_style,
|
||||
'end_point' : _Prop_end_point,
|
||||
'start_point' : _Prop_start_point,
|
||||
}
|
||||
graphic_line._privelemdict = {
|
||||
}
|
||||
_Enum_arro = {
|
||||
'no_arrow' : 'arno', # No arrow on line
|
||||
'arrow_at_start' : 'arst', # Arrow at start of line
|
||||
'arrow_at_end' : 'aren', # Arrow at end of line
|
||||
'arrow_at_both_ends' : 'arbo', # Arrow at both the start and the end of the line
|
||||
}
|
||||
|
||||
_Enum_tran = {
|
||||
'copy_pixels' : 'cpy ', #
|
||||
'not_copy_pixels' : 'ncpy', #
|
||||
'or_pixels' : 'or ', #
|
||||
'not_or_pixels' : 'ntor', #
|
||||
'bic_pixels' : 'bic ', #
|
||||
'not_bic_pixels' : 'nbic', #
|
||||
'xor_pixels' : 'xor ', #
|
||||
'not_xor_pixels' : 'nxor', #
|
||||
'add_over_pixels' : 'addo', #
|
||||
'add_pin_pixels' : 'addp', #
|
||||
'sub_over_pixels' : 'subo', #
|
||||
'sub_pin_pixels' : 'subp', #
|
||||
'ad_max_pixels' : 'admx', #
|
||||
'ad_min_pixels' : 'admn', #
|
||||
'blend_pixels' : 'blnd', #
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'carc' : arc,
|
||||
'cdrw' : drawing_area,
|
||||
'cgob' : graphic_objects,
|
||||
'cgsh' : graphic_shapes,
|
||||
'cgtx' : graphic_text,
|
||||
'covl' : ovals,
|
||||
'cpgn' : polygon,
|
||||
'cpic' : graphic_groups,
|
||||
'cpix' : pixel_maps,
|
||||
'cpxl' : pixel,
|
||||
'crec' : rectangles,
|
||||
'crrc' : rounded_rectangle,
|
||||
'glin' : graphic_line,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'arro' : _Prop_arrow_style,
|
||||
'cltb' : _Prop_color_table,
|
||||
'colr' : _Prop_color,
|
||||
'flcl' : _Prop_fill_color,
|
||||
'flpt' : _Prop_fill_pattern,
|
||||
'font' : _Prop_font,
|
||||
'gobs' : _Prop_ordering,
|
||||
'pang' : _Prop_start_angle,
|
||||
'parc' : _Prop_arc_angle,
|
||||
'pbcl' : _Prop_background_color,
|
||||
'pbnd' : _Prop_bounds,
|
||||
'pbpt' : _Prop_background_pattern,
|
||||
'pchd' : _Prop_corner_curve_height,
|
||||
'pcwd' : _Prop_corner_curve_width,
|
||||
'pdpt' : _Prop_pixel_depth,
|
||||
'pdrt' : _Prop_definition_rect,
|
||||
'pdst' : _Prop_dash_style,
|
||||
'pend' : _Prop_end_point,
|
||||
'pnam' : _Prop_name,
|
||||
'pnel' : _Prop_default_location,
|
||||
'ppcl' : _Prop_pen_color,
|
||||
'pppa' : _Prop_pen_pattern,
|
||||
'pptm' : _Prop_transfer_mode,
|
||||
'ppwd' : _Prop_pen_width,
|
||||
'psct' : _Prop_writing_code,
|
||||
'pstp' : _Prop_start_point,
|
||||
'ptlt' : _Prop_point_list,
|
||||
'ptps' : _Prop_default_size,
|
||||
'ptsz' : _Prop_size,
|
||||
'ptxc' : _Prop_text_color,
|
||||
'ptxf' : _Prop_default_font,
|
||||
'pupd' : _Prop_update_on_change,
|
||||
'txst' : _Prop_style,
|
||||
'ustl' : _Prop_uniform_styles,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
'arro' : _Enum_arro,
|
||||
'tran' : _Enum_tran,
|
||||
}
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
"""Suite QuickDraw Graphics Supplemental Suite: Defines transformations of graphic objects
|
||||
Level 1, version 1
|
||||
|
||||
Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'qdsp'
|
||||
|
||||
class QuickDraw_Graphics_Suppleme_Events:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class drawing_area(aetools.ComponentItem):
|
||||
"""drawing area - Container for graphics and supporting information """
|
||||
want = 'cdrw'
|
||||
class _Prop_rotation(aetools.NProperty):
|
||||
"""rotation - the default rotation for objects in the drawing area """
|
||||
which = 'prot'
|
||||
want = 'trot'
|
||||
class _Prop_scale(aetools.NProperty):
|
||||
"""scale - the default scaling for objects in the drawing area """
|
||||
which = 'pscl'
|
||||
want = 'fixd'
|
||||
class _Prop_translation(aetools.NProperty):
|
||||
"""translation - the default repositioning for objects in the drawing area """
|
||||
which = 'ptrs'
|
||||
want = 'QDpt'
|
||||
|
||||
drawing_areas = drawing_area
|
||||
|
||||
class graphic_groups(aetools.ComponentItem):
|
||||
"""graphic groups - """
|
||||
want = 'cpic'
|
||||
|
||||
graphic_group = graphic_groups
|
||||
drawing_area._superclassnames = []
|
||||
drawing_area._privpropdict = {
|
||||
'rotation' : _Prop_rotation,
|
||||
'scale' : _Prop_scale,
|
||||
'translation' : _Prop_translation,
|
||||
}
|
||||
drawing_area._privelemdict = {
|
||||
}
|
||||
graphic_groups._superclassnames = []
|
||||
graphic_groups._privpropdict = {
|
||||
}
|
||||
graphic_groups._privelemdict = {
|
||||
}
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'cdrw' : drawing_area,
|
||||
'cpic' : graphic_groups,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'prot' : _Prop_rotation,
|
||||
'pscl' : _Prop_scale,
|
||||
'ptrs' : _Prop_translation,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
"""Suite Required Suite: Every application supports open, print, run, and quit
|
||||
Level 1, version 1
|
||||
|
||||
Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'reqd'
|
||||
|
||||
from _builtinSuites.builtin_Suite import *
|
||||
class Required_Suite_Events(builtin_Suite_Events):
|
||||
|
||||
pass
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
}
|
||||
|
|
@ -0,0 +1,738 @@
|
|||
"""Suite Standard Suite: Common terms for most applications
|
||||
Level 1, version 1
|
||||
|
||||
Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'core'
|
||||
|
||||
from _builtinSuites.builtin_Suite import *
|
||||
class Standard_Suite_Events(builtin_Suite_Events):
|
||||
|
||||
_argmap_class_info = {
|
||||
'in_' : 'wrcd',
|
||||
}
|
||||
|
||||
def class_info(self, _object=None, _attributes={}, **_arguments):
|
||||
"""class info: (optional) Get information about an object class
|
||||
Required argument: the object class about which information is requested
|
||||
Keyword argument in_: the human language and script system in which to return information
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: a record containing the object\xd5s properties and elements
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'qobj'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_class_info)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_close = {
|
||||
'saving' : 'savo',
|
||||
'saving_in' : 'kfil',
|
||||
}
|
||||
|
||||
def close(self, _object, _attributes={}, **_arguments):
|
||||
"""close: Close an object
|
||||
Required argument: the object to close
|
||||
Keyword argument saving: specifies whether changes should be saved before closing
|
||||
Keyword argument saving_in: the file or alias in which to save the object
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'clos'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_close)
|
||||
_arguments['----'] = _object
|
||||
|
||||
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_count = {
|
||||
'each' : 'kocl',
|
||||
}
|
||||
|
||||
def count(self, _object, _attributes={}, **_arguments):
|
||||
"""count: Return the number of elements of an object
|
||||
Required argument: the object whose elements are to be counted
|
||||
Keyword argument each: if specified, restricts counting to objects of this class
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: the number of elements
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'cnte'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_count)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_data_size = {
|
||||
'as' : 'rtyp',
|
||||
}
|
||||
|
||||
def data_size(self, _object, _attributes={}, **_arguments):
|
||||
"""data size: (optional) Return the size in bytes of an object
|
||||
Required argument: the object whose data size is to be returned
|
||||
Keyword argument as: the data type for which the size is calculated
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: the size of the object in bytes
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'dsiz'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_data_size)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def delete(self, _object, _attributes={}, **_arguments):
|
||||
"""delete: Delete an object from its container. Note this does not work on script variables, only on elements of application classes.
|
||||
Required argument: the element to delete
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'delo'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_duplicate = {
|
||||
'to' : 'insh',
|
||||
'with_properties' : 'prdt',
|
||||
}
|
||||
|
||||
def duplicate(self, _object, _attributes={}, **_arguments):
|
||||
"""duplicate: Duplicate one or more objects
|
||||
Required argument: the object(s) to duplicate
|
||||
Keyword argument to: the new location for the object(s)
|
||||
Keyword argument with_properties: the initial values for properties of the new object that are to be different from the original
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: to the duplicated object(s)
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'clon'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_duplicate)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_event_info = {
|
||||
'in_' : 'wrcd',
|
||||
}
|
||||
|
||||
def event_info(self, _object, _attributes={}, **_arguments):
|
||||
"""event info: (optional) Get information about the Apple events in a suite
|
||||
Required argument: the event class of the Apple events for which to return information
|
||||
Keyword argument in_: the human language and script system in which to return information
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: a record containing the events and their parameters
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'gtei'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_event_info)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def exists(self, _object, _attributes={}, **_arguments):
|
||||
"""exists: Verify if an object exists
|
||||
Required argument: the object in question
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: true if it exists, false if not
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'doex'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def handleBreakpoint(self, _object, _attributes={}, **_arguments):
|
||||
"""handleBreakpoint: return true to stop at a breakpoint
|
||||
Required argument: the call frame of the breakpoint
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: true to stop, false if not
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'brak'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_make = {
|
||||
'new' : 'kocl',
|
||||
'at' : 'insh',
|
||||
'with_data' : 'data',
|
||||
'with_properties' : 'prdt',
|
||||
}
|
||||
|
||||
def make(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""make: Make a new element
|
||||
Keyword argument new: the class of the new element
|
||||
Keyword argument at: the location at which to insert the element
|
||||
Keyword argument with_data: the initial data for the element
|
||||
Keyword argument with_properties: the initial values for the properties of the element
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: to the new object(s)
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'crel'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_make)
|
||||
if _no_object is not None: raise TypeError, 'No direct arg expected'
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_move = {
|
||||
'to' : 'insh',
|
||||
}
|
||||
|
||||
def move(self, _object, _attributes={}, **_arguments):
|
||||
"""move: Move object(s) to a new location
|
||||
Required argument: the object(s) to move
|
||||
Keyword argument to: the new location for the object(s)
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: to the object(s) after they have been moved
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'move'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_move)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def open(self, _object, _attributes={}, **_arguments):
|
||||
"""open: Open the specified object(s)
|
||||
Required argument: list of objects to open
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'aevt'
|
||||
_subcode = 'odoc'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def print_(self, _object, _attributes={}, **_arguments):
|
||||
"""print: Print the specified object(s)
|
||||
Required argument: list of objects to print
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'aevt'
|
||||
_subcode = 'pdoc'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_quit = {
|
||||
'saving' : 'savo',
|
||||
}
|
||||
|
||||
def quit(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""quit: Quit an application
|
||||
Keyword argument saving: specifies whether to save currently open documents
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'aevt'
|
||||
_subcode = 'quit'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_quit)
|
||||
if _no_object is not None: raise TypeError, 'No direct arg expected'
|
||||
|
||||
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def reopen(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""reopen: Reactivate a running application. Some applications will open a new untitled window if no window is open.
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'aevt'
|
||||
_subcode = 'rapp'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
if _no_object is not None: raise TypeError, 'No direct arg expected'
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def run(self, _no_object=None, _attributes={}, **_arguments):
|
||||
"""run: Run an application. Most applications will open an empty, untitled window.
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'aevt'
|
||||
_subcode = 'oapp'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
if _no_object is not None: raise TypeError, 'No direct arg expected'
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_save = {
|
||||
'in_' : 'kfil',
|
||||
'as' : 'fltp',
|
||||
}
|
||||
|
||||
def save(self, _object, _attributes={}, **_arguments):
|
||||
"""save: Save an object
|
||||
Required argument: the object to save, usually a document or window
|
||||
Keyword argument in_: the file or alias in which to save the object
|
||||
Keyword argument as: the file type of the document in which to save the data
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'save'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_save)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
def select(self, _object, _attributes={}, **_arguments):
|
||||
"""select: Make a selection
|
||||
Required argument: the object to select
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
"""
|
||||
_code = 'misc'
|
||||
_subcode = 'slct'
|
||||
|
||||
if _arguments: raise TypeError, 'No optional args expected'
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
_argmap_suite_info = {
|
||||
'in_' : 'wrcd',
|
||||
}
|
||||
|
||||
def suite_info(self, _object, _attributes={}, **_arguments):
|
||||
"""suite info: (optional) Get information about event suite(s)
|
||||
Required argument: the suite for which to return information
|
||||
Keyword argument in_: the human language and script system in which to return information
|
||||
Keyword argument _attributes: AppleEvent attribute dictionary
|
||||
Returns: a record containing the suites and their versions
|
||||
"""
|
||||
_code = 'core'
|
||||
_subcode = 'gtsi'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_suite_info)
|
||||
_arguments['----'] = _object
|
||||
|
||||
|
||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||
_arguments, _attributes)
|
||||
if _arguments.get('errn', 0):
|
||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
||||
# XXXX Optionally decode result
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
|
||||
|
||||
class alias(aetools.ComponentItem):
|
||||
"""alias - a file on a disk or server. The file must exist when you check the syntax of your script. """
|
||||
want = 'alis'
|
||||
class _Prop_POSIX_path(aetools.NProperty):
|
||||
"""POSIX path - the POSIX path of the file """
|
||||
which = 'psxp'
|
||||
want = 'TEXT'
|
||||
|
||||
aliases = alias
|
||||
|
||||
class application(aetools.ComponentItem):
|
||||
"""application - An application program """
|
||||
want = 'capp'
|
||||
class _Prop_clipboard(aetools.NProperty):
|
||||
"""clipboard - the contents of the clipboard for this application """
|
||||
which = 'pcli'
|
||||
want = '****'
|
||||
clipboard = _Prop_clipboard()
|
||||
class _Prop_frontmost(aetools.NProperty):
|
||||
"""frontmost - Is this the frontmost application? """
|
||||
which = 'pisf'
|
||||
want = 'bool'
|
||||
frontmost = _Prop_frontmost()
|
||||
class _Prop_name(aetools.NProperty):
|
||||
"""name - the name of the application """
|
||||
which = 'pnam'
|
||||
want = 'itxt'
|
||||
name = _Prop_name()
|
||||
class _Prop_selection(aetools.NProperty):
|
||||
"""selection - the selection visible to the user. Use the \xd4select\xd5 command to set a new selection; use \xd4contents of selection\xd5 to get or change information in the document. """
|
||||
which = 'sele'
|
||||
want = 'csel'
|
||||
selection = _Prop_selection()
|
||||
class _Prop_version(aetools.NProperty):
|
||||
"""version - the version of the application """
|
||||
which = 'vers'
|
||||
want = 'vers'
|
||||
version = _Prop_version()
|
||||
|
||||
applications = application
|
||||
|
||||
class insertion_points(aetools.ComponentItem):
|
||||
"""insertion points - """
|
||||
want = 'cins'
|
||||
|
||||
insertion_point = insertion_points
|
||||
|
||||
class selection_2d_object(aetools.ComponentItem):
|
||||
"""selection-object - A way to refer to the state of the current of the selection. Use the \xd4select\xd5 command to make a new selection. """
|
||||
want = 'csel'
|
||||
class _Prop_contents(aetools.NProperty):
|
||||
"""contents - the information currently selected. Use \xd4contents of selection\xd5 to get or change information in a document. """
|
||||
which = 'pcnt'
|
||||
want = '****'
|
||||
|
||||
class window(aetools.ComponentItem):
|
||||
"""window - A window """
|
||||
want = 'cwin'
|
||||
class _Prop_bounds(aetools.NProperty):
|
||||
"""bounds - the boundary rectangle for the window """
|
||||
which = 'pbnd'
|
||||
want = 'qdrt'
|
||||
class _Prop_closeable(aetools.NProperty):
|
||||
"""closeable - Does the window have a close box? """
|
||||
which = 'hclb'
|
||||
want = 'bool'
|
||||
class _Prop_floating(aetools.NProperty):
|
||||
"""floating - Does the window float? """
|
||||
which = 'isfl'
|
||||
want = 'bool'
|
||||
class _Prop_index(aetools.NProperty):
|
||||
"""index - the number of the window """
|
||||
which = 'pidx'
|
||||
want = 'long'
|
||||
class _Prop_modal(aetools.NProperty):
|
||||
"""modal - Is the window modal? """
|
||||
which = 'pmod'
|
||||
want = 'bool'
|
||||
class _Prop_resizable(aetools.NProperty):
|
||||
"""resizable - Is the window resizable? """
|
||||
which = 'prsz'
|
||||
want = 'bool'
|
||||
class _Prop_titled(aetools.NProperty):
|
||||
"""titled - Does the window have a title bar? """
|
||||
which = 'ptit'
|
||||
want = 'bool'
|
||||
class _Prop_visible(aetools.NProperty):
|
||||
"""visible - Is the window visible? """
|
||||
which = 'pvis'
|
||||
want = 'bool'
|
||||
class _Prop_zoomable(aetools.NProperty):
|
||||
"""zoomable - Is the window zoomable? """
|
||||
which = 'iszm'
|
||||
want = 'bool'
|
||||
class _Prop_zoomed(aetools.NProperty):
|
||||
"""zoomed - Is the window zoomed? """
|
||||
which = 'pzum'
|
||||
want = 'bool'
|
||||
|
||||
windows = window
|
||||
|
||||
class document(aetools.ComponentItem):
|
||||
"""document - A document of a scriptable application """
|
||||
want = 'docu'
|
||||
class _Prop_modified(aetools.NProperty):
|
||||
"""modified - Has the document been modified since the last save? """
|
||||
which = 'imod'
|
||||
want = 'bool'
|
||||
|
||||
documents = document
|
||||
|
||||
class file(aetools.ComponentItem):
|
||||
"""file - a file on a disk or server """
|
||||
want = 'file'
|
||||
|
||||
files = file
|
||||
alias._superclassnames = []
|
||||
alias._privpropdict = {
|
||||
'POSIX_path' : _Prop_POSIX_path,
|
||||
}
|
||||
alias._privelemdict = {
|
||||
}
|
||||
application._superclassnames = []
|
||||
application._privpropdict = {
|
||||
'clipboard' : _Prop_clipboard,
|
||||
'frontmost' : _Prop_frontmost,
|
||||
'name' : _Prop_name,
|
||||
'selection' : _Prop_selection,
|
||||
'version' : _Prop_version,
|
||||
}
|
||||
application._privelemdict = {
|
||||
}
|
||||
insertion_points._superclassnames = []
|
||||
insertion_points._privpropdict = {
|
||||
}
|
||||
insertion_points._privelemdict = {
|
||||
}
|
||||
selection_2d_object._superclassnames = []
|
||||
selection_2d_object._privpropdict = {
|
||||
'contents' : _Prop_contents,
|
||||
}
|
||||
selection_2d_object._privelemdict = {
|
||||
}
|
||||
window._superclassnames = []
|
||||
window._privpropdict = {
|
||||
'bounds' : _Prop_bounds,
|
||||
'closeable' : _Prop_closeable,
|
||||
'floating' : _Prop_floating,
|
||||
'index' : _Prop_index,
|
||||
'modal' : _Prop_modal,
|
||||
'resizable' : _Prop_resizable,
|
||||
'titled' : _Prop_titled,
|
||||
'visible' : _Prop_visible,
|
||||
'zoomable' : _Prop_zoomable,
|
||||
'zoomed' : _Prop_zoomed,
|
||||
}
|
||||
window._privelemdict = {
|
||||
}
|
||||
document._superclassnames = []
|
||||
document._privpropdict = {
|
||||
'modified' : _Prop_modified,
|
||||
}
|
||||
document._privelemdict = {
|
||||
}
|
||||
file._superclassnames = []
|
||||
file._privpropdict = {
|
||||
'POSIX_path' : _Prop_POSIX_path,
|
||||
}
|
||||
file._privelemdict = {
|
||||
}
|
||||
class _3c_(aetools.NComparison):
|
||||
"""< - Less than """
|
||||
class _3d_(aetools.NComparison):
|
||||
"""= - Equal """
|
||||
class _3e_(aetools.NComparison):
|
||||
"""> - Greater than """
|
||||
class contains(aetools.NComparison):
|
||||
"""contains - Contains """
|
||||
class ends_with(aetools.NComparison):
|
||||
"""ends with - Ends with """
|
||||
class starts_with(aetools.NComparison):
|
||||
"""starts with - Starts with """
|
||||
class _b2_(aetools.NComparison):
|
||||
"""\xb2 - Less than or equal to """
|
||||
class _b3_(aetools.NComparison):
|
||||
"""\xb3 - Greater than or equal to """
|
||||
_Enum_kfrm = {
|
||||
'index' : 'indx', # keyform designating indexed access
|
||||
'named' : 'name', # keyform designating named access
|
||||
'id' : 'ID ', # keyform designating access by unique identifier
|
||||
}
|
||||
|
||||
_Enum_savo = {
|
||||
'yes' : 'yes ', # Save objects now
|
||||
'no' : 'no ', # Do not save objects
|
||||
'ask' : 'ask ', # Ask the user whether to save
|
||||
}
|
||||
|
||||
_Enum_styl = {
|
||||
'plain' : 'plan', # Plain
|
||||
'bold' : 'bold', # Bold
|
||||
'italic' : 'ital', # Italic
|
||||
'outline' : 'outl', # Outline
|
||||
'shadow' : 'shad', # Shadow
|
||||
'underline' : 'undl', # Underline
|
||||
'superscript' : 'spsc', # Superscript
|
||||
'subscript' : 'sbsc', # Subscript
|
||||
'strikethrough' : 'strk', # Strikethrough
|
||||
'small_caps' : 'smcp', # Small caps
|
||||
'all_caps' : 'alcp', # All capital letters
|
||||
'all_lowercase' : 'lowc', # Lowercase
|
||||
'condensed' : 'cond', # Condensed
|
||||
'expanded' : 'pexp', # Expanded
|
||||
'hidden' : 'hidn', # Hidden
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'alis' : alias,
|
||||
'capp' : application,
|
||||
'cins' : insertion_points,
|
||||
'csel' : selection_2d_object,
|
||||
'cwin' : window,
|
||||
'docu' : document,
|
||||
'file' : file,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'hclb' : _Prop_closeable,
|
||||
'imod' : _Prop_modified,
|
||||
'isfl' : _Prop_floating,
|
||||
'iszm' : _Prop_zoomable,
|
||||
'pbnd' : _Prop_bounds,
|
||||
'pcli' : _Prop_clipboard,
|
||||
'pcnt' : _Prop_contents,
|
||||
'pidx' : _Prop_index,
|
||||
'pisf' : _Prop_frontmost,
|
||||
'pmod' : _Prop_modal,
|
||||
'pnam' : _Prop_name,
|
||||
'prsz' : _Prop_resizable,
|
||||
'psxp' : _Prop_POSIX_path,
|
||||
'ptit' : _Prop_titled,
|
||||
'pvis' : _Prop_visible,
|
||||
'pzum' : _Prop_zoomed,
|
||||
'sele' : _Prop_selection,
|
||||
'vers' : _Prop_version,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
'< ' : _3c_,
|
||||
'<= ' : _b2_,
|
||||
'= ' : _3d_,
|
||||
'> ' : _3e_,
|
||||
'>= ' : _b3_,
|
||||
'bgwt' : starts_with,
|
||||
'cont' : contains,
|
||||
'ends' : ends_with,
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
'kfrm' : _Enum_kfrm,
|
||||
'savo' : _Enum_savo,
|
||||
'styl' : _Enum_styl,
|
||||
}
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
"""Suite Table Suite: Classes for manipulating tables
|
||||
Level 1, version 1
|
||||
|
||||
Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'tbls'
|
||||
|
||||
class Table_Suite_Events:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class cell(aetools.ComponentItem):
|
||||
"""cell - A cell """
|
||||
want = 'ccel'
|
||||
class _Prop_formula(aetools.NProperty):
|
||||
"""formula - the formula of the cell """
|
||||
which = 'pfor'
|
||||
want = 'ctxt'
|
||||
class _Prop_protection(aetools.NProperty):
|
||||
"""protection - Indicates whether value or formula in the cell can be changed """
|
||||
which = 'ppro'
|
||||
want = 'prtn'
|
||||
|
||||
cells = cell
|
||||
|
||||
class column(aetools.ComponentItem):
|
||||
"""column - A column """
|
||||
want = 'ccol'
|
||||
class _Prop_name(aetools.NProperty):
|
||||
"""name - the name of the column """
|
||||
which = 'pnam'
|
||||
want = 'itxt'
|
||||
|
||||
columns = column
|
||||
|
||||
class rows(aetools.ComponentItem):
|
||||
"""rows - """
|
||||
want = 'crow'
|
||||
|
||||
row = rows
|
||||
|
||||
class tables(aetools.ComponentItem):
|
||||
"""tables - """
|
||||
want = 'ctbl'
|
||||
|
||||
table = tables
|
||||
cell._superclassnames = []
|
||||
cell._privpropdict = {
|
||||
'formula' : _Prop_formula,
|
||||
'protection' : _Prop_protection,
|
||||
}
|
||||
cell._privelemdict = {
|
||||
}
|
||||
column._superclassnames = []
|
||||
column._privpropdict = {
|
||||
'name' : _Prop_name,
|
||||
}
|
||||
column._privelemdict = {
|
||||
}
|
||||
rows._superclassnames = []
|
||||
rows._privpropdict = {
|
||||
}
|
||||
rows._privelemdict = {
|
||||
}
|
||||
tables._superclassnames = []
|
||||
tables._privpropdict = {
|
||||
}
|
||||
tables._privelemdict = {
|
||||
}
|
||||
_Enum_prtn = {
|
||||
'read_only' : 'nmod', # Can\xd5t change values or formulas
|
||||
'formulas_protected' : 'fpro', # Can changes values but not formulas
|
||||
'read_2f_write' : 'modf', # Can change values and formulas
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'ccel' : cell,
|
||||
'ccol' : column,
|
||||
'crow' : rows,
|
||||
'ctbl' : tables,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'pfor' : _Prop_formula,
|
||||
'pnam' : _Prop_name,
|
||||
'ppro' : _Prop_protection,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
'prtn' : _Enum_prtn,
|
||||
}
|
||||
|
|
@ -0,0 +1,224 @@
|
|||
"""Suite Text Suite: A set of basic classes for text processing
|
||||
Level 1, version 1
|
||||
|
||||
Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'TEXT'
|
||||
|
||||
class Text_Suite_Events:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class text_flow(aetools.ComponentItem):
|
||||
"""text flow - A contiguous block of text. Page layout applications call this a \xd4story.\xd5 """
|
||||
want = 'cflo'
|
||||
class _Prop__3c_inheritance_3e_(aetools.NProperty):
|
||||
"""<inheritance> - inherits some of its properties from this class """
|
||||
which = 'c@#^'
|
||||
want = 'ctxt'
|
||||
class _Prop_name(aetools.NProperty):
|
||||
"""name - the name """
|
||||
which = 'pnam'
|
||||
want = 'itxt'
|
||||
|
||||
text_flows = text_flow
|
||||
|
||||
class character(aetools.ComponentItem):
|
||||
"""character - A character """
|
||||
want = 'cha '
|
||||
|
||||
class line(aetools.ComponentItem):
|
||||
"""line - A line of text """
|
||||
want = 'clin'
|
||||
class _Prop_justification(aetools.NProperty):
|
||||
"""justification - the justification of the text """
|
||||
which = 'pjst'
|
||||
want = 'just'
|
||||
|
||||
lines = line
|
||||
|
||||
class paragraph(aetools.ComponentItem):
|
||||
"""paragraph - A paragraph """
|
||||
want = 'cpar'
|
||||
|
||||
paragraphs = paragraph
|
||||
|
||||
class text(aetools.ComponentItem):
|
||||
"""text - Text """
|
||||
want = 'ctxt'
|
||||
class _Prop_color(aetools.NProperty):
|
||||
"""color - the color of the first character """
|
||||
which = 'colr'
|
||||
want = 'cRGB'
|
||||
class _Prop_font(aetools.NProperty):
|
||||
"""font - the name of the font of the first character """
|
||||
which = 'font'
|
||||
want = 'ctxt'
|
||||
class _Prop_quoted_form(aetools.NProperty):
|
||||
"""quoted form - the text in quoted form """
|
||||
which = 'strq'
|
||||
want = 'ctxt'
|
||||
class _Prop_size(aetools.NProperty):
|
||||
"""size - the size in points of the first character """
|
||||
which = 'ptsz'
|
||||
want = 'fixd'
|
||||
class _Prop_style(aetools.NProperty):
|
||||
"""style - the text style of the first character of the first character """
|
||||
which = 'txst'
|
||||
want = 'tsty'
|
||||
class _Prop_uniform_styles(aetools.NProperty):
|
||||
"""uniform styles - the text styles that are uniform throughout the text """
|
||||
which = 'ustl'
|
||||
want = 'tsty'
|
||||
class _Prop_writing_code(aetools.NProperty):
|
||||
"""writing code - the script system and language """
|
||||
which = 'psct'
|
||||
want = 'intl'
|
||||
# element 'cha ' as ['indx']
|
||||
# element 'clin' as ['indx']
|
||||
# element 'cpar' as ['indx']
|
||||
# element 'ctxt' as ['indx']
|
||||
# element 'cwor' as ['indx']
|
||||
|
||||
class word(aetools.ComponentItem):
|
||||
"""word - A word """
|
||||
want = 'cwor'
|
||||
|
||||
words = word
|
||||
|
||||
class text_style_info(aetools.ComponentItem):
|
||||
"""text style info - On and Off styles of text run """
|
||||
want = 'tsty'
|
||||
class _Prop_off_styles(aetools.NProperty):
|
||||
"""off styles - the styles that are off for the text """
|
||||
which = 'ofst'
|
||||
want = 'styl'
|
||||
class _Prop_on_styles(aetools.NProperty):
|
||||
"""on styles - the styles that are on for the text """
|
||||
which = 'onst'
|
||||
want = 'styl'
|
||||
|
||||
text_style_infos = text_style_info
|
||||
text_flow._superclassnames = ['text']
|
||||
text_flow._privpropdict = {
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
'name' : _Prop_name,
|
||||
}
|
||||
text_flow._privelemdict = {
|
||||
}
|
||||
character._superclassnames = ['text']
|
||||
character._privpropdict = {
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
}
|
||||
character._privelemdict = {
|
||||
}
|
||||
line._superclassnames = ['text']
|
||||
line._privpropdict = {
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
'justification' : _Prop_justification,
|
||||
}
|
||||
line._privelemdict = {
|
||||
}
|
||||
paragraph._superclassnames = ['text']
|
||||
paragraph._privpropdict = {
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
}
|
||||
paragraph._privelemdict = {
|
||||
}
|
||||
text._superclassnames = []
|
||||
text._privpropdict = {
|
||||
'color' : _Prop_color,
|
||||
'font' : _Prop_font,
|
||||
'quoted_form' : _Prop_quoted_form,
|
||||
'size' : _Prop_size,
|
||||
'style' : _Prop_style,
|
||||
'uniform_styles' : _Prop_uniform_styles,
|
||||
'writing_code' : _Prop_writing_code,
|
||||
}
|
||||
text._privelemdict = {
|
||||
'character' : character,
|
||||
'line' : line,
|
||||
'paragraph' : paragraph,
|
||||
'text' : text,
|
||||
'word' : word,
|
||||
}
|
||||
word._superclassnames = ['text']
|
||||
word._privpropdict = {
|
||||
'_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
|
||||
}
|
||||
word._privelemdict = {
|
||||
}
|
||||
text_style_info._superclassnames = []
|
||||
text_style_info._privpropdict = {
|
||||
'off_styles' : _Prop_off_styles,
|
||||
'on_styles' : _Prop_on_styles,
|
||||
}
|
||||
text_style_info._privelemdict = {
|
||||
}
|
||||
_Enum_just = {
|
||||
'left' : 'left', # Align with left margin
|
||||
'right' : 'rght', # Align with right margin
|
||||
'center' : 'cent', # Align with center
|
||||
'full' : 'full', # Align with both left and right margins
|
||||
}
|
||||
|
||||
_Enum_styl = {
|
||||
'plain' : 'plan', # Plain
|
||||
'bold' : 'bold', # Bold
|
||||
'italic' : 'ital', # Italic
|
||||
'outline' : 'outl', # Outline
|
||||
'shadow' : 'shad', # Shadow
|
||||
'underline' : 'undl', # Underline
|
||||
'superscript' : 'spsc', # Superscript
|
||||
'subscript' : 'sbsc', # Subscript
|
||||
'strikethrough' : 'strk', # Strikethrough
|
||||
'small_caps' : 'smcp', # Small caps
|
||||
'all_caps' : 'alcp', # All capital letters
|
||||
'all_lowercase' : 'lowc', # Lowercase
|
||||
'condensed' : 'cond', # Condensed
|
||||
'expanded' : 'pexp', # Expanded
|
||||
'hidden' : 'hidn', # Hidden
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'cflo' : text_flow,
|
||||
'cha ' : character,
|
||||
'clin' : line,
|
||||
'cpar' : paragraph,
|
||||
'ctxt' : text,
|
||||
'cwor' : word,
|
||||
'tsty' : text_style_info,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'c@#^' : _Prop__3c_inheritance_3e_,
|
||||
'colr' : _Prop_color,
|
||||
'font' : _Prop_font,
|
||||
'ofst' : _Prop_off_styles,
|
||||
'onst' : _Prop_on_styles,
|
||||
'pjst' : _Prop_justification,
|
||||
'pnam' : _Prop_name,
|
||||
'psct' : _Prop_writing_code,
|
||||
'ptsz' : _Prop_size,
|
||||
'strq' : _Prop_quoted_form,
|
||||
'txst' : _Prop_style,
|
||||
'ustl' : _Prop_uniform_styles,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
'just' : _Enum_just,
|
||||
'styl' : _Enum_styl,
|
||||
}
|
||||
|
|
@ -0,0 +1,435 @@
|
|||
"""Suite Type Names Suite: Terminology for Registry data types
|
||||
Level 1, version 1
|
||||
|
||||
Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'tpnm'
|
||||
|
||||
class Type_Names_Suite_Events:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class PostScript_picture(aetools.ComponentItem):
|
||||
"""PostScript picture - """
|
||||
want = 'EPS '
|
||||
|
||||
class point(aetools.ComponentItem):
|
||||
"""point - point coordinates """
|
||||
want = 'QDpt'
|
||||
|
||||
class string(aetools.ComponentItem):
|
||||
"""string - a string of characters """
|
||||
want = 'TEXT'
|
||||
|
||||
plain_text = string
|
||||
|
||||
plain_text = string
|
||||
|
||||
class TIFF_picture(aetools.ComponentItem):
|
||||
"""TIFF picture - """
|
||||
want = 'TIFF'
|
||||
|
||||
class application_dictionary(aetools.ComponentItem):
|
||||
"""application dictionary - """
|
||||
want = 'aete'
|
||||
|
||||
class system_dictionary(aetools.ComponentItem):
|
||||
"""system dictionary - """
|
||||
want = 'aeut'
|
||||
|
||||
class color_table(aetools.ComponentItem):
|
||||
"""color table - """
|
||||
want = 'clrt'
|
||||
|
||||
class menu_item(aetools.ComponentItem):
|
||||
"""menu item - """
|
||||
want = 'cmen'
|
||||
|
||||
class menu(aetools.ComponentItem):
|
||||
"""menu - """
|
||||
want = 'cmnu'
|
||||
|
||||
class double_integer(aetools.ComponentItem):
|
||||
"""double integer - """
|
||||
want = 'comp'
|
||||
|
||||
class type_element_info(aetools.ComponentItem):
|
||||
"""type element info - """
|
||||
want = 'elin'
|
||||
|
||||
class type_event_info(aetools.ComponentItem):
|
||||
"""type event info - information about an event """
|
||||
want = 'evin'
|
||||
|
||||
class extended_real(aetools.ComponentItem):
|
||||
"""extended real - """
|
||||
want = 'exte'
|
||||
|
||||
class fixed(aetools.ComponentItem):
|
||||
"""fixed - a real number """
|
||||
want = 'fixd'
|
||||
|
||||
class fixed_point(aetools.ComponentItem):
|
||||
"""fixed point - """
|
||||
want = 'fpnt'
|
||||
|
||||
class fixed_rectangle(aetools.ComponentItem):
|
||||
"""fixed rectangle - """
|
||||
want = 'frct'
|
||||
|
||||
class type_class_info(aetools.ComponentItem):
|
||||
"""type class info - information about properties and elements of a class """
|
||||
want = 'gcli'
|
||||
|
||||
class location_reference(aetools.ComponentItem):
|
||||
"""location reference - """
|
||||
want = 'insl'
|
||||
|
||||
class long_fixed_point(aetools.ComponentItem):
|
||||
"""long fixed point - """
|
||||
want = 'lfpt'
|
||||
|
||||
class long_fixed_rectangle(aetools.ComponentItem):
|
||||
"""long fixed rectangle - """
|
||||
want = 'lfrc'
|
||||
|
||||
class long_fixed(aetools.ComponentItem):
|
||||
"""long fixed - """
|
||||
want = 'lfxd'
|
||||
|
||||
class long_point(aetools.ComponentItem):
|
||||
"""long point - """
|
||||
want = 'lpnt'
|
||||
|
||||
class long_rectangle(aetools.ComponentItem):
|
||||
"""long rectangle - """
|
||||
want = 'lrct'
|
||||
|
||||
class machine_location(aetools.ComponentItem):
|
||||
"""machine location - """
|
||||
want = 'mLoc'
|
||||
|
||||
class unsigned_integer(aetools.ComponentItem):
|
||||
"""unsigned integer - """
|
||||
want = 'magn'
|
||||
|
||||
class null(aetools.ComponentItem):
|
||||
"""null - """
|
||||
want = 'null'
|
||||
|
||||
class type_property_info(aetools.ComponentItem):
|
||||
"""type property info - """
|
||||
want = 'pinf'
|
||||
|
||||
class type_parameter_info(aetools.ComponentItem):
|
||||
"""type parameter info - """
|
||||
want = 'pmin'
|
||||
|
||||
class bounding_rectangle(aetools.ComponentItem):
|
||||
"""bounding rectangle - bounding rectangle """
|
||||
want = 'qdrt'
|
||||
|
||||
class small_integer(aetools.ComponentItem):
|
||||
"""small integer - """
|
||||
want = 'shor'
|
||||
|
||||
class small_real(aetools.ComponentItem):
|
||||
"""small real - """
|
||||
want = 'sing'
|
||||
|
||||
class scrap_styles(aetools.ComponentItem):
|
||||
"""scrap styles - """
|
||||
want = 'styl'
|
||||
|
||||
class type_suite_info(aetools.ComponentItem):
|
||||
"""type suite info - """
|
||||
want = 'suin'
|
||||
|
||||
class target_id(aetools.ComponentItem):
|
||||
"""target id - """
|
||||
want = 'targ'
|
||||
|
||||
class dash_style(aetools.ComponentItem):
|
||||
"""dash style - """
|
||||
want = 'tdas'
|
||||
|
||||
class pixel_map_record(aetools.ComponentItem):
|
||||
"""pixel map record - """
|
||||
want = 'tpmm'
|
||||
|
||||
class RGB16_color(aetools.ComponentItem):
|
||||
"""RGB16 color - """
|
||||
want = 'tr16'
|
||||
|
||||
class RGB96_color(aetools.ComponentItem):
|
||||
"""RGB96 color - """
|
||||
want = 'tr96'
|
||||
|
||||
class rotation(aetools.ComponentItem):
|
||||
"""rotation - """
|
||||
want = 'trot'
|
||||
|
||||
class version(aetools.ComponentItem):
|
||||
"""version - """
|
||||
want = 'vers'
|
||||
PostScript_picture._superclassnames = []
|
||||
PostScript_picture._privpropdict = {
|
||||
}
|
||||
PostScript_picture._privelemdict = {
|
||||
}
|
||||
point._superclassnames = []
|
||||
point._privpropdict = {
|
||||
}
|
||||
point._privelemdict = {
|
||||
}
|
||||
string._superclassnames = []
|
||||
string._privpropdict = {
|
||||
}
|
||||
string._privelemdict = {
|
||||
}
|
||||
TIFF_picture._superclassnames = []
|
||||
TIFF_picture._privpropdict = {
|
||||
}
|
||||
TIFF_picture._privelemdict = {
|
||||
}
|
||||
application_dictionary._superclassnames = []
|
||||
application_dictionary._privpropdict = {
|
||||
}
|
||||
application_dictionary._privelemdict = {
|
||||
}
|
||||
system_dictionary._superclassnames = []
|
||||
system_dictionary._privpropdict = {
|
||||
}
|
||||
system_dictionary._privelemdict = {
|
||||
}
|
||||
color_table._superclassnames = []
|
||||
color_table._privpropdict = {
|
||||
}
|
||||
color_table._privelemdict = {
|
||||
}
|
||||
menu_item._superclassnames = []
|
||||
menu_item._privpropdict = {
|
||||
}
|
||||
menu_item._privelemdict = {
|
||||
}
|
||||
menu._superclassnames = []
|
||||
menu._privpropdict = {
|
||||
}
|
||||
menu._privelemdict = {
|
||||
}
|
||||
double_integer._superclassnames = []
|
||||
double_integer._privpropdict = {
|
||||
}
|
||||
double_integer._privelemdict = {
|
||||
}
|
||||
type_element_info._superclassnames = []
|
||||
type_element_info._privpropdict = {
|
||||
}
|
||||
type_element_info._privelemdict = {
|
||||
}
|
||||
type_event_info._superclassnames = []
|
||||
type_event_info._privpropdict = {
|
||||
}
|
||||
type_event_info._privelemdict = {
|
||||
}
|
||||
extended_real._superclassnames = []
|
||||
extended_real._privpropdict = {
|
||||
}
|
||||
extended_real._privelemdict = {
|
||||
}
|
||||
fixed._superclassnames = []
|
||||
fixed._privpropdict = {
|
||||
}
|
||||
fixed._privelemdict = {
|
||||
}
|
||||
fixed_point._superclassnames = []
|
||||
fixed_point._privpropdict = {
|
||||
}
|
||||
fixed_point._privelemdict = {
|
||||
}
|
||||
fixed_rectangle._superclassnames = []
|
||||
fixed_rectangle._privpropdict = {
|
||||
}
|
||||
fixed_rectangle._privelemdict = {
|
||||
}
|
||||
type_class_info._superclassnames = []
|
||||
type_class_info._privpropdict = {
|
||||
}
|
||||
type_class_info._privelemdict = {
|
||||
}
|
||||
location_reference._superclassnames = []
|
||||
location_reference._privpropdict = {
|
||||
}
|
||||
location_reference._privelemdict = {
|
||||
}
|
||||
long_fixed_point._superclassnames = []
|
||||
long_fixed_point._privpropdict = {
|
||||
}
|
||||
long_fixed_point._privelemdict = {
|
||||
}
|
||||
long_fixed_rectangle._superclassnames = []
|
||||
long_fixed_rectangle._privpropdict = {
|
||||
}
|
||||
long_fixed_rectangle._privelemdict = {
|
||||
}
|
||||
long_fixed._superclassnames = []
|
||||
long_fixed._privpropdict = {
|
||||
}
|
||||
long_fixed._privelemdict = {
|
||||
}
|
||||
long_point._superclassnames = []
|
||||
long_point._privpropdict = {
|
||||
}
|
||||
long_point._privelemdict = {
|
||||
}
|
||||
long_rectangle._superclassnames = []
|
||||
long_rectangle._privpropdict = {
|
||||
}
|
||||
long_rectangle._privelemdict = {
|
||||
}
|
||||
machine_location._superclassnames = []
|
||||
machine_location._privpropdict = {
|
||||
}
|
||||
machine_location._privelemdict = {
|
||||
}
|
||||
unsigned_integer._superclassnames = []
|
||||
unsigned_integer._privpropdict = {
|
||||
}
|
||||
unsigned_integer._privelemdict = {
|
||||
}
|
||||
null._superclassnames = []
|
||||
null._privpropdict = {
|
||||
}
|
||||
null._privelemdict = {
|
||||
}
|
||||
type_property_info._superclassnames = []
|
||||
type_property_info._privpropdict = {
|
||||
}
|
||||
type_property_info._privelemdict = {
|
||||
}
|
||||
type_parameter_info._superclassnames = []
|
||||
type_parameter_info._privpropdict = {
|
||||
}
|
||||
type_parameter_info._privelemdict = {
|
||||
}
|
||||
bounding_rectangle._superclassnames = []
|
||||
bounding_rectangle._privpropdict = {
|
||||
}
|
||||
bounding_rectangle._privelemdict = {
|
||||
}
|
||||
small_integer._superclassnames = []
|
||||
small_integer._privpropdict = {
|
||||
}
|
||||
small_integer._privelemdict = {
|
||||
}
|
||||
small_real._superclassnames = []
|
||||
small_real._privpropdict = {
|
||||
}
|
||||
small_real._privelemdict = {
|
||||
}
|
||||
scrap_styles._superclassnames = []
|
||||
scrap_styles._privpropdict = {
|
||||
}
|
||||
scrap_styles._privelemdict = {
|
||||
}
|
||||
type_suite_info._superclassnames = []
|
||||
type_suite_info._privpropdict = {
|
||||
}
|
||||
type_suite_info._privelemdict = {
|
||||
}
|
||||
target_id._superclassnames = []
|
||||
target_id._privpropdict = {
|
||||
}
|
||||
target_id._privelemdict = {
|
||||
}
|
||||
dash_style._superclassnames = []
|
||||
dash_style._privpropdict = {
|
||||
}
|
||||
dash_style._privelemdict = {
|
||||
}
|
||||
pixel_map_record._superclassnames = []
|
||||
pixel_map_record._privpropdict = {
|
||||
}
|
||||
pixel_map_record._privelemdict = {
|
||||
}
|
||||
RGB16_color._superclassnames = []
|
||||
RGB16_color._privpropdict = {
|
||||
}
|
||||
RGB16_color._privelemdict = {
|
||||
}
|
||||
RGB96_color._superclassnames = []
|
||||
RGB96_color._privpropdict = {
|
||||
}
|
||||
RGB96_color._privelemdict = {
|
||||
}
|
||||
rotation._superclassnames = []
|
||||
rotation._privpropdict = {
|
||||
}
|
||||
rotation._privelemdict = {
|
||||
}
|
||||
version._superclassnames = []
|
||||
version._privpropdict = {
|
||||
}
|
||||
version._privelemdict = {
|
||||
}
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'EPS ' : PostScript_picture,
|
||||
'QDpt' : point,
|
||||
'TEXT' : string,
|
||||
'TIFF' : TIFF_picture,
|
||||
'aete' : application_dictionary,
|
||||
'aeut' : system_dictionary,
|
||||
'clrt' : color_table,
|
||||
'cmen' : menu_item,
|
||||
'cmnu' : menu,
|
||||
'comp' : double_integer,
|
||||
'elin' : type_element_info,
|
||||
'evin' : type_event_info,
|
||||
'exte' : extended_real,
|
||||
'fixd' : fixed,
|
||||
'fpnt' : fixed_point,
|
||||
'frct' : fixed_rectangle,
|
||||
'gcli' : type_class_info,
|
||||
'insl' : location_reference,
|
||||
'lfpt' : long_fixed_point,
|
||||
'lfrc' : long_fixed_rectangle,
|
||||
'lfxd' : long_fixed,
|
||||
'lpnt' : long_point,
|
||||
'lrct' : long_rectangle,
|
||||
'mLoc' : machine_location,
|
||||
'magn' : unsigned_integer,
|
||||
'null' : null,
|
||||
'pinf' : type_property_info,
|
||||
'pmin' : type_parameter_info,
|
||||
'qdrt' : bounding_rectangle,
|
||||
'shor' : small_integer,
|
||||
'sing' : small_real,
|
||||
'styl' : scrap_styles,
|
||||
'suin' : type_suite_info,
|
||||
'targ' : target_id,
|
||||
'tdas' : dash_style,
|
||||
'tpmm' : pixel_map_record,
|
||||
'tr16' : RGB16_color,
|
||||
'tr96' : RGB96_color,
|
||||
'trot' : rotation,
|
||||
'vers' : version,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
}
|
||||
|
|
@ -0,0 +1,475 @@
|
|||
"""
|
||||
Package generated from /Volumes/Sap/System Folder/Extensions/AppleScript
|
||||
Resource aeut resid 0 Standard Event Suites for English
|
||||
"""
|
||||
|
||||
from warnings import warnpy3k
|
||||
warnpy3k("In 3.x, the StdSuites package is removed.", stacklevel=2)
|
||||
|
||||
import aetools
|
||||
Error = aetools.Error
|
||||
import Text_Suite
|
||||
import AppleScript_Suite
|
||||
import Standard_Suite
|
||||
import Macintosh_Connectivity_Clas
|
||||
import QuickDraw_Graphics_Suite
|
||||
import QuickDraw_Graphics_Suppleme
|
||||
import Required_Suite
|
||||
import Table_Suite
|
||||
import Type_Names_Suite
|
||||
|
||||
|
||||
_code_to_module = {
|
||||
'TEXT' : Text_Suite,
|
||||
'ascr' : AppleScript_Suite,
|
||||
'core' : Standard_Suite,
|
||||
'macc' : Macintosh_Connectivity_Clas,
|
||||
'qdrw' : QuickDraw_Graphics_Suite,
|
||||
'qdsp' : QuickDraw_Graphics_Suppleme,
|
||||
'reqd' : Required_Suite,
|
||||
'tbls' : Table_Suite,
|
||||
'tpnm' : Type_Names_Suite,
|
||||
}
|
||||
|
||||
|
||||
|
||||
_code_to_fullname = {
|
||||
'TEXT' : ('StdSuites.Text_Suite', 'Text_Suite'),
|
||||
'ascr' : ('StdSuites.AppleScript_Suite', 'AppleScript_Suite'),
|
||||
'core' : ('StdSuites.Standard_Suite', 'Standard_Suite'),
|
||||
'macc' : ('StdSuites.Macintosh_Connectivity_Clas', 'Macintosh_Connectivity_Clas'),
|
||||
'qdrw' : ('StdSuites.QuickDraw_Graphics_Suite', 'QuickDraw_Graphics_Suite'),
|
||||
'qdsp' : ('StdSuites.QuickDraw_Graphics_Suppleme', 'QuickDraw_Graphics_Suppleme'),
|
||||
'reqd' : ('StdSuites.Required_Suite', 'Required_Suite'),
|
||||
'tbls' : ('StdSuites.Table_Suite', 'Table_Suite'),
|
||||
'tpnm' : ('StdSuites.Type_Names_Suite', 'Type_Names_Suite'),
|
||||
}
|
||||
|
||||
from Text_Suite import *
|
||||
from AppleScript_Suite import *
|
||||
from Standard_Suite import *
|
||||
from Macintosh_Connectivity_Clas import *
|
||||
from QuickDraw_Graphics_Suite import *
|
||||
from QuickDraw_Graphics_Suppleme import *
|
||||
from Required_Suite import *
|
||||
from Table_Suite import *
|
||||
from Type_Names_Suite import *
|
||||
|
||||
def getbaseclasses(v):
|
||||
if not getattr(v, '_propdict', None):
|
||||
v._propdict = {}
|
||||
v._elemdict = {}
|
||||
for superclassname in getattr(v, '_superclassnames', []):
|
||||
superclass = eval(superclassname)
|
||||
getbaseclasses(superclass)
|
||||
v._propdict.update(getattr(superclass, '_propdict', {}))
|
||||
v._elemdict.update(getattr(superclass, '_elemdict', {}))
|
||||
v._propdict.update(getattr(v, '_privpropdict', {}))
|
||||
v._elemdict.update(getattr(v, '_privelemdict', {}))
|
||||
|
||||
import StdSuites
|
||||
|
||||
#
|
||||
# Set property and element dictionaries now that all classes have been defined
|
||||
#
|
||||
getbaseclasses(graphic_group)
|
||||
getbaseclasses(oval)
|
||||
getbaseclasses(graphic_text)
|
||||
getbaseclasses(graphic_shape)
|
||||
getbaseclasses(drawing_area)
|
||||
getbaseclasses(graphic_line)
|
||||
getbaseclasses(polygon)
|
||||
getbaseclasses(pixel)
|
||||
getbaseclasses(rounded_rectangle)
|
||||
getbaseclasses(graphic_object)
|
||||
getbaseclasses(arc)
|
||||
getbaseclasses(pixel_map)
|
||||
getbaseclasses(rectangle)
|
||||
getbaseclasses(selection_2d_object)
|
||||
getbaseclasses(application)
|
||||
getbaseclasses(document)
|
||||
getbaseclasses(window)
|
||||
getbaseclasses(file)
|
||||
getbaseclasses(alias)
|
||||
getbaseclasses(insertion_point)
|
||||
getbaseclasses(character)
|
||||
getbaseclasses(paragraph)
|
||||
getbaseclasses(word)
|
||||
getbaseclasses(text_flow)
|
||||
getbaseclasses(text_style_info)
|
||||
getbaseclasses(line)
|
||||
getbaseclasses(text)
|
||||
getbaseclasses(AppleTalk_address)
|
||||
getbaseclasses(address_specification)
|
||||
getbaseclasses(Token_Ring_address)
|
||||
getbaseclasses(FireWire_address)
|
||||
getbaseclasses(bus_slot)
|
||||
getbaseclasses(SCSI_address)
|
||||
getbaseclasses(ADB_address)
|
||||
getbaseclasses(USB_address)
|
||||
getbaseclasses(device_specification)
|
||||
getbaseclasses(LocalTalk_address)
|
||||
getbaseclasses(IP_address)
|
||||
getbaseclasses(Ethernet_address)
|
||||
getbaseclasses(graphic_group)
|
||||
getbaseclasses(drawing_area)
|
||||
getbaseclasses(cell)
|
||||
getbaseclasses(column)
|
||||
getbaseclasses(table)
|
||||
getbaseclasses(row)
|
||||
getbaseclasses(small_integer)
|
||||
getbaseclasses(system_dictionary)
|
||||
getbaseclasses(color_table)
|
||||
getbaseclasses(fixed_point)
|
||||
getbaseclasses(plain_text)
|
||||
getbaseclasses(type_element_info)
|
||||
getbaseclasses(machine_location)
|
||||
getbaseclasses(PostScript_picture)
|
||||
getbaseclasses(type_suite_info)
|
||||
getbaseclasses(menu_item)
|
||||
getbaseclasses(pixel_map_record)
|
||||
getbaseclasses(small_real)
|
||||
getbaseclasses(null)
|
||||
getbaseclasses(rotation)
|
||||
getbaseclasses(fixed)
|
||||
getbaseclasses(long_point)
|
||||
getbaseclasses(target_id)
|
||||
getbaseclasses(type_property_info)
|
||||
getbaseclasses(type_parameter_info)
|
||||
getbaseclasses(long_fixed_point)
|
||||
getbaseclasses(bounding_rectangle)
|
||||
getbaseclasses(TIFF_picture)
|
||||
getbaseclasses(long_fixed)
|
||||
getbaseclasses(location_reference)
|
||||
getbaseclasses(version)
|
||||
getbaseclasses(RGB16_color)
|
||||
getbaseclasses(double_integer)
|
||||
getbaseclasses(type_event_info)
|
||||
getbaseclasses(point)
|
||||
getbaseclasses(application_dictionary)
|
||||
getbaseclasses(unsigned_integer)
|
||||
getbaseclasses(menu)
|
||||
getbaseclasses(fixed_rectangle)
|
||||
getbaseclasses(long_fixed_rectangle)
|
||||
getbaseclasses(type_class_info)
|
||||
getbaseclasses(RGB96_color)
|
||||
getbaseclasses(dash_style)
|
||||
getbaseclasses(scrap_styles)
|
||||
getbaseclasses(extended_real)
|
||||
getbaseclasses(long_rectangle)
|
||||
getbaseclasses(May)
|
||||
getbaseclasses(string)
|
||||
getbaseclasses(miles)
|
||||
getbaseclasses(number_or_date)
|
||||
getbaseclasses(October)
|
||||
getbaseclasses(event)
|
||||
getbaseclasses(Pascal_string)
|
||||
getbaseclasses(zone)
|
||||
getbaseclasses(picture)
|
||||
getbaseclasses(list_or_string)
|
||||
getbaseclasses(number)
|
||||
getbaseclasses(Tuesday)
|
||||
getbaseclasses(version)
|
||||
getbaseclasses(December)
|
||||
getbaseclasses(square_kilometres)
|
||||
getbaseclasses(reference)
|
||||
getbaseclasses(vector)
|
||||
getbaseclasses(weekday)
|
||||
getbaseclasses(Sunday)
|
||||
getbaseclasses(international_text)
|
||||
getbaseclasses(seconds)
|
||||
getbaseclasses(RGB_color)
|
||||
getbaseclasses(kilometres)
|
||||
getbaseclasses(styled_Unicode_text)
|
||||
getbaseclasses(missing_value)
|
||||
getbaseclasses(metres)
|
||||
getbaseclasses(number_or_string)
|
||||
getbaseclasses(list)
|
||||
getbaseclasses(linked_list)
|
||||
getbaseclasses(real)
|
||||
getbaseclasses(encoded_string)
|
||||
getbaseclasses(list_or_record)
|
||||
getbaseclasses(Monday)
|
||||
getbaseclasses(September)
|
||||
getbaseclasses(anything)
|
||||
getbaseclasses(property)
|
||||
getbaseclasses(reference_form)
|
||||
getbaseclasses(item)
|
||||
getbaseclasses(grams)
|
||||
getbaseclasses(record)
|
||||
getbaseclasses(empty_ae_name_)
|
||||
getbaseclasses(constant)
|
||||
getbaseclasses(square_miles)
|
||||
getbaseclasses(data)
|
||||
getbaseclasses(Unicode_text)
|
||||
getbaseclasses(yards)
|
||||
getbaseclasses(cubic_yards)
|
||||
getbaseclasses(pounds)
|
||||
getbaseclasses(cubic_centimetres)
|
||||
getbaseclasses(text)
|
||||
getbaseclasses(July)
|
||||
getbaseclasses(cubic_metres)
|
||||
getbaseclasses(styled_text)
|
||||
getbaseclasses(number_2c__date_or_text)
|
||||
getbaseclasses(feet)
|
||||
getbaseclasses(February)
|
||||
getbaseclasses(degrees_Celsius)
|
||||
getbaseclasses(keystroke)
|
||||
getbaseclasses(integer)
|
||||
getbaseclasses(degrees_Fahrenheit)
|
||||
getbaseclasses(list_2c__record_or_text)
|
||||
getbaseclasses(date)
|
||||
getbaseclasses(degrees_Kelvin)
|
||||
getbaseclasses(centimetres)
|
||||
getbaseclasses(writing_code)
|
||||
getbaseclasses(alias_or_string)
|
||||
getbaseclasses(writing_code_info)
|
||||
getbaseclasses(text_item)
|
||||
getbaseclasses(machine)
|
||||
getbaseclasses(type_class)
|
||||
getbaseclasses(preposition)
|
||||
getbaseclasses(Wednesday)
|
||||
getbaseclasses(upper_case)
|
||||
getbaseclasses(March)
|
||||
getbaseclasses(square_feet)
|
||||
getbaseclasses(November)
|
||||
getbaseclasses(quarts)
|
||||
getbaseclasses(alias)
|
||||
getbaseclasses(January)
|
||||
getbaseclasses(month)
|
||||
getbaseclasses(June)
|
||||
getbaseclasses(August)
|
||||
getbaseclasses(styled_Clipboard_text)
|
||||
getbaseclasses(gallons)
|
||||
getbaseclasses(cubic_inches)
|
||||
getbaseclasses(Friday)
|
||||
getbaseclasses(sound)
|
||||
getbaseclasses(class_)
|
||||
getbaseclasses(kilograms)
|
||||
getbaseclasses(script)
|
||||
getbaseclasses(litres)
|
||||
getbaseclasses(boolean)
|
||||
getbaseclasses(square_metres)
|
||||
getbaseclasses(inches)
|
||||
getbaseclasses(character)
|
||||
getbaseclasses(April)
|
||||
getbaseclasses(ounces)
|
||||
getbaseclasses(app)
|
||||
getbaseclasses(handler)
|
||||
getbaseclasses(C_string)
|
||||
getbaseclasses(Thursday)
|
||||
getbaseclasses(square_yards)
|
||||
getbaseclasses(cubic_feet)
|
||||
getbaseclasses(Saturday)
|
||||
getbaseclasses(file_specification)
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'cpic' : graphic_group,
|
||||
'covl' : oval,
|
||||
'cgtx' : graphic_text,
|
||||
'cgsh' : graphic_shape,
|
||||
'cdrw' : drawing_area,
|
||||
'glin' : graphic_line,
|
||||
'cpgn' : polygon,
|
||||
'cpxl' : pixel,
|
||||
'crrc' : rounded_rectangle,
|
||||
'cgob' : graphic_object,
|
||||
'carc' : arc,
|
||||
'cpix' : pixel_map,
|
||||
'crec' : rectangle,
|
||||
'csel' : selection_2d_object,
|
||||
'capp' : application,
|
||||
'docu' : document,
|
||||
'cwin' : window,
|
||||
'file' : file,
|
||||
'alis' : alias,
|
||||
'cins' : insertion_point,
|
||||
'cha ' : character,
|
||||
'cpar' : paragraph,
|
||||
'cwor' : word,
|
||||
'cflo' : text_flow,
|
||||
'tsty' : text_style_info,
|
||||
'clin' : line,
|
||||
'ctxt' : text,
|
||||
'cat ' : AppleTalk_address,
|
||||
'cadr' : address_specification,
|
||||
'ctok' : Token_Ring_address,
|
||||
'cfw ' : FireWire_address,
|
||||
'cbus' : bus_slot,
|
||||
'cscs' : SCSI_address,
|
||||
'cadb' : ADB_address,
|
||||
'cusb' : USB_address,
|
||||
'cdev' : device_specification,
|
||||
'clt ' : LocalTalk_address,
|
||||
'cip ' : IP_address,
|
||||
'cen ' : Ethernet_address,
|
||||
'cpic' : graphic_group,
|
||||
'cdrw' : drawing_area,
|
||||
'ccel' : cell,
|
||||
'ccol' : column,
|
||||
'ctbl' : table,
|
||||
'crow' : row,
|
||||
'shor' : small_integer,
|
||||
'aeut' : system_dictionary,
|
||||
'clrt' : color_table,
|
||||
'fpnt' : fixed_point,
|
||||
'TEXT' : plain_text,
|
||||
'elin' : type_element_info,
|
||||
'mLoc' : machine_location,
|
||||
'EPS ' : PostScript_picture,
|
||||
'suin' : type_suite_info,
|
||||
'cmen' : menu_item,
|
||||
'tpmm' : pixel_map_record,
|
||||
'sing' : small_real,
|
||||
'null' : null,
|
||||
'trot' : rotation,
|
||||
'fixd' : fixed,
|
||||
'lpnt' : long_point,
|
||||
'targ' : target_id,
|
||||
'pinf' : type_property_info,
|
||||
'pmin' : type_parameter_info,
|
||||
'lfpt' : long_fixed_point,
|
||||
'qdrt' : bounding_rectangle,
|
||||
'TIFF' : TIFF_picture,
|
||||
'lfxd' : long_fixed,
|
||||
'insl' : location_reference,
|
||||
'vers' : version,
|
||||
'tr16' : RGB16_color,
|
||||
'comp' : double_integer,
|
||||
'evin' : type_event_info,
|
||||
'QDpt' : point,
|
||||
'aete' : application_dictionary,
|
||||
'magn' : unsigned_integer,
|
||||
'cmnu' : menu,
|
||||
'frct' : fixed_rectangle,
|
||||
'lfrc' : long_fixed_rectangle,
|
||||
'gcli' : type_class_info,
|
||||
'tr96' : RGB96_color,
|
||||
'tdas' : dash_style,
|
||||
'styl' : scrap_styles,
|
||||
'exte' : extended_real,
|
||||
'lrct' : long_rectangle,
|
||||
'may ' : May,
|
||||
'TEXT' : string,
|
||||
'mile' : miles,
|
||||
'nd ' : number_or_date,
|
||||
'oct ' : October,
|
||||
'evnt' : event,
|
||||
'pstr' : Pascal_string,
|
||||
'zone' : zone,
|
||||
'PICT' : picture,
|
||||
'ls ' : list_or_string,
|
||||
'nmbr' : number,
|
||||
'tue ' : Tuesday,
|
||||
'vers' : version,
|
||||
'dec ' : December,
|
||||
'sqkm' : square_kilometres,
|
||||
'obj ' : reference,
|
||||
'vect' : vector,
|
||||
'wkdy' : weekday,
|
||||
'sun ' : Sunday,
|
||||
'itxt' : international_text,
|
||||
'scnd' : seconds,
|
||||
'cRGB' : RGB_color,
|
||||
'kmtr' : kilometres,
|
||||
'sutx' : styled_Unicode_text,
|
||||
'msng' : missing_value,
|
||||
'metr' : metres,
|
||||
'ns ' : number_or_string,
|
||||
'list' : list,
|
||||
'llst' : linked_list,
|
||||
'doub' : real,
|
||||
'encs' : encoded_string,
|
||||
'lr ' : list_or_record,
|
||||
'mon ' : Monday,
|
||||
'sep ' : September,
|
||||
'****' : anything,
|
||||
'prop' : property,
|
||||
'kfrm' : reference_form,
|
||||
'cobj' : item,
|
||||
'gram' : grams,
|
||||
'reco' : record,
|
||||
'undf' : empty_ae_name_,
|
||||
'enum' : constant,
|
||||
'sqmi' : square_miles,
|
||||
'rdat' : data,
|
||||
'utxt' : Unicode_text,
|
||||
'yard' : yards,
|
||||
'cyrd' : cubic_yards,
|
||||
'lbs ' : pounds,
|
||||
'ccmt' : cubic_centimetres,
|
||||
'ctxt' : text,
|
||||
'jul ' : July,
|
||||
'cmet' : cubic_metres,
|
||||
'STXT' : styled_text,
|
||||
'nds ' : number_2c__date_or_text,
|
||||
'feet' : feet,
|
||||
'feb ' : February,
|
||||
'degc' : degrees_Celsius,
|
||||
'kprs' : keystroke,
|
||||
'long' : integer,
|
||||
'degf' : degrees_Fahrenheit,
|
||||
'lrs ' : list_2c__record_or_text,
|
||||
'ldt ' : date,
|
||||
'degk' : degrees_Kelvin,
|
||||
'cmtr' : centimetres,
|
||||
'psct' : writing_code,
|
||||
'sf ' : alias_or_string,
|
||||
'citl' : writing_code_info,
|
||||
'citm' : text_item,
|
||||
'mach' : machine,
|
||||
'type' : type_class,
|
||||
'prep' : preposition,
|
||||
'wed ' : Wednesday,
|
||||
'case' : upper_case,
|
||||
'mar ' : March,
|
||||
'sqft' : square_feet,
|
||||
'nov ' : November,
|
||||
'qrts' : quarts,
|
||||
'alis' : alias,
|
||||
'jan ' : January,
|
||||
'mnth' : month,
|
||||
'jun ' : June,
|
||||
'aug ' : August,
|
||||
'styl' : styled_Clipboard_text,
|
||||
'galn' : gallons,
|
||||
'cuin' : cubic_inches,
|
||||
'fri ' : Friday,
|
||||
'snd ' : sound,
|
||||
'pcls' : class_,
|
||||
'kgrm' : kilograms,
|
||||
'scpt' : script,
|
||||
'litr' : litres,
|
||||
'bool' : boolean,
|
||||
'sqrm' : square_metres,
|
||||
'inch' : inches,
|
||||
'cha ' : character,
|
||||
'apr ' : April,
|
||||
'ozs ' : ounces,
|
||||
'capp' : app,
|
||||
'hand' : handler,
|
||||
'cstr' : C_string,
|
||||
'thu ' : Thursday,
|
||||
'sqyd' : square_yards,
|
||||
'cfet' : cubic_feet,
|
||||
'sat ' : Saturday,
|
||||
'fss ' : file_specification,
|
||||
}
|
||||
|
||||
|
||||
class StdSuites(Text_Suite_Events,
|
||||
AppleScript_Suite_Events,
|
||||
Standard_Suite_Events,
|
||||
Macintosh_Connectivity_Clas_Events,
|
||||
QuickDraw_Graphics_Suite_Events,
|
||||
QuickDraw_Graphics_Suppleme_Events,
|
||||
Required_Suite_Events,
|
||||
Table_Suite_Events,
|
||||
Type_Names_Suite_Events,
|
||||
aetools.TalkTo):
|
||||
_signature = 'ascr'
|
||||
|
||||
_moduleName = 'StdSuites'
|
||||
Loading…
Add table
Add a link
Reference in a new issue