1""" 2Package generated from /Volumes/Sap/System Folder/Extensions/AppleScript 3Resource aeut resid 0 Standard Event Suites for English 4""" 5 6from warnings import warnpy3k 7warnpy3k("In 3.x, the StdSuites package is removed.", stacklevel=2) 8 9import aetools 10Error = aetools.Error 11import Text_Suite 12import AppleScript_Suite 13import Standard_Suite 14import Macintosh_Connectivity_Clas 15import QuickDraw_Graphics_Suite 16import QuickDraw_Graphics_Suppleme 17import Required_Suite 18import Table_Suite 19import Type_Names_Suite 20 21 22_code_to_module = { 23 'TEXT' : Text_Suite, 24 'ascr' : AppleScript_Suite, 25 'core' : Standard_Suite, 26 'macc' : Macintosh_Connectivity_Clas, 27 'qdrw' : QuickDraw_Graphics_Suite, 28 'qdsp' : QuickDraw_Graphics_Suppleme, 29 'reqd' : Required_Suite, 30 'tbls' : Table_Suite, 31 'tpnm' : Type_Names_Suite, 32} 33 34 35 36_code_to_fullname = { 37 'TEXT' : ('StdSuites.Text_Suite', 'Text_Suite'), 38 'ascr' : ('StdSuites.AppleScript_Suite', 'AppleScript_Suite'), 39 'core' : ('StdSuites.Standard_Suite', 'Standard_Suite'), 40 'macc' : ('StdSuites.Macintosh_Connectivity_Clas', 'Macintosh_Connectivity_Clas'), 41 'qdrw' : ('StdSuites.QuickDraw_Graphics_Suite', 'QuickDraw_Graphics_Suite'), 42 'qdsp' : ('StdSuites.QuickDraw_Graphics_Suppleme', 'QuickDraw_Graphics_Suppleme'), 43 'reqd' : ('StdSuites.Required_Suite', 'Required_Suite'), 44 'tbls' : ('StdSuites.Table_Suite', 'Table_Suite'), 45 'tpnm' : ('StdSuites.Type_Names_Suite', 'Type_Names_Suite'), 46} 47 48from Text_Suite import * 49from AppleScript_Suite import * 50from Standard_Suite import * 51from Macintosh_Connectivity_Clas import * 52from QuickDraw_Graphics_Suite import * 53from QuickDraw_Graphics_Suppleme import * 54from Required_Suite import * 55from Table_Suite import * 56from Type_Names_Suite import * 57 58def getbaseclasses(v): 59 if not getattr(v, '_propdict', None): 60 v._propdict = {} 61 v._elemdict = {} 62 for superclassname in getattr(v, '_superclassnames', []): 63 superclass = eval(superclassname) 64 getbaseclasses(superclass) 65 v._propdict.update(getattr(superclass, '_propdict', {})) 66 v._elemdict.update(getattr(superclass, '_elemdict', {})) 67 v._propdict.update(getattr(v, '_privpropdict', {})) 68 v._elemdict.update(getattr(v, '_privelemdict', {})) 69 70import StdSuites 71 72# 73# Set property and element dictionaries now that all classes have been defined 74# 75getbaseclasses(graphic_group) 76getbaseclasses(oval) 77getbaseclasses(graphic_text) 78getbaseclasses(graphic_shape) 79getbaseclasses(drawing_area) 80getbaseclasses(graphic_line) 81getbaseclasses(polygon) 82getbaseclasses(pixel) 83getbaseclasses(rounded_rectangle) 84getbaseclasses(graphic_object) 85getbaseclasses(arc) 86getbaseclasses(pixel_map) 87getbaseclasses(rectangle) 88getbaseclasses(selection_2d_object) 89getbaseclasses(application) 90getbaseclasses(document) 91getbaseclasses(window) 92getbaseclasses(file) 93getbaseclasses(alias) 94getbaseclasses(insertion_point) 95getbaseclasses(character) 96getbaseclasses(paragraph) 97getbaseclasses(word) 98getbaseclasses(text_flow) 99getbaseclasses(text_style_info) 100getbaseclasses(line) 101getbaseclasses(text) 102getbaseclasses(AppleTalk_address) 103getbaseclasses(address_specification) 104getbaseclasses(Token_Ring_address) 105getbaseclasses(FireWire_address) 106getbaseclasses(bus_slot) 107getbaseclasses(SCSI_address) 108getbaseclasses(ADB_address) 109getbaseclasses(USB_address) 110getbaseclasses(device_specification) 111getbaseclasses(LocalTalk_address) 112getbaseclasses(IP_address) 113getbaseclasses(Ethernet_address) 114getbaseclasses(graphic_group) 115getbaseclasses(drawing_area) 116getbaseclasses(cell) 117getbaseclasses(column) 118getbaseclasses(table) 119getbaseclasses(row) 120getbaseclasses(small_integer) 121getbaseclasses(system_dictionary) 122getbaseclasses(color_table) 123getbaseclasses(fixed_point) 124getbaseclasses(plain_text) 125getbaseclasses(type_element_info) 126getbaseclasses(machine_location) 127getbaseclasses(PostScript_picture) 128getbaseclasses(type_suite_info) 129getbaseclasses(menu_item) 130getbaseclasses(pixel_map_record) 131getbaseclasses(small_real) 132getbaseclasses(null) 133getbaseclasses(rotation) 134getbaseclasses(fixed) 135getbaseclasses(long_point) 136getbaseclasses(target_id) 137getbaseclasses(type_property_info) 138getbaseclasses(type_parameter_info) 139getbaseclasses(long_fixed_point) 140getbaseclasses(bounding_rectangle) 141getbaseclasses(TIFF_picture) 142getbaseclasses(long_fixed) 143getbaseclasses(location_reference) 144getbaseclasses(version) 145getbaseclasses(RGB16_color) 146getbaseclasses(double_integer) 147getbaseclasses(type_event_info) 148getbaseclasses(point) 149getbaseclasses(application_dictionary) 150getbaseclasses(unsigned_integer) 151getbaseclasses(menu) 152getbaseclasses(fixed_rectangle) 153getbaseclasses(long_fixed_rectangle) 154getbaseclasses(type_class_info) 155getbaseclasses(RGB96_color) 156getbaseclasses(dash_style) 157getbaseclasses(scrap_styles) 158getbaseclasses(extended_real) 159getbaseclasses(long_rectangle) 160getbaseclasses(May) 161getbaseclasses(string) 162getbaseclasses(miles) 163getbaseclasses(number_or_date) 164getbaseclasses(October) 165getbaseclasses(event) 166getbaseclasses(Pascal_string) 167getbaseclasses(zone) 168getbaseclasses(picture) 169getbaseclasses(list_or_string) 170getbaseclasses(number) 171getbaseclasses(Tuesday) 172getbaseclasses(version) 173getbaseclasses(December) 174getbaseclasses(square_kilometres) 175getbaseclasses(reference) 176getbaseclasses(vector) 177getbaseclasses(weekday) 178getbaseclasses(Sunday) 179getbaseclasses(international_text) 180getbaseclasses(seconds) 181getbaseclasses(RGB_color) 182getbaseclasses(kilometres) 183getbaseclasses(styled_Unicode_text) 184getbaseclasses(missing_value) 185getbaseclasses(metres) 186getbaseclasses(number_or_string) 187getbaseclasses(list) 188getbaseclasses(linked_list) 189getbaseclasses(real) 190getbaseclasses(encoded_string) 191getbaseclasses(list_or_record) 192getbaseclasses(Monday) 193getbaseclasses(September) 194getbaseclasses(anything) 195getbaseclasses(property) 196getbaseclasses(reference_form) 197getbaseclasses(item) 198getbaseclasses(grams) 199getbaseclasses(record) 200getbaseclasses(empty_ae_name_) 201getbaseclasses(constant) 202getbaseclasses(square_miles) 203getbaseclasses(data) 204getbaseclasses(Unicode_text) 205getbaseclasses(yards) 206getbaseclasses(cubic_yards) 207getbaseclasses(pounds) 208getbaseclasses(cubic_centimetres) 209getbaseclasses(text) 210getbaseclasses(July) 211getbaseclasses(cubic_metres) 212getbaseclasses(styled_text) 213getbaseclasses(number_2c__date_or_text) 214getbaseclasses(feet) 215getbaseclasses(February) 216getbaseclasses(degrees_Celsius) 217getbaseclasses(keystroke) 218getbaseclasses(integer) 219getbaseclasses(degrees_Fahrenheit) 220getbaseclasses(list_2c__record_or_text) 221getbaseclasses(date) 222getbaseclasses(degrees_Kelvin) 223getbaseclasses(centimetres) 224getbaseclasses(writing_code) 225getbaseclasses(alias_or_string) 226getbaseclasses(writing_code_info) 227getbaseclasses(text_item) 228getbaseclasses(machine) 229getbaseclasses(type_class) 230getbaseclasses(preposition) 231getbaseclasses(Wednesday) 232getbaseclasses(upper_case) 233getbaseclasses(March) 234getbaseclasses(square_feet) 235getbaseclasses(November) 236getbaseclasses(quarts) 237getbaseclasses(alias) 238getbaseclasses(January) 239getbaseclasses(month) 240getbaseclasses(June) 241getbaseclasses(August) 242getbaseclasses(styled_Clipboard_text) 243getbaseclasses(gallons) 244getbaseclasses(cubic_inches) 245getbaseclasses(Friday) 246getbaseclasses(sound) 247getbaseclasses(class_) 248getbaseclasses(kilograms) 249getbaseclasses(script) 250getbaseclasses(litres) 251getbaseclasses(boolean) 252getbaseclasses(square_metres) 253getbaseclasses(inches) 254getbaseclasses(character) 255getbaseclasses(April) 256getbaseclasses(ounces) 257getbaseclasses(app) 258getbaseclasses(handler) 259getbaseclasses(C_string) 260getbaseclasses(Thursday) 261getbaseclasses(square_yards) 262getbaseclasses(cubic_feet) 263getbaseclasses(Saturday) 264getbaseclasses(file_specification) 265 266# 267# Indices of types declared in this module 268# 269_classdeclarations = { 270 'cpic' : graphic_group, 271 'covl' : oval, 272 'cgtx' : graphic_text, 273 'cgsh' : graphic_shape, 274 'cdrw' : drawing_area, 275 'glin' : graphic_line, 276 'cpgn' : polygon, 277 'cpxl' : pixel, 278 'crrc' : rounded_rectangle, 279 'cgob' : graphic_object, 280 'carc' : arc, 281 'cpix' : pixel_map, 282 'crec' : rectangle, 283 'csel' : selection_2d_object, 284 'capp' : application, 285 'docu' : document, 286 'cwin' : window, 287 'file' : file, 288 'alis' : alias, 289 'cins' : insertion_point, 290 'cha ' : character, 291 'cpar' : paragraph, 292 'cwor' : word, 293 'cflo' : text_flow, 294 'tsty' : text_style_info, 295 'clin' : line, 296 'ctxt' : text, 297 'cat ' : AppleTalk_address, 298 'cadr' : address_specification, 299 'ctok' : Token_Ring_address, 300 'cfw ' : FireWire_address, 301 'cbus' : bus_slot, 302 'cscs' : SCSI_address, 303 'cadb' : ADB_address, 304 'cusb' : USB_address, 305 'cdev' : device_specification, 306 'clt ' : LocalTalk_address, 307 'cip ' : IP_address, 308 'cen ' : Ethernet_address, 309 'cpic' : graphic_group, 310 'cdrw' : drawing_area, 311 'ccel' : cell, 312 'ccol' : column, 313 'ctbl' : table, 314 'crow' : row, 315 'shor' : small_integer, 316 'aeut' : system_dictionary, 317 'clrt' : color_table, 318 'fpnt' : fixed_point, 319 'TEXT' : plain_text, 320 'elin' : type_element_info, 321 'mLoc' : machine_location, 322 'EPS ' : PostScript_picture, 323 'suin' : type_suite_info, 324 'cmen' : menu_item, 325 'tpmm' : pixel_map_record, 326 'sing' : small_real, 327 'null' : null, 328 'trot' : rotation, 329 'fixd' : fixed, 330 'lpnt' : long_point, 331 'targ' : target_id, 332 'pinf' : type_property_info, 333 'pmin' : type_parameter_info, 334 'lfpt' : long_fixed_point, 335 'qdrt' : bounding_rectangle, 336 'TIFF' : TIFF_picture, 337 'lfxd' : long_fixed, 338 'insl' : location_reference, 339 'vers' : version, 340 'tr16' : RGB16_color, 341 'comp' : double_integer, 342 'evin' : type_event_info, 343 'QDpt' : point, 344 'aete' : application_dictionary, 345 'magn' : unsigned_integer, 346 'cmnu' : menu, 347 'frct' : fixed_rectangle, 348 'lfrc' : long_fixed_rectangle, 349 'gcli' : type_class_info, 350 'tr96' : RGB96_color, 351 'tdas' : dash_style, 352 'styl' : scrap_styles, 353 'exte' : extended_real, 354 'lrct' : long_rectangle, 355 'may ' : May, 356 'TEXT' : string, 357 'mile' : miles, 358 'nd ' : number_or_date, 359 'oct ' : October, 360 'evnt' : event, 361 'pstr' : Pascal_string, 362 'zone' : zone, 363 'PICT' : picture, 364 'ls ' : list_or_string, 365 'nmbr' : number, 366 'tue ' : Tuesday, 367 'vers' : version, 368 'dec ' : December, 369 'sqkm' : square_kilometres, 370 'obj ' : reference, 371 'vect' : vector, 372 'wkdy' : weekday, 373 'sun ' : Sunday, 374 'itxt' : international_text, 375 'scnd' : seconds, 376 'cRGB' : RGB_color, 377 'kmtr' : kilometres, 378 'sutx' : styled_Unicode_text, 379 'msng' : missing_value, 380 'metr' : metres, 381 'ns ' : number_or_string, 382 'list' : list, 383 'llst' : linked_list, 384 'doub' : real, 385 'encs' : encoded_string, 386 'lr ' : list_or_record, 387 'mon ' : Monday, 388 'sep ' : September, 389 '****' : anything, 390 'prop' : property, 391 'kfrm' : reference_form, 392 'cobj' : item, 393 'gram' : grams, 394 'reco' : record, 395 'undf' : empty_ae_name_, 396 'enum' : constant, 397 'sqmi' : square_miles, 398 'rdat' : data, 399 'utxt' : Unicode_text, 400 'yard' : yards, 401 'cyrd' : cubic_yards, 402 'lbs ' : pounds, 403 'ccmt' : cubic_centimetres, 404 'ctxt' : text, 405 'jul ' : July, 406 'cmet' : cubic_metres, 407 'STXT' : styled_text, 408 'nds ' : number_2c__date_or_text, 409 'feet' : feet, 410 'feb ' : February, 411 'degc' : degrees_Celsius, 412 'kprs' : keystroke, 413 'long' : integer, 414 'degf' : degrees_Fahrenheit, 415 'lrs ' : list_2c__record_or_text, 416 'ldt ' : date, 417 'degk' : degrees_Kelvin, 418 'cmtr' : centimetres, 419 'psct' : writing_code, 420 'sf ' : alias_or_string, 421 'citl' : writing_code_info, 422 'citm' : text_item, 423 'mach' : machine, 424 'type' : type_class, 425 'prep' : preposition, 426 'wed ' : Wednesday, 427 'case' : upper_case, 428 'mar ' : March, 429 'sqft' : square_feet, 430 'nov ' : November, 431 'qrts' : quarts, 432 'alis' : alias, 433 'jan ' : January, 434 'mnth' : month, 435 'jun ' : June, 436 'aug ' : August, 437 'styl' : styled_Clipboard_text, 438 'galn' : gallons, 439 'cuin' : cubic_inches, 440 'fri ' : Friday, 441 'snd ' : sound, 442 'pcls' : class_, 443 'kgrm' : kilograms, 444 'scpt' : script, 445 'litr' : litres, 446 'bool' : boolean, 447 'sqrm' : square_metres, 448 'inch' : inches, 449 'cha ' : character, 450 'apr ' : April, 451 'ozs ' : ounces, 452 'capp' : app, 453 'hand' : handler, 454 'cstr' : C_string, 455 'thu ' : Thursday, 456 'sqyd' : square_yards, 457 'cfet' : cubic_feet, 458 'sat ' : Saturday, 459 'fss ' : file_specification, 460} 461 462 463class StdSuites(Text_Suite_Events, 464 AppleScript_Suite_Events, 465 Standard_Suite_Events, 466 Macintosh_Connectivity_Clas_Events, 467 QuickDraw_Graphics_Suite_Events, 468 QuickDraw_Graphics_Suppleme_Events, 469 Required_Suite_Events, 470 Table_Suite_Events, 471 Type_Names_Suite_Events, 472 aetools.TalkTo): 473 _signature = 'ascr' 474 475 _moduleName = 'StdSuites' 476