The package with standard suites. These are used separately and as base classes for other suite packages (StdSuite is slightly magical, in that it is the gensuitemodule default base package).

This commit is contained in:
Jack Jansen 2000-08-17 22:14:57 +00:00
parent 87426b9f1b
commit ff792c2688
10 changed files with 4440 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,377 @@
"""Suite Macintosh Connectivity Classes: Classes relating to Apple Macintosh personal computer connectivity
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'macc'
class Macintosh_Connectivity_Clas_Events:
pass
class device_specification(aetools.ComponentItem):
"""device specification - A device connected to a computer """
want = 'cdev'
class properties(aetools.NProperty):
"""properties - property that allows getting and setting of multiple properties """
which = 'pALL'
want = 'reco'
class device_type(aetools.NProperty):
"""device type - the kind of device """
which = 'pdvt'
want = 'edvt'
class device_address(aetools.NProperty):
"""device address - the address of the device """
which = 'pdva'
want = 'cadr'
device_specifications = device_specification
class address_specification(aetools.ComponentItem):
"""address specification - Unique designation of a device or service connected to this computer """
want = 'cadr'
# repeated property properties property that allows getting and setting of multiple properties
class conduit(aetools.NProperty):
"""conduit - How the addressee is physically connected """
which = 'pcon'
want = 'econ'
class protocol(aetools.NProperty):
"""protocol - How to talk to this addressee """
which = 'pprt'
want = 'epro'
address_specifications = address_specification
class ADB_address(aetools.ComponentItem):
"""ADB address - Addresses a device connected via Apple Desktop Bus """
want = 'cadb'
class _3c_inheritance_3e_(aetools.NProperty):
"""<inheritance> - inherits some of its properties from this class """
which = 'c@#^'
want = 'cadr'
class ID(aetools.NProperty):
"""ID - the Apple Desktop Bus device ID """
which = 'ID '
want = 'shor'
ADB_addresses = ADB_address
class AppleTalk_address(aetools.ComponentItem):
"""AppleTalk address - Addresses a device or service connected via the AppleTalk protocol """
want = 'cat '
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class AppleTalk_machine(aetools.NProperty):
"""AppleTalk machine - the machine name part of the address """
which = 'patm'
want = 'TEXT'
class AppleTalk_zone(aetools.NProperty):
"""AppleTalk zone - the zone part of the address """
which = 'patz'
want = 'TEXT'
class AppleTalk_type(aetools.NProperty):
"""AppleTalk type - the type part of the AppleTalk address """
which = 'patt'
want = 'TEXT'
AppleTalk_addresses = AppleTalk_address
class bus_slot(aetools.ComponentItem):
"""bus slot - Addresses a PC, PCI, or NuBus card """
want = 'cbus'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
# repeated property ID the slot number
bus_slots = bus_slot
class Ethernet_address(aetools.ComponentItem):
"""Ethernet address - Addresses a device by its Ethernet address """
want = 'cen '
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
# repeated property ID the Ethernet address
Ethernet_addresses = Ethernet_address
class FireWire_address(aetools.ComponentItem):
"""FireWire address - Addresses a device on the FireWire bus """
want = 'cfw '
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
# repeated property ID the FireWire device ID
FireWire_addresses = FireWire_address
class IP_address(aetools.ComponentItem):
"""IP address - Addresses a device or service via the Internet Protocol (IP) """
want = 'cip '
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
# repeated property ID the address in the form "127.201.0.1"
class DNS_form(aetools.NProperty):
"""DNS form - the address in the form "apple.com" """
which = 'pdns'
want = 'TEXT'
class 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 '
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class network(aetools.NProperty):
"""network - the LocalTalk network number """
which = 'pnet'
want = 'shor'
class node(aetools.NProperty):
"""node - the LocalTalk node number """
which = 'pnod'
want = 'shor'
class 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'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class SCSI_bus(aetools.NProperty):
"""SCSI bus - the SCSI bus number """
which = 'pscb'
want = 'shor'
# repeated property ID the SCSI ID
class LUN(aetools.NProperty):
"""LUN - the SCSI logical unit number """
which = 'pslu'
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'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
# repeated property ID the Token Ring ID
Token_Ring_addresses = Token_Ring_address
class USB_address(aetools.ComponentItem):
"""USB address - Addresses a device on the Universal Serial Bus """
want = 'cusb'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class name(aetools.NProperty):
"""name - the USB device name """
which = 'pnam'
want = 'TEXT'
USB_Addresses = USB_address
device_specification._propdict = {
'properties' : properties,
'device_type' : device_type,
'device_address' : device_address,
}
device_specification._elemdict = {
}
address_specification._propdict = {
'properties' : properties,
'conduit' : conduit,
'protocol' : protocol,
}
address_specification._elemdict = {
}
ADB_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
}
ADB_address._elemdict = {
}
AppleTalk_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'AppleTalk_machine' : AppleTalk_machine,
'AppleTalk_zone' : AppleTalk_zone,
'AppleTalk_type' : AppleTalk_type,
}
AppleTalk_address._elemdict = {
}
bus_slot._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
}
bus_slot._elemdict = {
}
Ethernet_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
}
Ethernet_address._elemdict = {
}
FireWire_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
}
FireWire_address._elemdict = {
}
IP_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
'DNS_form' : DNS_form,
'port' : port,
}
IP_address._elemdict = {
}
LocalTalk_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'network' : network,
'node' : node,
'socket' : socket,
}
LocalTalk_address._elemdict = {
}
SCSI_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'SCSI_bus' : SCSI_bus,
'ID' : ID,
'LUN' : LUN,
}
SCSI_address._elemdict = {
}
Token_Ring_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
}
Token_Ring_address._elemdict = {
}
USB_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'name' : name,
}
USB_address._elemdict = {
}
_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_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_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 = {
'cen ' : Ethernet_address,
'clt ' : LocalTalk_address,
'cip ' : IP_address,
'cusb' : USB_address,
'cadb' : ADB_address,
'cscs' : SCSI_address,
'cbus' : bus_slot,
'cdev' : device_specification,
'ctok' : Token_Ring_address,
'cfw ' : FireWire_address,
'cadr' : address_specification,
'cat ' : AppleTalk_address,
}
_propdeclarations = {
'pnod' : node,
'pslu' : LUN,
'patm' : AppleTalk_machine,
'pdva' : device_address,
'pscb' : SCSI_bus,
'ppor' : port,
'pALL' : properties,
'ID ' : ID,
'c@#^' : _3c_inheritance_3e_,
'pdvt' : device_type,
'pnet' : network,
'patz' : AppleTalk_zone,
'pnam' : name,
'pcon' : conduit,
'pprt' : protocol,
'patt' : AppleTalk_type,
'psoc' : socket,
'pdns' : DNS_form,
}
_compdeclarations = {
}
_enumdeclarations = {
'econ' : _Enum_econ,
'epro' : _Enum_epro,
'edvt' : _Enum_edvt,
}

View file

@ -0,0 +1,405 @@
"""Suite QuickDraw Graphics Suite: A set of basic classes for graphics
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies: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 arc_angle(aetools.NProperty):
"""arc angle - the angle of the arc in degrees """
which = 'parc'
want = 'fixd'
class bounds(aetools.NProperty):
"""bounds - the smallest rectangle that contains the entire arc """
which = 'pbnd'
want = 'qdrt'
class definition_rect(aetools.NProperty):
"""definition rect - the rectangle that contains the circle or oval used to define the arc """
which = 'pdrt'
want = 'qdrt'
class fill_color(aetools.NProperty):
"""fill color - the fill color """
which = 'flcl'
want = 'cRGB'
class fill_pattern(aetools.NProperty):
"""fill pattern - the fill pattern """
which = 'flpt'
want = 'cpix'
class pen_color(aetools.NProperty):
"""pen color - the pen color """
which = 'ppcl'
want = 'cRGB'
class pen_pattern(aetools.NProperty):
"""pen pattern - the pen pattern """
which = 'pppa'
want = 'cpix'
class pen_width(aetools.NProperty):
"""pen width - the pen width """
which = 'ppwd'
want = 'shor'
class start_angle(aetools.NProperty):
"""start angle - the angle that defines the start of the arc, in degrees """
which = 'pang'
want = 'fixd'
class 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 background_color(aetools.NProperty):
"""background color - the color used to fill in unoccupied areas """
which = 'pbcl'
want = 'cRGB'
class background_pattern(aetools.NProperty):
"""background pattern - the pattern used to fill in unoccupied areas """
which = 'pbpt'
want = 'cpix'
class color_table(aetools.NProperty):
"""color table - the color table """
which = 'cltb'
want = 'clrt'
class ordering(aetools.NProperty):
"""ordering - the ordered list of graphic objects in the drawing area """
which = 'gobs'
want = 'obj '
class name(aetools.NProperty):
"""name - the name """
which = 'pnam'
want = 'itxt'
class default_location(aetools.NProperty):
"""default location - the default location of each new graphic object """
which = 'pnel'
want = 'QDpt'
class pixel_depth(aetools.NProperty):
"""pixel depth - the number of bits per pixel """
which = 'pdpt'
want = 'shor'
class writing_code(aetools.NProperty):
"""writing code - the script system and language of text objects in the drawing area """
which = 'psct'
want = 'intl'
class text_color(aetools.NProperty):
"""text color - the default color for text objects """
which = 'ptxc'
want = 'cRGB'
class default_font(aetools.NProperty):
"""default font - the name of the default font for text objects """
which = 'ptxf'
want = 'itxt'
class default_size(aetools.NProperty):
"""default size - the default size for text objects """
which = 'ptps'
want = 'fixd'
class style(aetools.NProperty):
"""style - the default text style for text objects """
which = 'txst'
want = 'tsty'
class update_on_change(aetools.NProperty):
"""update on change - Redraw after each change? """
which = 'pupd'
want = 'bool'
drawing_areas = drawing_area
class graphic_line(aetools.ComponentItem):
"""graphic line - A graphic line """
want = 'glin'
class start_point(aetools.NProperty):
"""start point - the starting point of the line """
which = 'pstp'
want = 'QDpt'
class end_point(aetools.NProperty):
"""end point - the ending point of the line """
which = 'pend'
want = 'QDpt'
class dash_style(aetools.NProperty):
"""dash style - the dash style """
which = 'pdst'
want = 'tdas'
class arrow_style(aetools.NProperty):
"""arrow style - the arrow style """
which = 'arro'
want = 'arro'
graphic_lines = graphic_line
class graphic_object(aetools.ComponentItem):
"""graphic object - A graphic object """
want = 'cgob'
graphic_objects = graphic_object
class graphic_shape(aetools.ComponentItem):
"""graphic shape - A graphic shape """
want = 'cgsh'
graphic_shapes = graphic_shape
class graphic_text(aetools.ComponentItem):
"""graphic text - A series of characters within a drawing area """
want = 'cgtx'
class color(aetools.NProperty):
"""color - the color of the first character """
which = 'colr'
want = 'cRGB'
class font(aetools.NProperty):
"""font - the name of the font of the first character """
which = 'font'
want = 'ctxt'
class size(aetools.NProperty):
"""size - the size in points of the first character """
which = 'ptsz'
want = 'fixd'
class uniform_styles(aetools.NProperty):
"""uniform styles - the text styles that are uniform throughout the text """
which = 'ustl'
want = 'tsty'
class graphic_group(aetools.ComponentItem):
"""graphic group - Group of graphics """
want = 'cpic'
graphic_groups = graphic_group
class oval(aetools.ComponentItem):
"""oval - An oval """
want = 'covl'
ovals = oval
class pixel(aetools.ComponentItem):
"""pixel - A pixel """
want = 'cpxl'
# repeated property color the color
pixels = pixel
class pixel_map(aetools.ComponentItem):
"""pixel map - A pixel map """
want = 'cpix'
pixel_maps = pixel_map
class polygon(aetools.ComponentItem):
"""polygon - A polygon """
want = 'cpgn'
class point_list(aetools.NProperty):
"""point list - the list of points that define the polygon """
which = 'ptlt'
want = 'QDpt'
polygons = polygon
class rectangle(aetools.ComponentItem):
"""rectangle - A rectangle """
want = 'crec'
rectangles = rectangle
class rounded_rectangle(aetools.ComponentItem):
"""rounded rectangle - A rounded rectangle """
want = 'crrc'
class 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 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
arc._propdict = {
'arc_angle' : arc_angle,
'bounds' : bounds,
'definition_rect' : definition_rect,
'fill_color' : fill_color,
'fill_pattern' : fill_pattern,
'pen_color' : pen_color,
'pen_pattern' : pen_pattern,
'pen_width' : pen_width,
'start_angle' : start_angle,
'transfer_mode' : transfer_mode,
}
arc._elemdict = {
}
drawing_area._propdict = {
'background_color' : background_color,
'background_pattern' : background_pattern,
'color_table' : color_table,
'ordering' : ordering,
'name' : name,
'default_location' : default_location,
'pixel_depth' : pixel_depth,
'writing_code' : writing_code,
'text_color' : text_color,
'default_font' : default_font,
'default_size' : default_size,
'style' : style,
'update_on_change' : update_on_change,
}
drawing_area._elemdict = {
}
graphic_line._propdict = {
'start_point' : start_point,
'end_point' : end_point,
'dash_style' : dash_style,
'arrow_style' : arrow_style,
}
graphic_line._elemdict = {
}
graphic_object._propdict = {
}
graphic_object._elemdict = {
}
graphic_shape._propdict = {
}
graphic_shape._elemdict = {
}
graphic_text._propdict = {
'color' : color,
'font' : font,
'size' : size,
'uniform_styles' : uniform_styles,
}
graphic_text._elemdict = {
}
graphic_group._propdict = {
}
graphic_group._elemdict = {
}
oval._propdict = {
}
oval._elemdict = {
}
pixel._propdict = {
'color' : color,
}
pixel._elemdict = {
}
pixel_map._propdict = {
}
pixel_map._elemdict = {
}
polygon._propdict = {
'point_list' : point_list,
}
polygon._elemdict = {
}
rectangle._propdict = {
}
rectangle._elemdict = {
}
rounded_rectangle._propdict = {
'corner_curve_height' : corner_curve_height,
'corner_curve_width' : corner_curve_width,
}
rounded_rectangle._elemdict = {
}
_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', #
}
_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
}
#
# Indices of types declared in this module
#
_classdeclarations = {
'crec' : rectangle,
'cpix' : pixel_map,
'carc' : arc,
'cgsh' : graphic_shape,
'cpxl' : pixel,
'crrc' : rounded_rectangle,
'cpgn' : polygon,
'cdrw' : drawing_area,
'cgob' : graphic_object,
'glin' : graphic_line,
'cgtx' : graphic_text,
'covl' : oval,
'cpic' : graphic_group,
}
_propdeclarations = {
'pend' : end_point,
'pupd' : update_on_change,
'pstp' : start_point,
'pdrt' : definition_rect,
'pnam' : name,
'pbcl' : background_color,
'pptm' : transfer_mode,
'pnel' : default_location,
'pdpt' : pixel_depth,
'gobs' : ordering,
'ustl' : uniform_styles,
'ptlt' : point_list,
'pdst' : dash_style,
'psct' : writing_code,
'txst' : style,
'font' : font,
'pchd' : corner_curve_height,
'arro' : arrow_style,
'ppwd' : pen_width,
'ptps' : default_size,
'ppcl' : pen_color,
'ptxf' : default_font,
'pcwd' : corner_curve_width,
'ptxc' : text_color,
'cltb' : color_table,
'pppa' : pen_pattern,
'pang' : start_angle,
'flpt' : fill_pattern,
'colr' : color,
'pbnd' : bounds,
'ptsz' : size,
'parc' : arc_angle,
'flcl' : fill_color,
'pbpt' : background_pattern,
}
_compdeclarations = {
}
_enumdeclarations = {
'tran' : _Enum_tran,
'arro' : _Enum_arro,
}

View file

@ -0,0 +1,71 @@
"""Suite QuickDraw Graphics Supplemental Suite: Defines transformations of graphic objects
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies: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 rotation(aetools.NProperty):
"""rotation - the default rotation for objects in the drawing area """
which = 'prot'
want = 'trot'
class scale(aetools.NProperty):
"""scale - the default scaling for objects in the drawing area """
which = 'pscl'
want = 'fixd'
class translation(aetools.NProperty):
"""translation - the default repositioning for objects in the drawing area """
which = 'ptrs'
want = 'QDpt'
drawing_areas = drawing_area
class graphic_group(aetools.ComponentItem):
"""graphic group - Group of graphics """
want = 'cpic'
graphic_groups = graphic_group
drawing_area._propdict = {
'rotation' : rotation,
'scale' : scale,
'translation' : translation,
}
drawing_area._elemdict = {
}
graphic_group._propdict = {
}
graphic_group._elemdict = {
}
#
# Indices of types declared in this module
#
_classdeclarations = {
'cpic' : graphic_group,
'cdrw' : drawing_area,
}
_propdeclarations = {
'prot' : rotation,
'pscl' : scale,
'ptrs' : translation,
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -0,0 +1,31 @@
"""Suite Required Suite: Every application supports open, print, run, and quit
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'reqd'
class Required_Suite_Events:
pass
#
# Indices of types declared in this module
#
_classdeclarations = {
}
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -0,0 +1,703 @@
"""Suite Standard Suite: Common terms for most applications
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'core'
class Standard_Suite_Events:
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.has_key('errn'):
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 != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.has_key('errn'):
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 != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.has_key('errn'):
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.has_key('errn'):
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 != None: raise TypeError, 'No direct arg expected'
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.has_key('errn'):
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 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.has_key('errn'):
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.has_key('errn'):
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.has_key('errn'):
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.has_key('errn'):
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.has_key('errn'):
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 != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.has_key('errn'):
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.has_key('errn'):
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 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.has_key('errn'):
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.has_key('errn'):
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.has_key('errn'):
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.has_key('errn'):
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.has_key('errn'):
raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result
if _arguments.has_key('----'):
return _arguments['----']
_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¹s 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.has_key('errn'):
raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result
if _arguments.has_key('----'):
return _arguments['----']
class application(aetools.ComponentItem):
"""application - An application program """
want = 'capp'
class name(aetools.NProperty):
"""name - the name of the application """
which = 'pnam'
want = 'itxt'
class frontmost(aetools.NProperty):
"""frontmost - Is this the frontmost application? """
which = 'pisf'
want = 'bool'
class selection(aetools.NProperty):
"""selection - the selection visible to the user. Use the Œselect¹ command to set a new selection; use Œcontents of selection¹ to get or change information in the document. """
which = 'sele'
want = 'csel'
class clipboard(aetools.NProperty):
"""clipboard - the contents of the clipboard for this application """
which = 'pcli'
want = '****'
class version(aetools.NProperty):
"""version - the version of the application """
which = 'vers'
want = 'vers'
applications = application
class document(aetools.ComponentItem):
"""document - A document of a scriptable application """
want = 'docu'
class 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 (or a file yet to be created) """
want = 'file'
class stationery(aetools.NProperty):
"""stationery - Is the file a stationery file? """
which = 'pspd'
want = 'bool'
files = file
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'
aliases = alias
class selection_2d_object(aetools.ComponentItem):
"""selection-object - A way to refer to the state of the current of the selection. Use the Œselect¹ command to make a new selection. """
want = 'csel'
class contents(aetools.NProperty):
"""contents - the information currently selected. Use Œcontents of selection¹ to get or change information in a document. """
which = 'pcnt'
want = '****'
class window(aetools.ComponentItem):
"""window - A window """
want = 'cwin'
class bounds(aetools.NProperty):
"""bounds - the boundary rectangle for the window """
which = 'pbnd'
want = 'qdrt'
class closeable(aetools.NProperty):
"""closeable - Does the window have a close box? """
which = 'hclb'
want = 'bool'
class titled(aetools.NProperty):
"""titled - Does the window have a title bar? """
which = 'ptit'
want = 'bool'
class index(aetools.NProperty):
"""index - the number of the window """
which = 'pidx'
want = 'long'
class floating(aetools.NProperty):
"""floating - Does the window float? """
which = 'isfl'
want = 'bool'
class modal(aetools.NProperty):
"""modal - Is the window modal? """
which = 'pmod'
want = 'bool'
class resizable(aetools.NProperty):
"""resizable - Is the window resizable? """
which = 'prsz'
want = 'bool'
class zoomable(aetools.NProperty):
"""zoomable - Is the window zoomable? """
which = 'iszm'
want = 'bool'
class zoomed(aetools.NProperty):
"""zoomed - Is the window zoomed? """
which = 'pzum'
want = 'bool'
class visible(aetools.NProperty):
"""visible - Is the window visible? """
which = 'pvis'
want = 'bool'
windows = window
class insertion_point(aetools.ComponentItem):
"""insertion point - An insertion location between two objects """
want = 'cins'
insertion_points = insertion_point
application._propdict = {
'name' : name,
'frontmost' : frontmost,
'selection' : selection,
'clipboard' : clipboard,
'version' : version,
}
application._elemdict = {
}
document._propdict = {
'modified' : modified,
}
document._elemdict = {
}
file._propdict = {
'stationery' : stationery,
}
file._elemdict = {
}
alias._propdict = {
}
alias._elemdict = {
}
selection_2d_object._propdict = {
'contents' : contents,
}
selection_2d_object._elemdict = {
}
window._propdict = {
'bounds' : bounds,
'closeable' : closeable,
'titled' : titled,
'index' : index,
'floating' : floating,
'modal' : modal,
'resizable' : resizable,
'zoomable' : zoomable,
'zoomed' : zoomed,
'visible' : visible,
}
window._elemdict = {
}
insertion_point._propdict = {
}
insertion_point._elemdict = {
}
class starts_with(aetools.NComparison):
"""starts with - Starts with """
class contains(aetools.NComparison):
"""contains - Contains """
class ends_with(aetools.NComparison):
"""ends with - Ends with """
class _3d_(aetools.NComparison):
"""= - Equal """
class _3e_(aetools.NComparison):
"""> - Greater than """
class _b3_(aetools.NComparison):
"""„ - Greater than or equal to """
class _3c_(aetools.NComparison):
"""< - Less than """
class _b2_(aetools.NComparison):
"""¾ - Less than or equal to """
_Enum_savo = {
'yes' : 'yes ', # Save objects now
'no' : 'no ', # Do not save objects
'ask' : 'ask ', # Ask the user whether to save
}
_Enum_kfrm = {
'index' : 'indx', # keyform designating indexed access
'named' : 'name', # keyform designating named access
'id' : 'ID ', # keyform designating access by unique identifier
}
_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 = {
'docu' : document,
'cins' : insertion_point,
'capp' : application,
'alis' : alias,
'csel' : selection_2d_object,
'file' : file,
'cwin' : window,
}
_propdeclarations = {
'ptit' : titled,
'pidx' : index,
'pnam' : name,
'pzum' : zoomed,
'pcnt' : contents,
'pcli' : clipboard,
'hclb' : closeable,
'iszm' : zoomable,
'isfl' : floating,
'pspd' : stationery,
'pisf' : frontmost,
'sele' : selection,
'pbnd' : bounds,
'imod' : modified,
'pvis' : visible,
'pmod' : modal,
'vers' : version,
'prsz' : resizable,
}
_compdeclarations = {
'> ' : _3e_,
'bgwt' : starts_with,
'>= ' : _b3_,
'= ' : _3d_,
'<= ' : _b2_,
'cont' : contains,
'ends' : ends_with,
'< ' : _3c_,
}
_enumdeclarations = {
'styl' : _Enum_styl,
'savo' : _Enum_savo,
'kfrm' : _Enum_kfrm,
}

View file

@ -0,0 +1,100 @@
"""Suite Table Suite: Classes for manipulating tables
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies: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 formula(aetools.NProperty):
"""formula - the formula of the cell """
which = 'pfor'
want = 'ctxt'
class 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 name(aetools.NProperty):
"""name - the name of the column """
which = 'pnam'
want = 'itxt'
columns = column
class row(aetools.ComponentItem):
"""row - A row """
want = 'crow'
rows = row
class table(aetools.ComponentItem):
"""table - A table """
want = 'ctbl'
tables = table
cell._propdict = {
'formula' : formula,
'protection' : protection,
}
cell._elemdict = {
}
column._propdict = {
'name' : name,
}
column._elemdict = {
}
row._propdict = {
}
row._elemdict = {
}
table._propdict = {
}
table._elemdict = {
}
_Enum_prtn = {
'read_only' : 'nmod', # Can¹t 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,
'ctbl' : table,
'ccol' : column,
'crow' : row,
}
_propdeclarations = {
'ppro' : protection,
'pfor' : formula,
'pnam' : name,
}
_compdeclarations = {
}
_enumdeclarations = {
'prtn' : _Enum_prtn,
}

View file

@ -0,0 +1,215 @@
"""Suite Text Suite: A set of basic classes for text processing
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'TEXT'
class Text_Suite_Events:
pass
class character(aetools.ComponentItem):
"""character - A character """
want = 'cha '
class _3c_inheritance_3e_(aetools.NProperty):
"""<inheritance> - inherits some of its properties from this class """
which = 'c@#^'
want = 'ctxt'
class line(aetools.ComponentItem):
"""line - A line of text """
want = 'clin'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class justification(aetools.NProperty):
"""justification - the justification of the text """
which = 'pjst'
want = 'just'
lines = line
class paragraph(aetools.ComponentItem):
"""paragraph - A paragraph """
want = 'cpar'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
paragraphs = paragraph
class text(aetools.ComponentItem):
"""text - Text """
want = 'ctxt'
class color(aetools.NProperty):
"""color - the color of the first character """
which = 'colr'
want = 'cRGB'
class font(aetools.NProperty):
"""font - the name of the font of the first character """
which = 'font'
want = 'ctxt'
class size(aetools.NProperty):
"""size - the size in points of the first character """
which = 'ptsz'
want = 'fixd'
class writing_code(aetools.NProperty):
"""writing code - the script system and language """
which = 'psct'
want = 'intl'
class style(aetools.NProperty):
"""style - the text style of the first character of the first character """
which = 'txst'
want = 'tsty'
class uniform_styles(aetools.NProperty):
"""uniform styles - the text styles that are uniform throughout the text """
which = 'ustl'
want = 'tsty'
# element 'cha ' as ['indx']
# element 'clin' as ['indx']
# element 'cpar' as ['indx']
# element 'ctxt' as ['indx']
# element 'cwor' as ['indx']
class text_flow(aetools.ComponentItem):
"""text flow - A contiguous block of text. Page layout applications call this a Œstory.¹ """
want = 'cflo'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class name(aetools.NProperty):
"""name - the name """
which = 'pnam'
want = 'itxt'
text_flows = text_flow
class text_style_info(aetools.ComponentItem):
"""text style info - On and Off styles of text run """
want = 'tsty'
class on_styles(aetools.NProperty):
"""on styles - the styles that are on for the text """
which = 'onst'
want = 'styl'
class off_styles(aetools.NProperty):
"""off styles - the styles that are off for the text """
which = 'ofst'
want = 'styl'
text_style_infos = text_style_info
class word(aetools.ComponentItem):
"""word - A word """
want = 'cwor'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
words = word
character._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
}
character._elemdict = {
}
line._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'justification' : justification,
}
line._elemdict = {
}
paragraph._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
}
paragraph._elemdict = {
}
text._propdict = {
'color' : color,
'font' : font,
'size' : size,
'writing_code' : writing_code,
'style' : style,
'uniform_styles' : uniform_styles,
}
text._elemdict = {
'character' : character,
'line' : line,
'paragraph' : paragraph,
'text' : text,
'word' : word,
}
text_flow._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'name' : name,
}
text_flow._elemdict = {
}
text_style_info._propdict = {
'on_styles' : on_styles,
'off_styles' : off_styles,
}
text_style_info._elemdict = {
}
word._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
}
word._elemdict = {
}
_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 = {
'clin' : line,
'ctxt' : text,
'cwor' : word,
'cflo' : text_flow,
'cpar' : paragraph,
'tsty' : text_style_info,
'cha ' : character,
}
_propdeclarations = {
'psct' : writing_code,
'txst' : style,
'colr' : color,
'font' : font,
'pnam' : name,
'ustl' : uniform_styles,
'pjst' : justification,
'ofst' : off_styles,
'onst' : on_styles,
'ptsz' : size,
'c@#^' : _3c_inheritance_3e_,
}
_compdeclarations = {
}
_enumdeclarations = {
'styl' : _Enum_styl,
'just' : _Enum_just,
}

View file

@ -0,0 +1,399 @@
"""Suite Type Names Suite: Terminology for Registry data types
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'tpnm'
class Type_Names_Suite_Events:
pass
class type_class_info(aetools.ComponentItem):
"""type class info - information about properties and elements of a class """
want = 'gcli'
class type_event_info(aetools.ComponentItem):
"""type event info - information about an event """
want = 'evin'
class plain_text(aetools.ComponentItem):
"""plain text - """
want = 'TEXT'
plain_text = plain_text
string = plain_text
class bounding_rectangle(aetools.ComponentItem):
"""bounding rectangle - bounding rectangle """
want = 'qdrt'
class point(aetools.ComponentItem):
"""point - point coordinates """
want = 'QDpt'
class fixed(aetools.ComponentItem):
"""fixed - a real number """
want = 'fixd'
class location_reference(aetools.ComponentItem):
"""location reference - """
want = 'insl'
class application_dictionary(aetools.ComponentItem):
"""application dictionary - """
want = 'aete'
class color_table(aetools.ComponentItem):
"""color table - """
want = 'clrt'
class dash_style(aetools.ComponentItem):
"""dash style - """
want = 'tdas'
class double_integer(aetools.ComponentItem):
"""double integer - """
want = 'comp'
class extended_real(aetools.ComponentItem):
"""extended real - """
want = 'exte'
class fixed_point(aetools.ComponentItem):
"""fixed point - """
want = 'fpnt'
class fixed_rectangle(aetools.ComponentItem):
"""fixed rectangle - """
want = 'frct'
class long_fixed(aetools.ComponentItem):
"""long fixed - """
want = 'lfxd'
class long_fixed_point(aetools.ComponentItem):
"""long fixed point - """
want = 'lfpt'
class long_fixed_rectangle(aetools.ComponentItem):
"""long fixed rectangle - """
want = 'lfrc'
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 menu(aetools.ComponentItem):
"""menu - """
want = 'cmnu'
class menu_item(aetools.ComponentItem):
"""menu item - """
want = 'cmen'
class null(aetools.ComponentItem):
"""null - """
want = 'null'
class pixel_map_record(aetools.ComponentItem):
"""pixel map record - """
want = 'tpmm'
class PostScript_picture(aetools.ComponentItem):
"""PostScript picture - """
want = 'EPS '
class RGB16_color(aetools.ComponentItem):
"""RGB16 color - """
want = 'tr16'
class RGB96_color(aetools.ComponentItem):
"""RGB96 color - """
want = 'tr96'
class small_integer(aetools.ComponentItem):
"""small integer - """
want = 'shor'
class small_real(aetools.ComponentItem):
"""small real - """
want = 'sing'
class system_dictionary(aetools.ComponentItem):
"""system dictionary - """
want = 'aeut'
class rotation(aetools.ComponentItem):
"""rotation - """
want = 'trot'
class scrap_styles(aetools.ComponentItem):
"""scrap styles - """
want = 'styl'
class TIFF_picture(aetools.ComponentItem):
"""TIFF picture - """
want = 'TIFF'
class version(aetools.ComponentItem):
"""version - """
want = 'vers'
class unsigned_integer(aetools.ComponentItem):
"""unsigned integer - """
want = 'magn'
class type_property_info(aetools.ComponentItem):
"""type property info - """
want = 'pinf'
class type_element_info(aetools.ComponentItem):
"""type element info - """
want = 'elin'
class type_parameter_info(aetools.ComponentItem):
"""type parameter info - """
want = 'pmin'
class type_suite_info(aetools.ComponentItem):
"""type suite info - """
want = 'suin'
class target_id(aetools.ComponentItem):
"""target id - """
want = 'targ'
type_class_info._propdict = {
}
type_class_info._elemdict = {
}
type_event_info._propdict = {
}
type_event_info._elemdict = {
}
plain_text._propdict = {
}
plain_text._elemdict = {
}
plain_text._propdict = {
}
plain_text._elemdict = {
}
bounding_rectangle._propdict = {
}
bounding_rectangle._elemdict = {
}
point._propdict = {
}
point._elemdict = {
}
fixed._propdict = {
}
fixed._elemdict = {
}
location_reference._propdict = {
}
location_reference._elemdict = {
}
application_dictionary._propdict = {
}
application_dictionary._elemdict = {
}
color_table._propdict = {
}
color_table._elemdict = {
}
dash_style._propdict = {
}
dash_style._elemdict = {
}
double_integer._propdict = {
}
double_integer._elemdict = {
}
extended_real._propdict = {
}
extended_real._elemdict = {
}
fixed_point._propdict = {
}
fixed_point._elemdict = {
}
fixed_rectangle._propdict = {
}
fixed_rectangle._elemdict = {
}
long_fixed._propdict = {
}
long_fixed._elemdict = {
}
long_fixed_point._propdict = {
}
long_fixed_point._elemdict = {
}
long_fixed_rectangle._propdict = {
}
long_fixed_rectangle._elemdict = {
}
long_point._propdict = {
}
long_point._elemdict = {
}
long_rectangle._propdict = {
}
long_rectangle._elemdict = {
}
machine_location._propdict = {
}
machine_location._elemdict = {
}
menu._propdict = {
}
menu._elemdict = {
}
menu_item._propdict = {
}
menu_item._elemdict = {
}
null._propdict = {
}
null._elemdict = {
}
pixel_map_record._propdict = {
}
pixel_map_record._elemdict = {
}
PostScript_picture._propdict = {
}
PostScript_picture._elemdict = {
}
RGB16_color._propdict = {
}
RGB16_color._elemdict = {
}
RGB96_color._propdict = {
}
RGB96_color._elemdict = {
}
small_integer._propdict = {
}
small_integer._elemdict = {
}
small_real._propdict = {
}
small_real._elemdict = {
}
system_dictionary._propdict = {
}
system_dictionary._elemdict = {
}
rotation._propdict = {
}
rotation._elemdict = {
}
scrap_styles._propdict = {
}
scrap_styles._elemdict = {
}
TIFF_picture._propdict = {
}
TIFF_picture._elemdict = {
}
version._propdict = {
}
version._elemdict = {
}
unsigned_integer._propdict = {
}
unsigned_integer._elemdict = {
}
type_property_info._propdict = {
}
type_property_info._elemdict = {
}
type_element_info._propdict = {
}
type_element_info._elemdict = {
}
type_parameter_info._propdict = {
}
type_parameter_info._elemdict = {
}
type_suite_info._propdict = {
}
type_suite_info._elemdict = {
}
target_id._propdict = {
}
target_id._elemdict = {
}
#
# Indices of types declared in this module
#
_classdeclarations = {
'targ' : target_id,
'null' : null,
'lfxd' : long_fixed,
'TIFF' : TIFF_picture,
'vers' : version,
'magn' : unsigned_integer,
'exte' : extended_real,
'qdrt' : bounding_rectangle,
'lrct' : long_rectangle,
'lfpt' : long_fixed_point,
'pmin' : type_parameter_info,
'pinf' : type_property_info,
'tdas' : dash_style,
'tr96' : RGB96_color,
'cmnu' : menu,
'gcli' : type_class_info,
'lpnt' : long_point,
'suin' : type_suite_info,
'trot' : rotation,
'fixd' : fixed,
'lfrc' : long_fixed_rectangle,
'frct' : fixed_rectangle,
'evin' : type_event_info,
'sing' : small_real,
'aete' : application_dictionary,
'tpmm' : pixel_map_record,
'cmen' : menu_item,
'QDpt' : point,
'EPS ' : PostScript_picture,
'mLoc' : machine_location,
'insl' : location_reference,
'elin' : type_element_info,
'comp' : double_integer,
'fpnt' : fixed_point,
'clrt' : color_table,
'styl' : scrap_styles,
'aeut' : system_dictionary,
'tr16' : RGB16_color,
'shor' : small_integer,
'TEXT' : plain_text,
}
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}

View file

@ -0,0 +1,65 @@
"""
Package generated from Macintosh HD:Systeemmap:Extensies:AppleScript
Resource aeut resid 0 Standard Event Suites for English
"""
import aetools
import AppleScript_Suite
import Required_Suite
import Standard_Suite
import Text_Suite
import QuickDraw_Graphics_Suite
import QuickDraw_Graphics_Suppleme
import Table_Suite
import Macintosh_Connectivity_Clas
import Type_Names_Suite
_code_to_module = {
'ascr' : AppleScript_Suite,
'reqd' : Required_Suite,
'core' : Standard_Suite,
'TEXT' : Text_Suite,
'qdrw' : QuickDraw_Graphics_Suite,
'qdsp' : QuickDraw_Graphics_Suppleme,
'tbls' : Table_Suite,
'macc' : Macintosh_Connectivity_Clas,
'tpnm' : Type_Names_Suite,
}
_code_to_fullname = {
'ascr' : 'StdSuites.AppleScript_Suite',
'reqd' : 'StdSuites.Required_Suite',
'core' : 'StdSuites.Standard_Suite',
'TEXT' : 'StdSuites.Text_Suite',
'qdrw' : 'StdSuites.QuickDraw_Graphics_Suite',
'qdsp' : 'StdSuites.QuickDraw_Graphics_Suppleme',
'tbls' : 'StdSuites.Table_Suite',
'macc' : 'StdSuites.Macintosh_Connectivity_Clas',
'tpnm' : 'StdSuites.Type_Names_Suite',
}
from AppleScript_Suite import *
from Required_Suite import *
from Standard_Suite import *
from Text_Suite import *
from QuickDraw_Graphics_Suite import *
from QuickDraw_Graphics_Suppleme import *
from Table_Suite import *
from Macintosh_Connectivity_Clas import *
from Type_Names_Suite import *
class StdSuites(AppleScript_Suite_Events,
Required_Suite_Events,
Standard_Suite_Events,
Text_Suite_Events,
QuickDraw_Graphics_Suite_Events,
QuickDraw_Graphics_Suppleme_Events,
Table_Suite_Events,
Macintosh_Connectivity_Clas_Events,
Type_Names_Suite_Events,
aetools.TalkTo):
pass