diff options
Diffstat (limited to 'Lib/plat-mac/lib-scriptpackages/StdSuites/__init__.py')
-rw-r--r-- | Lib/plat-mac/lib-scriptpackages/StdSuites/__init__.py | 469 |
1 files changed, 469 insertions, 0 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/StdSuites/__init__.py b/Lib/plat-mac/lib-scriptpackages/StdSuites/__init__.py new file mode 100644 index 0000000..09667f8 --- /dev/null +++ b/Lib/plat-mac/lib-scriptpackages/StdSuites/__init__.py @@ -0,0 +1,469 @@ +""" +Package generated from /Volumes/Sap/System Folder/Extensions/AppleScript +Resource aeut resid 0 Standard Event Suites for English +""" +import aetools +Error = aetools.Error +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', 'AppleScript_Suite'), + 'reqd' : ('StdSuites.Required_Suite', 'Required_Suite'), + 'core' : ('StdSuites.Standard_Suite', 'Standard_Suite'), + 'TEXT' : ('StdSuites.Text_Suite', 'Text_Suite'), + 'qdrw' : ('StdSuites.QuickDraw_Graphics_Suite', 'QuickDraw_Graphics_Suite'), + 'qdsp' : ('StdSuites.QuickDraw_Graphics_Suppleme', 'QuickDraw_Graphics_Suppleme'), + 'tbls' : ('StdSuites.Table_Suite', 'Table_Suite'), + 'macc' : ('StdSuites.Macintosh_Connectivity_Clas', 'Macintosh_Connectivity_Clas'), + 'tpnm' : ('StdSuites.Type_Names_Suite', '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 * +def getbaseclasses(v): + if hasattr(v, '_superclassnames') and not hasattr(v, '_propdict'): + v._propdict = {} + v._elemdict = {} + for superclass in v._superclassnames: + v._propdict.update(getattr(eval(superclass), '_privpropdict', {})) + v._elemdict.update(getattr(eval(superclass), '_privelemdict', {})) + v._propdict.update(v._privpropdict) + v._elemdict.update(v._privelemdict) + +import StdSuites + +# +# Set property and element dictionaries now that all classes have been defined +# +getbaseclasses(July) +getbaseclasses(May) +getbaseclasses(string) +getbaseclasses(cubic_metres) +getbaseclasses(styled_text) +getbaseclasses(number_2c__date_or_text) +getbaseclasses(feet) +getbaseclasses(February) +getbaseclasses(number) +getbaseclasses(miles) +getbaseclasses(keystroke) +getbaseclasses(writing_code) +getbaseclasses(degrees_Fahrenheit) +getbaseclasses(list_2c__record_or_text) +getbaseclasses(date) +getbaseclasses(litres) +getbaseclasses(number_or_date) +getbaseclasses(centimetres) +getbaseclasses(event) +getbaseclasses(Pascal_string) +getbaseclasses(zone) +getbaseclasses(picture) +getbaseclasses(list_or_string) +getbaseclasses(integer) +getbaseclasses(alias_or_string) +getbaseclasses(writing_code_info) +getbaseclasses(text_item) +getbaseclasses(machine) +getbaseclasses(type_class) +getbaseclasses(preposition) +getbaseclasses(Tuesday) +getbaseclasses(upper_case) +getbaseclasses(version) +getbaseclasses(Wednesday) +getbaseclasses(December) +getbaseclasses(square_kilometres) +getbaseclasses(reference) +getbaseclasses(vector) +getbaseclasses(weekday) +getbaseclasses(RGB_color) +getbaseclasses(Sunday) +getbaseclasses(international_text) +getbaseclasses(seconds) +getbaseclasses(March) +getbaseclasses(kilometres) +getbaseclasses(square_feet) +getbaseclasses(list) +getbaseclasses(real) +getbaseclasses(November) +getbaseclasses(quarts) +getbaseclasses(degrees_Celsius) +getbaseclasses(missing_value) +getbaseclasses(alias) +getbaseclasses(January) +getbaseclasses(metres) +getbaseclasses(month) +getbaseclasses(number_or_string) +getbaseclasses(June) +getbaseclasses(August) +getbaseclasses(linked_list) +getbaseclasses(styled_Clipboard_text) +getbaseclasses(encoded_string) +getbaseclasses(gallons) +getbaseclasses(cubic_inches) +getbaseclasses(Friday) +getbaseclasses(styled_Unicode_text) +getbaseclasses(list_or_record) +getbaseclasses(degrees_Kelvin) +getbaseclasses(Monday) +getbaseclasses(sound) +getbaseclasses(class_) +getbaseclasses(kilograms) +getbaseclasses(script) +getbaseclasses(anything) +getbaseclasses(property) +getbaseclasses(record) +getbaseclasses(boolean) +getbaseclasses(October) +getbaseclasses(square_metres) +getbaseclasses(inches) +getbaseclasses(reference_form) +getbaseclasses(item) +getbaseclasses(grams) +getbaseclasses(character) +getbaseclasses(April) +getbaseclasses(empty_ae_name_) +getbaseclasses(app) +getbaseclasses(constant) +getbaseclasses(handler) +getbaseclasses(square_miles) +getbaseclasses(data) +getbaseclasses(C_string) +getbaseclasses(Unicode_text) +getbaseclasses(Thursday) +getbaseclasses(square_yards) +getbaseclasses(yards) +getbaseclasses(cubic_yards) +getbaseclasses(ounces) +getbaseclasses(pounds) +getbaseclasses(cubic_feet) +getbaseclasses(cubic_centimetres) +getbaseclasses(Saturday) +getbaseclasses(September) +getbaseclasses(file_specification) +getbaseclasses(text) +getbaseclasses(window) +getbaseclasses(file) +getbaseclasses(selection_2d_object) +getbaseclasses(alias) +getbaseclasses(application) +getbaseclasses(insertion_point) +getbaseclasses(document) +getbaseclasses(paragraph) +getbaseclasses(character) +getbaseclasses(text_flow) +getbaseclasses(text_style_info) +getbaseclasses(line) +getbaseclasses(word) +getbaseclasses(text) +getbaseclasses(graphic_group) +getbaseclasses(oval) +getbaseclasses(graphic_text) +getbaseclasses(graphic_shape) +getbaseclasses(graphic_line) +getbaseclasses(graphic_object) +getbaseclasses(drawing_area) +getbaseclasses(polygon) +getbaseclasses(pixel) +getbaseclasses(rounded_rectangle) +getbaseclasses(arc) +getbaseclasses(pixel_map) +getbaseclasses(rectangle) +getbaseclasses(graphic_group) +getbaseclasses(drawing_area) +getbaseclasses(cell) +getbaseclasses(column) +getbaseclasses(table) +getbaseclasses(row) +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(small_integer) +getbaseclasses(RGB16_color) +getbaseclasses(version) +getbaseclasses(system_dictionary) +getbaseclasses(color_table) +getbaseclasses(fixed_point) +getbaseclasses(plain_text) +getbaseclasses(type_element_info) +getbaseclasses(location_reference) +getbaseclasses(machine_location) +getbaseclasses(PostScript_picture) +getbaseclasses(point) +getbaseclasses(menu_item) +getbaseclasses(pixel_map_record) +getbaseclasses(application_dictionary) +getbaseclasses(unsigned_integer) +getbaseclasses(menu) +getbaseclasses(fixed_rectangle) +getbaseclasses(long_fixed_rectangle) +getbaseclasses(type_event_info) +getbaseclasses(small_real) +getbaseclasses(type_suite_info) +getbaseclasses(rotation) +getbaseclasses(type_parameter_info) +getbaseclasses(fixed) +getbaseclasses(scrap_styles) +getbaseclasses(long_point) +getbaseclasses(type_class_info) +getbaseclasses(TIFF_picture) +getbaseclasses(RGB96_color) +getbaseclasses(dash_style) +getbaseclasses(extended_real) +getbaseclasses(type_property_info) +getbaseclasses(long_fixed_point) +getbaseclasses(long_rectangle) +getbaseclasses(bounding_rectangle) +getbaseclasses(double_integer) +getbaseclasses(long_fixed) +getbaseclasses(null) +getbaseclasses(target_id) + +# +# Indices of types declared in this module +# +_classdeclarations = { + 'jul ' : July, + 'may ' : May, + 'TEXT' : string, + 'cmet' : cubic_metres, + 'STXT' : styled_text, + 'nds ' : number_2c__date_or_text, + 'feet' : feet, + 'feb ' : February, + 'nmbr' : number, + 'mile' : miles, + 'kprs' : keystroke, + 'psct' : writing_code, + 'degf' : degrees_Fahrenheit, + 'lrs ' : list_2c__record_or_text, + 'ldt ' : date, + 'litr' : litres, + 'nd ' : number_or_date, + 'cmtr' : centimetres, + 'evnt' : event, + 'pstr' : Pascal_string, + 'zone' : zone, + 'PICT' : picture, + 'ls ' : list_or_string, + 'long' : integer, + 'sf ' : alias_or_string, + 'citl' : writing_code_info, + 'citm' : text_item, + 'mach' : machine, + 'type' : type_class, + 'prep' : preposition, + 'tue ' : Tuesday, + 'case' : upper_case, + 'vers' : version, + 'wed ' : Wednesday, + 'dec ' : December, + 'sqkm' : square_kilometres, + 'obj ' : reference, + 'vect' : vector, + 'wkdy' : weekday, + 'cRGB' : RGB_color, + 'sun ' : Sunday, + 'itxt' : international_text, + 'scnd' : seconds, + 'mar ' : March, + 'kmtr' : kilometres, + 'sqft' : square_feet, + 'list' : list, + 'doub' : real, + 'nov ' : November, + 'qrts' : quarts, + 'degc' : degrees_Celsius, + 'msng' : missing_value, + 'alis' : alias, + 'jan ' : January, + 'metr' : metres, + 'mnth' : month, + 'ns ' : number_or_string, + 'jun ' : June, + 'aug ' : August, + 'llst' : linked_list, + 'styl' : styled_Clipboard_text, + 'encs' : encoded_string, + 'galn' : gallons, + 'cuin' : cubic_inches, + 'fri ' : Friday, + 'sutx' : styled_Unicode_text, + 'lr ' : list_or_record, + 'degk' : degrees_Kelvin, + 'mon ' : Monday, + 'snd ' : sound, + 'pcls' : class_, + 'kgrm' : kilograms, + 'scpt' : script, + '****' : anything, + 'prop' : property, + 'reco' : record, + 'bool' : boolean, + 'oct ' : October, + 'sqrm' : square_metres, + 'inch' : inches, + 'kfrm' : reference_form, + 'cobj' : item, + 'gram' : grams, + 'cha ' : character, + 'apr ' : April, + 'undf' : empty_ae_name_, + 'capp' : app, + 'enum' : constant, + 'hand' : handler, + 'sqmi' : square_miles, + 'rdat' : data, + 'cstr' : C_string, + 'utxt' : Unicode_text, + 'thu ' : Thursday, + 'sqyd' : square_yards, + 'yard' : yards, + 'cyrd' : cubic_yards, + 'ozs ' : ounces, + 'lbs ' : pounds, + 'cfet' : cubic_feet, + 'ccmt' : cubic_centimetres, + 'sat ' : Saturday, + 'sep ' : September, + 'fss ' : file_specification, + 'ctxt' : text, + 'cwin' : window, + 'file' : file, + 'csel' : selection_2d_object, + 'alis' : alias, + 'capp' : application, + 'cins' : insertion_point, + 'docu' : document, + 'cpar' : paragraph, + 'cha ' : character, + 'cflo' : text_flow, + 'tsty' : text_style_info, + 'clin' : line, + 'cwor' : word, + 'ctxt' : text, + 'cpic' : graphic_group, + 'covl' : oval, + 'cgtx' : graphic_text, + 'cgsh' : graphic_shape, + 'glin' : graphic_line, + 'cgob' : graphic_object, + 'cdrw' : drawing_area, + 'cpgn' : polygon, + 'cpxl' : pixel, + 'crrc' : rounded_rectangle, + 'carc' : arc, + 'cpix' : pixel_map, + 'crec' : rectangle, + 'cpic' : graphic_group, + 'cdrw' : drawing_area, + 'ccel' : cell, + 'ccol' : column, + 'ctbl' : table, + 'crow' : row, + '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, + 'shor' : small_integer, + 'tr16' : RGB16_color, + 'vers' : version, + 'aeut' : system_dictionary, + 'clrt' : color_table, + 'fpnt' : fixed_point, + 'TEXT' : plain_text, + 'elin' : type_element_info, + 'insl' : location_reference, + 'mLoc' : machine_location, + 'EPS ' : PostScript_picture, + 'QDpt' : point, + 'cmen' : menu_item, + 'tpmm' : pixel_map_record, + 'aete' : application_dictionary, + 'magn' : unsigned_integer, + 'cmnu' : menu, + 'frct' : fixed_rectangle, + 'lfrc' : long_fixed_rectangle, + 'evin' : type_event_info, + 'sing' : small_real, + 'suin' : type_suite_info, + 'trot' : rotation, + 'pmin' : type_parameter_info, + 'fixd' : fixed, + 'styl' : scrap_styles, + 'lpnt' : long_point, + 'gcli' : type_class_info, + 'TIFF' : TIFF_picture, + 'tr96' : RGB96_color, + 'tdas' : dash_style, + 'exte' : extended_real, + 'pinf' : type_property_info, + 'lfpt' : long_fixed_point, + 'lrct' : long_rectangle, + 'qdrt' : bounding_rectangle, + 'comp' : double_integer, + 'lfxd' : long_fixed, + 'null' : null, + 'targ' : target_id, +} + + +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): + _signature = 'ascr' + + _moduleName = 'StdSuites' + |