From d1851c9310a33a5f442a91379cb2338f9755ae30 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 24 Apr 2002 09:21:48 +0000 Subject: [PATCH] Backport of trunk fix: Second part of fix for #493826: regenerated suite modules so errn exists but == 0 doesn't signal an error. This also picked up a few other changes, but they should be harmless. --- .../CodeWarrior/CodeWarrior_suite.py | 118 ++-- .../CodeWarrior/Metrowerks_Shell_Suite.py | 512 +++++++++--------- .../CodeWarrior/Required.py | 4 +- .../CodeWarrior/Standard_Suite.py | 63 +-- .../CodeWarrior/__init__.py | 3 +- .../Explorer/Microsoft_Internet_Explorer.py | 32 +- .../Explorer/Netscape_Suite.py | 8 +- .../Explorer/Required_Suite.py | 10 +- .../lib-scriptpackages/Explorer/URL_Suite.py | 8 +- .../Explorer/Web_Browser_Suite.py | 480 ++-------------- .../lib-scriptpackages/Explorer/__init__.py | 20 +- .../Finder/Containers_and_folders.py | 58 +- .../Finder/Earlier_terms.py | 189 +++---- .../lib-scriptpackages/Finder/Enumerations.py | 76 +-- .../Finder/Files_and_suitcases.py | 48 +- .../Finder/Finder_Basics.py | 62 ++- .../lib-scriptpackages/Finder/Finder_items.py | 61 ++- .../Finder/Obsolete_terms.py | 34 +- .../Finder/Process_classes.py | 30 +- .../Finder/Standard_Suite.py | 31 +- .../Finder/Type_Definitions.py | 62 +-- .../Finder/Window_classes.py | 114 ++-- Mac/Lib/lib-scriptpackages/Finder/__init__.py | 2 +- .../Netscape/Mozilla_suite.py | 38 +- .../lib-scriptpackages/Netscape/PowerPlant.py | 14 +- .../Netscape/Required_suite.py | 10 +- .../Netscape/Standard_Suite.py | 39 +- .../Netscape/Standard_URL_suite.py | 4 +- Mac/Lib/lib-scriptpackages/Netscape/Text.py | 18 +- .../Netscape/WorldWideWeb_suite.py | 34 +- .../lib-scriptpackages/Netscape/__init__.py | 3 +- .../StdSuites/AppleScript_Suite.py | 386 +++++++------ .../StdSuites/Macintosh_Connectivity_Clas.py | 68 +-- .../StdSuites/QuickDraw_Graphics_Suite.py | 81 ++- .../StdSuites/QuickDraw_Graphics_Suppleme.py | 4 +- .../StdSuites/Required_Suite.py | 5 +- .../StdSuites/Standard_Suite.py | 97 ++-- .../StdSuites/Table_Suite.py | 8 +- .../StdSuites/Text_Suite.py | 32 +- .../StdSuites/Type_Names_Suite.py | 68 +-- .../lib-scriptpackages/StdSuites/__init__.py | 3 +- 41 files changed, 1270 insertions(+), 1667 deletions(-) diff --git a/Mac/Lib/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py b/Mac/Lib/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py index 01cb15012811..4e82b6789661 100644 --- a/Mac/Lib/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py +++ b/Mac/Lib/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py @@ -1,7 +1,7 @@ """Suite CodeWarrior suite: Terms for scripting the CodeWarrior IDE Level 0, version 0 -Generated from Macintosh HD:SWdev:CodeWarrior 6 MPTP:Metrowerks CodeWarrior:CodeWarrior IDE 4.1B9 +Generated from Moes:Applications (Mac OS 9):Metrowerks CodeWarrior 7.0:Metrowerks CodeWarrior:CodeWarrior IDE 4.2.6 AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -37,7 +37,7 @@ class CodeWarrior_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -61,7 +61,7 @@ class CodeWarrior_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -80,7 +80,7 @@ class CodeWarrior_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -100,7 +100,7 @@ class CodeWarrior_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -120,7 +120,7 @@ class CodeWarrior_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -140,7 +140,7 @@ class CodeWarrior_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -159,7 +159,7 @@ class CodeWarrior_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -179,7 +179,7 @@ class CodeWarrior_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -198,7 +198,7 @@ class CodeWarrior_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -217,7 +217,7 @@ class CodeWarrior_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -237,7 +237,7 @@ class CodeWarrior_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -257,49 +257,42 @@ build_progress_documents = build_progress_document class catalog_document(aetools.ComponentItem): """catalog document - a browser catalog document """ want = 'CTLG' -# repeated property inherits all properties and elements of the given class are inherited by this class. catalog_documents = catalog_document class class_browser(aetools.ComponentItem): """class browser - a class browser """ want = 'BROW' -# repeated property inherits all properties and elements of the given class are inherited by this class. class_browsers = class_browser class class_hierarchy(aetools.ComponentItem): """class hierarchy - a class hierarchy document """ want = 'HIER' -# repeated property inherits all properties and elements of the given class are inherited by this class. class_hierarchies = class_hierarchy class editor_document(aetools.ComponentItem): """editor document - an editor document """ want = 'EDIT' -# repeated property inherits all properties and elements of the given class are inherited by this class. editor_documents = editor_document class file_compare_document(aetools.ComponentItem): """file compare document - a file compare document """ want = 'COMP' -# repeated property inherits all properties and elements of the given class are inherited by this class. file_compare_documents = file_compare_document class message_document(aetools.ComponentItem): """message document - a message document """ want = 'MSSG' -# repeated property inherits all properties and elements of the given class are inherited by this class. message_documents = message_document class project_document(aetools.ComponentItem): """project document - a project document """ want = 'PRJD' -# repeated property inherits all properties and elements of the given class are inherited by this class. class current_target(aetools.NProperty): """current target - the current target """ which = 'CURT' @@ -311,28 +304,24 @@ project_documents = project_document class project_inspector(aetools.ComponentItem): """project inspector - the project inspector """ want = 'INSP' -# repeated property inherits all properties and elements of the given class are inherited by this class. project_inspectors = project_inspector class single_class_browser(aetools.ComponentItem): """single class browser - a single class browser """ want = '1BRW' -# repeated property inherits all properties and elements of the given class are inherited by this class. single_class_browsers = single_class_browser class single_class_hierarchy(aetools.ComponentItem): """single class hierarchy - a single class hierarchy document """ want = '1HIR' -# repeated property inherits all properties and elements of the given class are inherited by this class. single_class_hierarchies = single_class_hierarchy class subtarget(aetools.ComponentItem): """subtarget - a target that is prerequisite for another target """ want = 'SBTG' -# repeated property inherits all properties and elements of the given class are inherited by this class. class target(aetools.NProperty): """target - the target that is dependent on this subtarget """ which = 'TrgT' @@ -347,7 +336,6 @@ subtargets = subtarget class symbol_browser(aetools.ComponentItem): """symbol browser - a symbol browser """ want = 'SYMB' -# repeated property inherits all properties and elements of the given class are inherited by this class. symbol_browsers = symbol_browser @@ -358,10 +346,6 @@ class name(aetools.NProperty): """name - """ which = 'pnam' want = 'itxt' -class index(aetools.NProperty): - """index - the number of the target """ - which = 'pidx' - want = 'long' class project_document(aetools.NProperty): """project document - the project document that contains this target """ which = 'PrjD' @@ -382,7 +366,6 @@ class type(aetools.NProperty): """type - the type of source file """ which = 'FTYP' want = 'FTYP' -# repeated property index the number of the target file class location(aetools.NProperty): """location - the location of the target file on disk """ which = 'FILE' @@ -445,7 +428,6 @@ target_files = target_file class text_document(aetools.ComponentItem): """text document - a document that contains text """ want = 'TXTD' -# repeated property inherits all properties and elements of the given class are inherited by this class. class modified(aetools.NProperty): """modified - Has the document been modified since the last save? """ which = 'imod' @@ -464,7 +446,6 @@ text_documents = text_document class ToolServer_worksheet(aetools.ComponentItem): """ToolServer worksheet - a ToolServer worksheet """ want = 'TOOL' -# repeated property inherits all properties and elements of the given class are inherited by this class. ToolServer_worksheets = ToolServer_worksheet build_progress_document._propdict = { @@ -538,7 +519,6 @@ symbol_browser._elemdict = { } target._propdict = { 'name' : name, - 'index' : index, 'project_document' : project_document, } target._elemdict = { @@ -548,7 +528,6 @@ target._elemdict = { target_file._propdict = { 'id' : id, 'type' : type, - 'index' : index, 'location' : location, 'path' : path, 'linked' : linked, @@ -629,59 +608,58 @@ _Enum_PERM = { # Indices of types declared in this module # _classdeclarations = { - 'TOOL' : ToolServer_worksheet, - '1HIR' : single_class_hierarchy, - 'SRCF' : target_file, - 'TXTD' : text_document, - 'TRGT' : target, - 'HIER' : class_hierarchy, - 'CTLG' : catalog_document, '1BRW' : single_class_browser, - 'MSSG' : message_document, - 'INSP' : project_inspector, - 'BROW' : class_browser, - 'COMP' : file_compare_document, - 'EDIT' : editor_document, 'PRJD' : project_document, - 'SBTG' : subtarget, 'SYMB' : symbol_browser, + 'EDIT' : editor_document, + 'COMP' : file_compare_document, + 'BROW' : class_browser, + 'SBTG' : subtarget, + 'MSSG' : message_document, + 'INSP' : project_inspector, + 'TXTD' : text_document, + 'CTLG' : catalog_document, + 'HIER' : class_hierarchy, + 'TRGT' : target, 'PRGS' : build_progress_document, + 'SRCF' : target_file, + 'TOOL' : ToolServer_worksheet, + '1HIR' : single_class_hierarchy, } _propdeclarations = { - 'PRER' : prerequisites, - 'DBUG' : debug, - 'CSZE' : code_size, + 'CURT' : current_target, + 'PrjD' : project_document, + 'MRGE' : merge_output, + 'WEAK' : weak_link, + 'DPND' : dependents, + 'c@#^' : inherits, + 'ID ' : id, + 'CMPD' : compiled_date, + 'LIDX' : link_index, + 'FILE' : location, 'Path' : path, - 'pnam' : name, - 'TrgT' : target, + 'LNKO' : link_against_output, + 'imod' : modified, + 'sele' : selection, 'DSZE' : data_size, - 'FTYP' : type, - 'MODD' : modified_date, 'INIT' : init_before, - 'sele' : selection, - 'imod' : modified, - 'DPND' : dependents, - 'FILE' : location, - 'LIDX' : link_index, + 'MODD' : modified_date, + 'FTYP' : type, + 'TrgT' : target, + 'pnam' : name, 'LINK' : linked, - 'ID ' : id, - 'c@#^' : inherits, - 'pidx' : index, - 'LNKO' : link_against_output, - 'WEAK' : weak_link, - 'MRGE' : merge_output, - 'CMPD' : compiled_date, - 'PrjD' : project_document, - 'CURT' : current_target, + 'CSZE' : code_size, + 'DBUG' : debug, + 'PRER' : prerequisites, } _compdeclarations = { } _enumdeclarations = { - 'PERM' : _Enum_PERM, - 'FTYP' : _Enum_FTYP, - 'DKND' : _Enum_DKND, 'Inte' : _Enum_Inte, + 'DKND' : _Enum_DKND, + 'FTYP' : _Enum_FTYP, + 'PERM' : _Enum_PERM, } diff --git a/Mac/Lib/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py b/Mac/Lib/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py index 694f59978c86..cfac35341c46 100644 --- a/Mac/Lib/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py +++ b/Mac/Lib/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py @@ -1,7 +1,7 @@ """Suite Metrowerks Shell Suite: Events supported by the Metrowerks Project Shell Level 1, version 1 -Generated from Macintosh HD:SWdev:CodeWarrior 6 MPTP:Metrowerks CodeWarrior:CodeWarrior IDE 4.1B9 +Generated from Moes:Applications (Mac OS 9):Metrowerks CodeWarrior 7.0:Metrowerks CodeWarrior:CodeWarrior IDE 4.2.6 AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -32,7 +32,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -58,7 +58,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -77,7 +77,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -103,7 +103,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -129,7 +129,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -154,7 +154,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -175,7 +175,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -195,7 +195,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -222,7 +222,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -248,7 +248,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -268,7 +268,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -288,7 +288,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -308,7 +308,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -328,7 +328,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -349,7 +349,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -374,7 +374,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -402,7 +402,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -428,7 +428,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -447,7 +447,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -468,7 +468,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -487,7 +487,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -514,7 +514,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -534,7 +534,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -554,7 +554,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -574,7 +574,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -600,7 +600,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -626,7 +626,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -651,7 +651,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -676,7 +676,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -697,7 +697,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -722,7 +722,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -742,7 +742,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -762,7 +762,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -783,7 +783,7 @@ class Metrowerks_Shell_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -809,6 +809,10 @@ class Convert_Paths(aetools.NProperty): """Convert Paths - Enables conversion of DOS & Unix-style relative paths when searching for files. """ which = 'PA04' want = 'bool' +class Require_Framework_Includes(aetools.NProperty): + """Require Framework Includes - Causes the IDE to only look in the framework access paths if a Mac OS X framework style include (i.e. ) is used. """ + which = 'PA05' + want = 'bool' class Browser_Coloring(aetools.ComponentItem): """Browser Coloring - Colors for Browser symbols. """ @@ -1033,7 +1037,6 @@ class Data_Update_Interval(aetools.NProperty): """Data Update Interval - How often to update the data while running (in seconds) """ which = 'Dt09' want = 'long' -# repeated property Auto_Target_Libraries Automatically target libraries when debugging class Stop_at_temp_breakpoint(aetools.NProperty): """Stop at temp breakpoint - Stop at a temp breakpoint on program launch. Set breakpoint type in Temp Breakpoint Type AppleEvent. """ which = 'Dt13' @@ -1270,8 +1273,6 @@ class Text_Size(aetools.NProperty): class Function_Information(aetools.ComponentItem): """Function Information - Describes the location of any function or global data definition within the current project. """ want = 'FDef' -# repeated property disk_file The location on disk of the file containing the definition. -# repeated property lineNumber The line number where the definition begins. class Global_Source_Trees(aetools.ComponentItem): """Global Source Trees - Globally-defined source tree roots """ @@ -1284,7 +1285,6 @@ class Source_Trees(aetools.NProperty): class Path_Information(aetools.ComponentItem): """Path Information - Contains all of the parameters that describe an access path. """ want = 'PInf' -# repeated property name The actual path name. class format(aetools.NProperty): """format - Format of the a """ which = 'Frmt' @@ -1301,6 +1301,10 @@ class recursive(aetools.NProperty): """recursive - Will the path be searched recursively? (Default is true) """ which = 'Recu' want = 'bool' +class framework(aetools.NProperty): + """framework - Is the path a Mac OS X framework style path? (This flag is readable but not writeable from AppleScript.) """ + which = 'Frmw' + want = 'bool' class host_flags(aetools.NProperty): """host flags - Bit fields enabling the access path for each host OS (1 = Mac OS, 2 = Windows) """ which = 'HstF' @@ -1325,8 +1329,6 @@ class filetype(aetools.NProperty): """filetype - What kind of file is this ? """ which = 'SrcT' want = 'SrcT' -# repeated property name The fileÕs name -# repeated property disk_file The fileÕs location on disk class codesize(aetools.NProperty): """codesize - The size of this fileÕs code. """ which = 'CSiz' @@ -1359,10 +1361,6 @@ class includes(aetools.NProperty): class Relative_Path(aetools.ComponentItem): """Relative Path - Relative path from some root """ want = 'RlPt' -# repeated property name relative path from the root -# repeated property format Format of the relative path -# repeated property origin Origin of the relative path -# repeated property root Name of user-defined root class Runtime_Settings(aetools.ComponentItem): """Runtime Settings - Runtime settings """ @@ -1387,7 +1385,6 @@ class Environment_Variables(aetools.NProperty): class Segment(aetools.ComponentItem): """Segment - A segment or group in the project """ want = 'Seg ' -# repeated property name class filecount(aetools.NProperty): """filecount - """ which = 'NumF' @@ -1440,7 +1437,6 @@ class Shielded_Items(aetools.NProperty): class Source_Tree(aetools.ComponentItem): """Source Tree - User-defined source tree root """ want = 'SrcT' -# repeated property name name of the user-defined source tree root class path(aetools.NProperty): """path - path for the user-defined source tree root """ which = 'Path' @@ -1449,7 +1445,6 @@ class path_kind(aetools.NProperty): """path kind - kind of path """ which = 'Kind' want = 'STKd' -# repeated property format Format of the absolute path class Syntax_Coloring(aetools.ComponentItem): """Syntax Coloring - """ @@ -1470,10 +1465,6 @@ class String_Color(aetools.NProperty): """String Color - The color for strings. """ which = 'GH04' want = 'cRGB' -# repeated property Custom_Color_1 The color for the first set of custom keywords. -# repeated property Custom_Color_2 The color for the second set custom keywords. -# repeated property Custom_Color_3 The color for the third set of custom keywords. -# repeated property Custom_Color_4 The color for the fourth set of custom keywords. class Target_Settings(aetools.ComponentItem): """Target Settings - Contains the definitions of a projectÕs target. """ @@ -1514,7 +1505,6 @@ class Use_Relative_Paths(aetools.NProperty): class Target_Source_Trees(aetools.ComponentItem): """Target Source Trees - Target-specific user-defined source tree roots """ want = 'TSTs' -# repeated property Source_Trees List of source tree roots class VCS_Setup(aetools.ComponentItem): """VCS Setup - The version control system preferences. """ @@ -1567,7 +1557,6 @@ class Local_Path(aetools.NProperty): class _class(aetools.ComponentItem): """class - A class, struct, or record type in the current project. """ want = 'Clas' -# repeated property name class language(aetools.NProperty): """language - Implementation language of this class """ which = 'Lang' @@ -1601,7 +1590,6 @@ classes = _class class member_function(aetools.ComponentItem): """member function - A class member function or method. """ want = 'MbFn' -# repeated property name class access(aetools.NProperty): """access - """ which = 'Acce' @@ -1614,9 +1602,6 @@ class static(aetools.NProperty): """static - """ which = 'Stat' want = 'bool' -# repeated property declaration_file Source file containing the member function declaration -# repeated property declaration_start_offset start of member function declaration source code -# repeated property declaration_end_offset end of member function declaration class implementation_file(aetools.NProperty): """implementation file - Source file containing the member function definition """ which = 'DfFl' @@ -1635,11 +1620,6 @@ member_functions = member_function class data_member(aetools.ComponentItem): """data member - A class data member or field """ want = 'DtMb' -# repeated property name -# repeated property access -# repeated property static -# repeated property declaration_start_offset -# repeated property declaration_end_offset data_members = data_member @@ -1650,8 +1630,6 @@ class _class(aetools.NProperty): """class - The class object corresponding to this base class """ which = 'Clas' want = 'obj ' -# repeated property access -# repeated property virtual base_classes = base_class @@ -1664,6 +1642,7 @@ Access_Paths._propdict = { 'System_Paths' : System_Paths, 'Always_Full_Search' : Always_Full_Search, 'Convert_Paths' : Convert_Paths, + 'Require_Framework_Includes' : Require_Framework_Includes, } Access_Paths._elemdict = { } @@ -1844,6 +1823,7 @@ Path_Information._propdict = { 'origin' : origin, 'root' : root, 'recursive' : recursive, + 'framework' : framework, 'host_flags' : host_flags, } Path_Information._elemdict = { @@ -2120,236 +2100,238 @@ _Enum_PthF = { # Indices of types declared in this module # _classdeclarations = { - 'DbDS' : Debugger_Display, - 'TSTs' : Target_Source_Trees, - 'VCSs' : VCS_Setup, - 'mFNT' : Font, + 'FMap' : File_Mapping, + 'Cata' : browser_catalog, + 'BSTG' : Build_Settings, + 'SrcF' : ProjectFile, 'BRKW' : Browser_Coloring, - 'PSTG' : Plugin_Settings, - 'RSTG' : Runtime_Settings, - 'MbFn' : member_function, - 'DbGL' : Debugger_Global, + 'ErrM' : Error_Information, + 'VCSs' : VCS_Setup, + 'EDTR' : Editor, 'SHFL' : Shielded_Folders, - 'EnvV' : Environment_Variable, - 'TARG' : Target_Settings, - 'RlPt' : Relative_Path, - 'BsCl' : base_class, + 'SFit' : Shielded_Folder, + 'CUKW' : Custom_Keywords, 'PInf' : Path_Information, + 'FLMP' : File_Mappings, 'Seg ' : Segment, - 'DtMb' : data_member, - 'SNTX' : Syntax_Coloring, - 'LXTR' : Build_Extras, - 'DbWN' : Debugger_Windowing, - 'PATH' : Access_Paths, + 'DbTG' : Debugger_Target, 'FDef' : Function_Information, - 'SrcT' : Source_Tree, - 'SFit' : Shielded_Folder, - 'FLMP' : File_Mappings, + 'PATH' : Access_Paths, 'GXTR' : Extras, - 'CUKW' : Custom_Keywords, + 'DbWN' : Debugger_Windowing, 'GSTs' : Global_Source_Trees, - 'EDTR' : Editor, - 'DbTG' : Debugger_Target, - 'ErrM' : Error_Information, + 'SNTX' : Syntax_Coloring, + 'BsCl' : base_class, + 'RlPt' : Relative_Path, + 'TARG' : Target_Settings, + 'EnvV' : Environment_Variable, + 'SrcT' : Source_Tree, + 'DbGL' : Debugger_Global, + 'MbFn' : member_function, + 'RSTG' : Runtime_Settings, + 'PSTG' : Plugin_Settings, + 'DtMb' : data_member, + 'LXTR' : Build_Extras, + 'mFNT' : Font, + 'TSTs' : Target_Source_Trees, + 'DbDS' : Debugger_Display, 'Clas' : _class, - 'SrcF' : ProjectFile, - 'BSTG' : Build_Settings, - 'Cata' : browser_catalog, - 'FMap' : File_Mapping, } _propdeclarations = { 'SymG' : symbols, + 'BX02' : Success_Sound, + 'BX03' : Failure_Sound, + 'BX01' : Completion_Sound, + 'BX06' : Compiler_Thread_Stack_Size, + 'BX07' : Save_Before_Building, + 'BX04' : Build_Before_Running, + 'BX05' : Include_Cache_Size, + 'NumF' : filecount, + 'Frmw' : framework, + 'Frmt' : format, + 'FN01' : Auto_Indent, + 'FN02' : Tab_Size, + 'FN03' : Tab_Indents_Selection, + 'FN04' : Tab_Inserts_Spaces, + 'Dg07' : Dont_Step_in_Runtime, + 'Dg06' : Select_Stack_Crawl, + 'Dg05' : Stop_at_Main, + 'Dg04' : Confirm_Kill, + 'Dg03' : Launch_Apps_on_Open, + 'Dg02' : Open_All_Classes, + 'Dg01' : Ignore_Mod_Dates, + 'Weak' : weak_link, + 'DcFl' : declaration_file, + 'Path' : path, + 'Recu' : recursive, + 'TA16' : Output_Directory_Location, + 'Db10' : Show_As_Decimal, 'CSiz' : codesize, + 'ErrL' : lineNumber, + 'Dt16' : Temp_Breakpoint_Type, + 'ErrS' : message, + 'BW07' : Templates_Color, + 'ErrT' : messageKind, + 'EX18' : Use_ToolServer_Menu, + 'EX19' : Automatic_Toolbar_Help, + 'TA15' : Use_Relative_Paths, + 'TA12' : Output_Directory_Origin, + 'TA13' : Pre_Linker, + 'TA10' : Target_Name, + 'TA11' : Output_Directory_Path, + 'EX10' : Use_Editor_Extensions, + 'EX11' : Use_External_Editor, + 'EX12' : Use_Script_Menu, + 'EX16' : Recent_Editor_Count, + 'EX17' : Recent_Project_Count, 'DfEn' : implementation_end_offset, - 'DcEn' : declaration_end_offset, - 'VC10' : Local_Path, - 'FMps' : Mappings, - 'VC02' : Connection_Method, - 'VC03' : Username, - 'TA02' : Extension, - 'UpTD' : up_to_date, - 'VC07' : Always_Prompt, - 'VC04' : Password, - 'VC05' : Auto_Connect, - 'Dg13' : File_Cache_Duration, - 'Dg12' : Cache_Edited_Files, - 'Dg11' : Auto_Target_Libraries, - 'VC09' : Database_Path, - 'VC06' : Store_Password, - 'Clas' : _class, - 'PA02' : Always_Full_Search, - 'PA03' : System_Paths, - 'GH04' : String_Color, - 'PA01' : User_Paths, - 'TA09' : Post_Linker, - 'PA04' : Convert_Paths, - 'Lang' : language, - 'EX31' : Cache_Subproject_Data, - 'EX30' : Dump_Browser_Info, - 'SrcT' : filetype, - 'ST01' : Source_Trees, - 'VC11' : Use_Global_Settings, - 'PLck' : seg_2d_locked, - 'GH08' : Custom_Color_4, - 'DfFl' : implementation_file, - 'GH06' : Custom_Color_2, - 'GH07' : Custom_Color_3, - 'Db10' : Show_As_Decimal, - 'GH05' : Custom_Color_1, - 'GH02' : Comment_Color, + 'Acce' : access, + 'BW02' : Constants_Color, 'Kind' : path_kind, - 'GH01' : Syntax_Coloring, - 'Dt10' : Relocated_Executable_Path, - 'BW03' : Enums_Color, - 'BW00' : Browser_Keywords, - 'Dt13' : Stop_at_temp_breakpoint, - 'Dt14' : Temp_breakpoint_names, - 'Dt15' : Cache_symbolics, - 'Dt16' : Temp_Breakpoint_Type, - 'pnam' : name, - 'DfSt' : implementation_start_offset, - 'Dw01' : Debugging_Start_Action, - 'BW08' : Typedefs_Color, - 'TA16' : Output_Directory_Location, - 'PR04' : File_Type, - 'EX04' : Modification_Date_Caching, - 'RS04' : Environment_Variables, - 'EX07' : Full_Screen_Zoom, - 'RS02' : Command_Line_Arguments, - 'RS03' : Working_Directory, - 'RS01' : Host_Application, - 'TA06' : Ignored_by_Make, - 'TA07' : Compiler, - 'TA04' : Resource_File, - 'TA05' : Launchable, - 'EX08' : External_Reference, - 'EX09' : Browser_Active, - 'Prot' : seg_2d_protected, - 'TA01' : Linker, - 'Db05' : Variable_Hints, - 'Db04' : Threads_in_Window, - 'Db07' : Variable_Changed_Hilite, - 'Db06' : Watchpoint_Hilite, - 'Db01' : Show_Variable_Types, - 'Db03' : Use_RTTI, - 'Db02' : Sort_By_Method, - 'file' : disk_file, - 'SysH' : seg_2d_system_heap, - 'Db09' : Show_Locals, 'Db08' : Default_Array_Size, + 'Db09' : Show_Locals, + 'SrcT' : filetype, + 'Db02' : Sort_By_Method, + 'Db03' : Use_RTTI, + 'Db01' : Show_Variable_Types, + 'Db06' : Watchpoint_Hilite, + 'Db07' : Variable_Changed_Hilite, + 'Db04' : Threads_in_Window, + 'Db05' : Variable_Hints, + 'TA01' : Linker, + 'EX09' : Browser_Active, + 'EX08' : External_Reference, + 'TA05' : Launchable, + 'TA04' : Resource_File, + 'TA07' : Compiler, + 'TA06' : Ignored_by_Make, + 'RS01' : Host_Application, + 'RS03' : Working_Directory, + 'RS02' : Command_Line_Arguments, + 'EX07' : Full_Screen_Zoom, + 'RS04' : Environment_Variables, + 'EX04' : Modification_Date_Caching, + 'PR04' : File_Type, + 'DfSt' : implementation_start_offset, + 'pnam' : name, + 'GH01' : Syntax_Coloring, 'GH03' : Keyword_Color, - 'VC08' : Mount_Volume, - 'SFis' : Shielded_Items, - 'SubA' : all_subclasses, - 'Prel' : seg_2d_preloaded, - 'Orig' : origin, - 'Dt02' : Log_System_Messages, - 'DcFl' : declaration_file, - 'BW02' : Constants_Color, - 'Dt09' : Data_Update_Interval, - 'Dt08' : Update_Data_While_Running, - 'BW10' : Template_Commands_in_Menu, - 'BW01' : Classes_Color, - 'EX17' : Recent_Project_Count, - 'EX16' : Recent_Editor_Count, - 'BW07' : Templates_Color, - 'BW04' : Functions_Color, - 'EX12' : Use_Script_Menu, - 'BW05' : Globals_Color, - 'EX10' : Use_Editor_Extensions, - 'TA11' : Output_Directory_Path, - 'TA10' : Target_Name, - 'TA13' : Pre_Linker, - 'TA12' : Output_Directory_Origin, - 'TA15' : Use_Relative_Paths, - 'EX19' : Automatic_Toolbar_Help, - 'EX18' : Use_ToolServer_Menu, - 'ErrT' : messageKind, - 'ptxf' : Text_Font, - 'Weak' : weak_link, - 'ptps' : Text_Size, - 'Root' : root, - 'ErrS' : message, - 'SubC' : subclasses, - 'Dg04' : Confirm_Kill, - 'SF01' : Expression_To_Match, - 'SF02' : Skip_Project_Operations, - 'SF03' : Skip_Find_And_Compare_Operations, - 'ED08' : Remember_Font, - 'ED09' : Remember_Selection, + 'GH02' : Comment_Color, + 'GH05' : Custom_Color_1, + 'GH04' : String_Color, + 'GH07' : Custom_Color_3, + 'GH06' : Custom_Color_2, + 'GH08' : Custom_Color_4, + 'ST01' : Source_Trees, + 'EX30' : Dump_Browser_Info, + 'EX31' : Cache_Subproject_Data, + 'Clas' : _class, 'DSiz' : datasize, - 'VC01' : VCS_Active, - 'ErrL' : lineNumber, - 'ED01' : Flash_Delay, - 'ED02' : Dynamic_Scroll, - 'ED03' : Balance, - 'ED04' : Use_Drag__26__Drop_Editing, - 'ED06' : Sort_Function_Popup, - 'ED07' : Use_Multiple_Undo, - 'Recu' : recursive, - 'Valu' : value, - 'Path' : path, + 'ED14' : Context_Popup_Delay, + 'ED15' : Relaxed_C_Popup_Parsing, + 'ED16' : Left_Margin_Line_Select, + 'ED17' : Default_Text_File_Format, + 'ED10' : Remember_Window, + 'ED12' : Main_Text_Color, + 'ED13' : Background_Color, + 'Prot' : seg_2d_protected, + 'Purg' : seg_2d_purgeable, + 'HstF' : host_flags, + 'Stat' : static, + 'ptps' : Text_Size, + 'PA01' : User_Paths, + 'DcSt' : declaration_start_offset, 'IncF' : includes, - 'Bfor' : initialize_before, - 'Dw02' : Do_Nothing_To_Projects, - 'TA03' : Precompiled, + 'Valu' : value, + 'ED07' : Use_Multiple_Undo, + 'ED06' : Sort_Function_Popup, + 'ED04' : Use_Drag__26__Drop_Editing, + 'ED03' : Balance, + 'ED02' : Dynamic_Scroll, + 'ED01' : Flash_Delay, + 'ED09' : Remember_Selection, + 'ED08' : Remember_Font, + 'SF03' : Skip_Find_And_Compare_Operations, + 'SF02' : Skip_Project_Operations, + 'SF01' : Expression_To_Match, + 'SubC' : subclasses, + 'SubA' : all_subclasses, + 'ptxf' : Text_Font, + 'Dg11' : Auto_Target_Libraries, 'PX01' : Plugin_Diagnostics_Level, - 'EX11' : Use_External_Editor, 'PX02' : Disable_Third_Party_COM_Plugins, - 'DcSt' : declaration_start_offset, - 'Dg01' : Ignore_Mod_Dates, - 'Dg02' : Open_All_Classes, - 'Dg03' : Launch_Apps_on_Open, + 'Lang' : language, + 'BW10' : Template_Commands_in_Menu, + 'Dt08' : Update_Data_While_Running, + 'Dt09' : Data_Update_Interval, + 'VC04' : Password, + 'Dt02' : Log_System_Messages, + 'Orig' : origin, + 'Prel' : seg_2d_preloaded, + 'UpTD' : up_to_date, + 'Dw02' : Do_Nothing_To_Projects, + 'SFis' : Shielded_Items, + 'SysH' : seg_2d_system_heap, + 'file' : disk_file, + 'Bfor' : initialize_before, + 'VC10' : Local_Path, + 'VC11' : Use_Global_Settings, + 'PLck' : seg_2d_locked, 'BW06' : Macros_Color, - 'Dg05' : Stop_at_Main, - 'Dg06' : Select_Stack_Crawl, - 'Dg07' : Dont_Step_in_Runtime, - 'HstF' : host_flags, - 'FN04' : Tab_Inserts_Spaces, - 'FN03' : Tab_Indents_Selection, - 'FN02' : Tab_Size, - 'FN01' : Auto_Indent, - 'Frmt' : format, - 'Stat' : static, + 'BW08' : Typedefs_Color, + 'Dw01' : Debugging_Start_Action, + 'BW05' : Globals_Color, + 'BW04' : Functions_Color, + 'Dt15' : Cache_symbolics, + 'Dt14' : Temp_breakpoint_names, + 'Dt13' : Stop_at_temp_breakpoint, + 'BW00' : Browser_Keywords, + 'BW03' : Enums_Color, + 'Dt10' : Relocated_Executable_Path, + 'DfFl' : implementation_file, + 'BW01' : Classes_Color, + 'TA03' : Precompiled, + 'TA02' : Extension, + 'PA05' : Require_Framework_Includes, + 'PA04' : Convert_Paths, + 'Root' : root, + 'PA03' : System_Paths, + 'PA02' : Always_Full_Search, + 'VC09' : Database_Path, + 'VC08' : Mount_Volume, + 'Dg12' : Cache_Edited_Files, + 'Dg13' : File_Cache_Duration, + 'VC05' : Auto_Connect, 'Virt' : virtual, - 'Purg' : seg_2d_purgeable, - 'NumF' : filecount, - 'Acce' : access, - 'BX05' : Include_Cache_Size, - 'BX04' : Build_Before_Running, - 'BX07' : Save_Before_Building, - 'BX06' : Compiler_Thread_Stack_Size, - 'BX01' : Completion_Sound, - 'BX03' : Failure_Sound, - 'BX02' : Success_Sound, - 'ED13' : Background_Color, - 'ED12' : Main_Text_Color, - 'ED10' : Remember_Window, - 'ED17' : Default_Text_File_Format, - 'ED16' : Left_Margin_Line_Select, - 'ED15' : Relaxed_C_Popup_Parsing, - 'ED14' : Context_Popup_Delay, + 'VC07' : Always_Prompt, + 'VC06' : Store_Password, + 'VC01' : VCS_Active, + 'VC03' : Username, + 'VC02' : Connection_Method, + 'FMps' : Mappings, + 'TA09' : Post_Linker, + 'DcEn' : declaration_end_offset, } _compdeclarations = { } _enumdeclarations = { - 'PPrm' : _Enum_PPrm, - 'BXbr' : _Enum_BXbr, - 'PthF' : _Enum_PthF, 'Lang' : _Enum_Lang, - 'PXdg' : _Enum_PXdg, - 'SrcT' : _Enum_SrcT, - 'savo' : _Enum_savo, - 'TmpB' : _Enum_TmpB, - 'DbSA' : _Enum_DbSA, - 'ErrT' : _Enum_ErrT, - 'TxtF' : _Enum_TxtF, - 'RefP' : _Enum_RefP, - 'Acce' : _Enum_Acce, + 'Inte' : _Enum_Inte, 'STKd' : _Enum_STKd, 'DgBL' : _Enum_DgBL, - 'Inte' : _Enum_Inte, + 'Acce' : _Enum_Acce, + 'RefP' : _Enum_RefP, + 'TxtF' : _Enum_TxtF, + 'DbSA' : _Enum_DbSA, + 'TmpB' : _Enum_TmpB, + 'savo' : _Enum_savo, + 'PthF' : _Enum_PthF, + 'SrcT' : _Enum_SrcT, + 'PXdg' : _Enum_PXdg, + 'ErrT' : _Enum_ErrT, + 'BXbr' : _Enum_BXbr, + 'PPrm' : _Enum_PPrm, } diff --git a/Mac/Lib/lib-scriptpackages/CodeWarrior/Required.py b/Mac/Lib/lib-scriptpackages/CodeWarrior/Required.py index 53109da4a08e..56d10bb14595 100644 --- a/Mac/Lib/lib-scriptpackages/CodeWarrior/Required.py +++ b/Mac/Lib/lib-scriptpackages/CodeWarrior/Required.py @@ -1,7 +1,7 @@ """Suite Required: Terms that every application should support Level 1, version 1 -Generated from Macintosh HD:SWdev:CodeWarrior 6 MPTP:Metrowerks CodeWarrior:CodeWarrior IDE 4.1B9 +Generated from Moes:Applications (Mac OS 9):Metrowerks CodeWarrior 7.0:Metrowerks CodeWarrior:CodeWarrior IDE 4.2.6 AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -33,7 +33,7 @@ class Required_Events(Required_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): diff --git a/Mac/Lib/lib-scriptpackages/CodeWarrior/Standard_Suite.py b/Mac/Lib/lib-scriptpackages/CodeWarrior/Standard_Suite.py index 38a96cc88020..ffe121e4abb1 100644 --- a/Mac/Lib/lib-scriptpackages/CodeWarrior/Standard_Suite.py +++ b/Mac/Lib/lib-scriptpackages/CodeWarrior/Standard_Suite.py @@ -1,7 +1,7 @@ """Suite Standard Suite: Common terms for most applications Level 1, version 1 -Generated from Macintosh HD:SWdev:CodeWarrior 6 MPTP:Metrowerks CodeWarrior:CodeWarrior IDE 4.1B9 +Generated from Moes:Applications (Mac OS 9):Metrowerks CodeWarrior 7.0:Metrowerks CodeWarrior:CodeWarrior IDE 4.2.6 AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -35,7 +35,7 @@ class Standard_Suite_Events(Standard_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -61,7 +61,7 @@ class Standard_Suite_Events(Standard_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -87,7 +87,7 @@ class Standard_Suite_Events(Standard_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -120,7 +120,7 @@ class Standard_Suite_Events(Standard_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -140,7 +140,7 @@ class Standard_Suite_Events(Standard_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -165,7 +165,7 @@ class Standard_Suite_Events(Standard_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -233,15 +233,10 @@ files = file class insertion_point(aetools.ComponentItem): """insertion point - An insertion location between two objects """ want = 'cins' -# repeated property length length of text object (in characters) -# repeated property offset offset of a text object from the beginning of the document (first char has offset 1) class line(aetools.ComponentItem): """line - lines of text """ want = 'clin' -# repeated property index index of a line object from the beginning of the document (first line has index 1) -# repeated property offset offset (in characters) of a line object from the beginning of the document -# repeated property length length in characters of this object # element 'cha ' as ['indx', 'rang', 'rele'] lines = line @@ -253,8 +248,6 @@ class contents(aetools.NProperty): """contents - the contents of the selection """ which = 'pcnt' want = 'type' -# repeated property length length of text object (in characters) -# repeated property offset offset of a text object from the beginning of the document (first char has offset 1) # element 'cha ' as ['indx', 'rele', 'rang', 'test'] # element 'clin' as ['indx', 'rang', 'rele'] # element 'ctxt' as ['rang'] @@ -262,8 +255,6 @@ class contents(aetools.NProperty): class text(aetools.ComponentItem): """text - Text """ want = 'ctxt' -# repeated property length length of text object (in characters) -# repeated property offset offset of a text object from the beginning of the document (first char has offset 1) # element 'cha ' as ['indx', 'rele', 'rang'] # element 'cins' as ['rele'] # element 'clin' as ['indx', 'rang', 'rele'] @@ -272,8 +263,6 @@ class text(aetools.ComponentItem): class window(aetools.ComponentItem): """window - A window """ want = 'cwin' -# repeated property name the title of the window -# repeated property index the number of the window class bounds(aetools.NProperty): """bounds - the boundary rectangle for the window """ which = 'pbnd' @@ -368,40 +357,38 @@ window._propdict = { } window._elemdict = { } -import Metrowerks_Shell_Suite -from Metrowerks_Shell_Suite import _Enum_savo # # Indices of types declared in this module # _classdeclarations = { - 'docu' : document, - 'cins' : insertion_point, - 'capp' : application, + 'cha ' : character, 'ctxt' : text, - 'csel' : selection_2d_object, - 'clin' : line, - 'file' : file, 'cwin' : window, - 'cha ' : character, + 'file' : file, + 'clin' : line, + 'csel' : selection_2d_object, + 'capp' : application, + 'cins' : insertion_point, + 'docu' : document, } _propdeclarations = { - 'pzum' : zoomed, + 'inte' : user_interaction, + 'pvis' : visible, 'DKND' : kind, + 'pbnd' : bounds, + 'PERM' : file_permissions, + 'docu' : document, + 'pidx' : index, 'pOff' : offset, - 'pLen' : length, - 'pnam' : name, - 'FILE' : location, - 'pcnt' : contents, 'cwin' : window, + 'FILE' : location, + 'pnam' : name, + 'pLen' : length, 'ppos' : position, - 'pidx' : index, - 'docu' : document, - 'PERM' : file_permissions, - 'pbnd' : bounds, - 'pvis' : visible, - 'inte' : user_interaction, + 'pzum' : zoomed, + 'pcnt' : contents, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/CodeWarrior/__init__.py b/Mac/Lib/lib-scriptpackages/CodeWarrior/__init__.py index c25bfb74d3d0..74866ca350b8 100644 --- a/Mac/Lib/lib-scriptpackages/CodeWarrior/__init__.py +++ b/Mac/Lib/lib-scriptpackages/CodeWarrior/__init__.py @@ -1,8 +1,9 @@ """ -Package generated from Macintosh HD:SWdev:CodeWarrior 6 MPTP:Metrowerks CodeWarrior:CodeWarrior IDE 4.1B9 +Package generated from Moes:Applications (Mac OS 9):Metrowerks CodeWarrior 7.0:Metrowerks CodeWarrior:CodeWarrior IDE 4.2.6 Resource aete resid 0 AppleEvent Suites """ import aetools +Error = aetools.Error import Required import Standard_Suite import CodeWarrior_suite diff --git a/Mac/Lib/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py b/Mac/Lib/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py index e48bb6eac4d1..167378efd464 100644 --- a/Mac/Lib/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py +++ b/Mac/Lib/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py @@ -1,7 +1,7 @@ """Suite Microsoft Internet Explorer Suite: Events defined by Internet Explorer Level 1, version 1 -Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 +Generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -13,8 +13,8 @@ _code = 'MSIE' class Microsoft_Internet_Explorer_Events: def GetSource(self, _object=None, _attributes={}, **_arguments): - """GetSource: Get the html source of a browser window - Required argument: The index of the window to get the source from. No value means get the source from the frontmost browser window. + """GetSource: Get the HTML source of a browser window + Required argument: Window Identifier of window from which to get the source. No value means get the source from the frontmost window. Keyword argument _attributes: AppleEvent attribute dictionary Returns: undocumented, typecode 'TEXT' """ @@ -27,7 +27,7 @@ class Microsoft_Internet_Explorer_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -40,7 +40,7 @@ class Microsoft_Internet_Explorer_Events: def do_script(self, _object, _attributes={}, **_arguments): """do script: Execute script commands Required argument: JavaScript text to execute - Keyword argument window: optional ID of window (as specified by the ListWindows event) to execute the script in + Keyword argument window: optional Window Identifier (as supplied by the ListWindows event) specifying context in which to execute the script Keyword argument _attributes: AppleEvent attribute dictionary Returns: Return value """ @@ -53,7 +53,27 @@ class Microsoft_Internet_Explorer_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): + raise aetools.Error, aetools.decodeerror(_arguments) + # XXXX Optionally decode result + if _arguments.has_key('----'): + return _arguments['----'] + + def PrintBrowserWindow(self, _object=None, _attributes={}, **_arguments): + """PrintBrowserWindow: Print contents of browser window (HTML) + Required argument: Window Identifier of the window to print. No value means print the frontmost browser window. + Keyword argument _attributes: AppleEvent attribute dictionary + """ + _code = 'misc' + _subcode = 'pWND' + + 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('----'): diff --git a/Mac/Lib/lib-scriptpackages/Explorer/Netscape_Suite.py b/Mac/Lib/lib-scriptpackages/Explorer/Netscape_Suite.py index d789c5d03297..588cd8f6df09 100644 --- a/Mac/Lib/lib-scriptpackages/Explorer/Netscape_Suite.py +++ b/Mac/Lib/lib-scriptpackages/Explorer/Netscape_Suite.py @@ -1,7 +1,7 @@ -"""Suite Netscape Suite: Events defined by Netscape. +"""Suite Netscape Suite: Events defined by Netscape Level 1, version 1 -Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 +Generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -13,7 +13,7 @@ _code = 'MOSS' class Netscape_Suite_Events: def Open_bookmark(self, _object=None, _attributes={}, **_arguments): - """Open bookmark: Reads in a bookmark file + """Open bookmark: Opens a bookmark file Required argument: If not available, reloads the current bookmark file Keyword argument _attributes: AppleEvent attribute dictionary """ @@ -26,7 +26,7 @@ class Netscape_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): diff --git a/Mac/Lib/lib-scriptpackages/Explorer/Required_Suite.py b/Mac/Lib/lib-scriptpackages/Explorer/Required_Suite.py index d9d2b9fb864c..7497f378e33c 100644 --- a/Mac/Lib/lib-scriptpackages/Explorer/Required_Suite.py +++ b/Mac/Lib/lib-scriptpackages/Explorer/Required_Suite.py @@ -1,7 +1,7 @@ """Suite Required Suite: Events that every application should support Level 1, version 1 -Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 +Generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -26,7 +26,7 @@ class Required_Suite_Events(Required_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -46,7 +46,7 @@ class Required_Suite_Events(Required_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -66,7 +66,7 @@ class Required_Suite_Events(Required_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -85,7 +85,7 @@ class Required_Suite_Events(Required_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): diff --git a/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py b/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py index 820d3f7c7c79..4f78802cb234 100644 --- a/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py +++ b/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py @@ -1,7 +1,7 @@ """Suite URL Suite: Standard suite for Uniform Resource Locators Level 1, version 1 -Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 +Generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -18,8 +18,8 @@ class URL_Suite_Events: def GetURL(self, _object, _attributes={}, **_arguments): """GetURL: Open the URL (and optionally save it to disk) - Required argument: The URL - Keyword argument to: Save the resolved URL contents to this file. + Required argument: URL to open + Keyword argument to: File into which to save resource located at URL. Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'GURL' @@ -31,7 +31,7 @@ class URL_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): diff --git a/Mac/Lib/lib-scriptpackages/Explorer/Web_Browser_Suite.py b/Mac/Lib/lib-scriptpackages/Explorer/Web_Browser_Suite.py index 0416617a28b9..b95083df3109 100644 --- a/Mac/Lib/lib-scriptpackages/Explorer/Web_Browser_Suite.py +++ b/Mac/Lib/lib-scriptpackages/Explorer/Web_Browser_Suite.py @@ -1,7 +1,7 @@ -"""Suite Web Browser Suite: Class of events which are sent to Web Browser applications +"""Suite Web Browser Suite: Class of events supported by Web Browser applications Level 1, version 1 -Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 +Generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -17,23 +17,18 @@ class Web_Browser_Suite_Events: 'toWindow' : 'WIND', 'Flags' : 'FLGS', 'FormData' : 'POST', - 'MIMEType' : 'MIME', - 'ProgressApp' : 'PROG', - 'ResultApp' : 'RSLT', + 'MIME_Type' : 'MIME', } def OpenURL(self, _object, _attributes={}, **_arguments): """OpenURL: Retrieves URL off the Web. - Required argument: Fully specified URL - Keyword argument to: File to save downloaded data into. - Keyword argument toWindow: Window to open this URL into. (Use -1 for top window, 0 for new window) + Required argument: Fully-qualified URL + Keyword argument to: Target file for saving downloaded data + Keyword argument toWindow: Target window for resource at URL (-1 for top window, 0 for new window) Keyword argument Flags: Valid Flags settings are: 1-Ignore the document cache; 2-Ignore the image cache; 4-Operate in background mode. - Keyword argument FormData: Posting of forms of a given MIMEType. - Keyword argument MIMEType: MIME type for the FormData. - Keyword argument ProgressApp: If specified, ProgressApp can be named to handle the user interface for process messages. - Keyword argument ResultApp: When the requested URL has been accessed and all associated documents loaded, the Web browser will issue an OpenURLResult to the ResultApp. + Keyword argument FormData: data to post + Keyword argument MIME_Type: MIME type of data being posted Keyword argument _attributes: AppleEvent attribute dictionary - Returns: TransactionID """ _code = 'WWW!' _subcode = 'OURL' @@ -44,28 +39,25 @@ class Web_Browser_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] _argmap_ShowFile = { - 'MIME_type' : 'MIME', - 'Window_ID' : 'WIND', + 'MIME_Type' : 'MIME', + 'Window_Identifier' : 'WIND', 'URL' : 'URL ', - 'ResultApp' : 'RSLT', } def ShowFile(self, _object, _attributes={}, **_arguments): - """ShowFile: Passes FileSpec containing data of a given MIME type to be rendered in a given WindowID. - Required argument: The file to show. - Keyword argument MIME_type: MIME type - Keyword argument Window_ID: ID of the window to open the file into. (Can use -1 for top window) - Keyword argument URL: A URL which allows this document to be reloaded if necessary. - Keyword argument ResultApp: When the requested URL has been accessed and all associated documents loaded, the Web browser will issue a ShowFileResult to the ResultApp. + """ShowFile: FileSpec containing data of specified MIME type to be rendered in window specified by Window Identifier. + Required argument: The file + Keyword argument MIME_Type: MIME type + Keyword argument Window_Identifier: Identifier of the target window for the URL. (Can use -1 for top window) + Keyword argument URL: URL that allows this document to be reloaded. Keyword argument _attributes: AppleEvent attribute dictionary - Returns: TransactionID """ _code = 'WWW!' _subcode = 'SHWF' @@ -76,61 +68,14 @@ class Web_Browser_Suite_Events: _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 CancelTransaction(self, _object, _attributes={}, **_arguments): - """CancelTransaction: Tells the Web browser to cancel a TransactionID is progress which the application has initiated via an OpenURL or ShowFile command. - Required argument: TransactionID - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'CANT' - - 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_QueryVersion = { - 'Major_Version' : 'MAJV', - 'Minor_Version' : 'MINV', - } - - def QueryVersion(self, _no_object=None, _attributes={}, **_arguments): - """QueryVersion: Tells the Web browser that an application which wishes to communicate with it supports a specific version (major.minor) of this SDI specification - Keyword argument Major_Version: Major version of the SDI specification the sending application supports. - Keyword argument Minor_Version: Minor version of the SDI specification the sending application supports. - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: - """ - _code = 'WWW!' - _subcode = 'QVER' - - aetools.keysubst(_arguments, self._argmap_QueryVersion) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] def CloseAllWindows(self, _no_object=None, _attributes={}, **_arguments): - """CloseAllWindows: Tells the Web browser to close all windows + """CloseAllWindows: Closes all windows Keyword argument _attributes: AppleEvent attribute dictionary Returns: Success """ @@ -143,7 +88,7 @@ class Web_Browser_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -155,9 +100,9 @@ class Web_Browser_Suite_Events: } def CloseWindow(self, _no_object=None, _attributes={}, **_arguments): - """CloseWindow: Tells the Web browser to close the window specified either by Window ID or Title. If no parameters are specified, the top window will be closed. + """CloseWindow: Close the window specified by either Window Identifier or Title. If no parameter is specified, close the top window. Keyword argument ID: ID of the window to close. (Can use -1 for top window) - Keyword argument Title: Title of the window to close. + Keyword argument Title: Title of the window to close Keyword argument _attributes: AppleEvent attribute dictionary Returns: Success """ @@ -170,40 +115,35 @@ class Web_Browser_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] - _argmap_Activate = { - 'Flags' : 'FLGS', - } - def Activate(self, _object=None, _attributes={}, **_arguments): - """Activate: Tells the Web browser to bring itself to the front and show WindowID. (Can use -1 for top window) - Required argument: WindowID - Keyword argument Flags: Reserved for future use + """Activate: Activate Internet Explorer and optionally select window designated by Window Identifier. + Required argument: Window Identifier Keyword argument _attributes: AppleEvent attribute dictionary - Returns: WindowID of the front window + Returns: Window Identifier of window to activate """ _code = 'WWW!' _subcode = 'ACTV' - aetools.keysubst(_arguments, self._argmap_Activate) + if _arguments: raise TypeError, 'No optional args expected' _arguments['----'] = _object _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] def ListWindows(self, _no_object=None, _attributes={}, **_arguments): - """ListWindows: Return a list of WindowIDs representing each windows currently being used by the Web browser. + """ListWindows: Returns list of Window Identifiers for all open windows. Keyword argument _attributes: AppleEvent attribute dictionary Returns: undocumented, typecode 'list' """ @@ -216,15 +156,15 @@ class Web_Browser_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] def GetWindowInfo(self, _object, _attributes={}, **_arguments): - """GetWindowInfo: Returns a window info record (URL/Title) for the specified window. - Required argument: WindowID of the window to get info about + """GetWindowInfo: Returns a window info record (URL/Title) for the specified window. + Required argument: Window Identifier of the window Keyword argument _attributes: AppleEvent attribute dictionary Returns: """ @@ -237,7 +177,7 @@ class Web_Browser_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -248,11 +188,11 @@ class Web_Browser_Suite_Events: } def ParseAnchor(self, _object, _attributes={}, **_arguments): - """ParseAnchor: Combine a base URL and a relative URL to produce a fully-specified URL - Required argument: MainURL.The base URL. - Keyword argument withURL: RelativeURL, which, when combined with the MainURL (in the direct object), is used to produce a fully-specified URL. + """ParseAnchor: Combines a base URL and a relative URL to produce a fully-qualified URL + Required argument: Base URL + Keyword argument withURL: Relative URL that is combined with the Base URL (in the direct object) to produce a fully-qualified URL. Keyword argument _attributes: AppleEvent attribute dictionary - Returns: The Fully specified URL + Returns: Fully-qualified URL """ _code = 'WWW!' _subcode = 'PRSA' @@ -263,353 +203,7 @@ class Web_Browser_Suite_Events: _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_BeginProgress = { - 'with_Message' : 'PMSG', - } - - def BeginProgress(self, _object, _attributes={}, **_arguments): - """BeginProgress: Initialize a progress indicator. - Required argument: TransactionID - Keyword argument with_Message: Message to display with the progress indicator. - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Success - """ - _code = 'WWW!' - _subcode = 'PRBG' - - aetools.keysubst(_arguments, self._argmap_BeginProgress) - _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_SetProgressRange = { - 'Max' : 'MAXV', - } - - def SetProgressRange(self, _object, _attributes={}, **_arguments): - """SetProgressRange: Sets a max value for the progress indicator associated with TransactionID - Required argument: TransactionID - Keyword argument Max: Max value for this progress indicator - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'PRSR' - - aetools.keysubst(_arguments, self._argmap_SetProgressRange) - _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_MakingProgress = { - 'with_message' : 'PMSG', - 'current_setting' : 'CURR', - } - - def MakingProgress(self, _object, _attributes={}, **_arguments): - """MakingProgress: Updates the progress indicator associated with TransactionID - Required argument: TransactionID - Keyword argument with_message: Message to display in the progress indicator - Keyword argument current_setting: Current value of the progress indicator - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Cancel - """ - _code = 'WWW!' - _subcode = 'PRMK' - - aetools.keysubst(_arguments, self._argmap_MakingProgress) - _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 EndProgress(self, _object, _attributes={}, **_arguments): - """EndProgress: Nortifies the application that the progress indicator associated with TransactionID is no longer needed. - Required argument: TransactionID - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'PREN' - - 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 RegisterDone(self, _object, _attributes={}, **_arguments): - """RegisterDone: Signals that all processing initiated by the RegisteNow event associated by TransactionID has finished. - Required argument: TransactionID - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: 0 = failure; 1 = success; 2 = sending application needs more time to complete operation. - """ - _code = 'WWW!' - _subcode = 'RGDN' - - 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_RegisterProtocol = { - '_for' : 'PROT', - } - - def RegisterProtocol(self, _object, _attributes={}, **_arguments): - """RegisterProtocol: Notifies that the sending application is able to handle all URLs for the specified protocol. - Required argument: application - Keyword argument _for: Protocol, such as NEWS, MAILTO, etc... - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Success - """ - _code = 'WWW!' - _subcode = 'RGPR' - - aetools.keysubst(_arguments, self._argmap_RegisterProtocol) - _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_UnRegisterProtocol = { - '_for' : 'PROT', - } - - def UnRegisterProtocol(self, _object, _attributes={}, **_arguments): - """UnRegisterProtocol: Notifies that the sending application is no longer wishes to handle URLs for the specified protocol. - Required argument: application - Keyword argument _for: Protocol, such as NEWS, MAILTO, etc... - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'UNRP' - - aetools.keysubst(_arguments, self._argmap_UnRegisterProtocol) - _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_RegisterViewer = { - '_for' : 'MIME', - 'as' : 'FTYP', - 'Flags' : 'MTHD', - } - - def RegisterViewer(self, _object, _attributes={}, **_arguments): - """RegisterViewer: Notifies that the sending application is able to handle all documents for the specified MIMEType. - Required argument: application - Keyword argument _for: MIMEType - Keyword argument as: File type for saved documents - Keyword argument Flags: undocumented, typecode 'shor' - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'RGVW' - - aetools.keysubst(_arguments, self._argmap_RegisterViewer) - _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_UnRegisterViewer = { - '_for' : 'MIME', - } - - def UnRegisterViewer(self, _object, _attributes={}, **_arguments): - """UnRegisterViewer: Notifies that the sending application is no longer wishes to handle documents of the specified MIMEType. - Required argument: application - Keyword argument _for: MIMEType - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'UNVW' - - aetools.keysubst(_arguments, self._argmap_UnRegisterViewer) - _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 RegisterURLEcho(self, _object, _attributes={}, **_arguments): - """RegisterURLEcho: Notifies that the sending application would like to receive EchoURL events. - Required argument: application - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Success - """ - _code = 'WWW!' - _subcode = 'RGUE' - - 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 UnRegisterURLEcho(self, _object, _attributes={}, **_arguments): - """UnRegisterURLEcho: Notifies that the sending application would no longer like to receive EchoURL events. - Required argument: application - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'UNRU' - - 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 RegisterWindowClose(self, _object, _attributes={}, **_arguments): - """RegisterWindowClose: Notifies that the sending application would like to receive WindowClose events. - Required argument: application - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'RGWC' - - 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 UnRegisterWindowClose(self, _object, _attributes={}, **_arguments): - """UnRegisterWindowClose: Notifies that the sending application would no longer like to receive WindowClose events. - Required argument: application - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'UNRC' - - 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 RegisterAppClose(self, _object, _attributes={}, **_arguments): - """RegisterAppClose: Notifies that the sending application would like to receive AppClose events. - Required argument: application - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'RGAC' - - 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 UnRegisterAppClose(self, _object, _attributes={}, **_arguments): - """UnRegisterAppClose: Notifies that the sending application would no longer like to receive AppClose events. - Required argument: application - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'UNRA' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): diff --git a/Mac/Lib/lib-scriptpackages/Explorer/__init__.py b/Mac/Lib/lib-scriptpackages/Explorer/__init__.py index 2a49f2e2dd0f..fd917ccd44d9 100644 --- a/Mac/Lib/lib-scriptpackages/Explorer/__init__.py +++ b/Mac/Lib/lib-scriptpackages/Explorer/__init__.py @@ -1,45 +1,51 @@ """ -Package generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 +Package generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer Resource aete resid 0 """ import aetools +Error = aetools.Error +import Required_Suite +import Standard_Suite import Web_Browser_Suite import URL_Suite import Microsoft_Internet_Explorer import Netscape_Suite -import Required_Suite _code_to_module = { + 'reqd' : Required_Suite, + '****' : Standard_Suite, 'WWW!' : Web_Browser_Suite, 'GURL' : URL_Suite, 'MSIE' : Microsoft_Internet_Explorer, 'MOSS' : Netscape_Suite, - 'reqd' : Required_Suite, } _code_to_fullname = { + 'reqd' : ('Explorer.Required_Suite', 'Required_Suite'), + '****' : ('Explorer.Standard_Suite', 'Standard_Suite'), 'WWW!' : ('Explorer.Web_Browser_Suite', 'Web_Browser_Suite'), 'GURL' : ('Explorer.URL_Suite', 'URL_Suite'), 'MSIE' : ('Explorer.Microsoft_Internet_Explorer', 'Microsoft_Internet_Explorer'), 'MOSS' : ('Explorer.Netscape_Suite', 'Netscape_Suite'), - 'reqd' : ('Explorer.Required_Suite', 'Required_Suite'), } +from Required_Suite import * +from Standard_Suite import * from Web_Browser_Suite import * from URL_Suite import * from Microsoft_Internet_Explorer import * from Netscape_Suite import * -from Required_Suite import * -class Explorer(Web_Browser_Suite_Events, +class Explorer(Required_Suite_Events, + Standard_Suite_Events, + Web_Browser_Suite_Events, URL_Suite_Events, Microsoft_Internet_Explorer_Events, Netscape_Suite_Events, - Required_Suite_Events, aetools.TalkTo): _signature = 'MSIE' diff --git a/Mac/Lib/lib-scriptpackages/Finder/Containers_and_folders.py b/Mac/Lib/lib-scriptpackages/Finder/Containers_and_folders.py index 26df454aefad..2914cc3a8e3d 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Containers_and_folders.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Containers_and_folders.py @@ -1,7 +1,7 @@ """Suite Containers and folders: Classes that can contain other file system items Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -46,6 +46,10 @@ class icon_size(aetools.NProperty): """icon size - the size of icons displayed in the window. Can be specified as a number, or ... """ which = 'lvis' want = 'long' +class view_options_window(aetools.NProperty): + """view options window - the view options window for the container (can only be opened when the container window is open) """ + which = 'vwnd' + want = 'vwnd' # element 'cobj' as ['indx', 'name'] # element 'ctnr' as ['indx', 'name'] # element 'sctr' as ['indx', 'name'] @@ -276,6 +280,7 @@ container._propdict = { 'completely_expanded' : completely_expanded, 'icon_size' : icon_size, 'icon_size' : icon_size, + 'view_options_window' : view_options_window, } container._elemdict = { 'item' : Earlier_terms.item, @@ -437,44 +442,45 @@ trash_2d_object._elemdict = { # Indices of types declared in this module # _classdeclarations = { + 'ctrs' : trash_2d_object, + 'cdsk' : desktop_2d_object, + 'sctr' : sharable_container, 'priv' : sharing_privileges, - 'cfol' : folder, 'cdis' : disk, - 'sctr' : sharable_container, + 'cfol' : folder, 'ctnr' : container, - 'cdsk' : desktop_2d_object, - 'ctrs' : trash_2d_object, } _propdeclarations = { - 'ownr' : owner_privileges, - 'spro' : protected, + 'pexp' : expanded, + 'gppr' : group_privileges, + 'prvr' : see_files, + 'ects' : entire_contents, + 'lvis' : icon_size, + 'iprv' : privileges_inherited, + 'isrv' : local_volume, 'frsp' : free_space, - 'sgrp' : group, - 'pexc' : completely_expanded, - 'sele' : selection, - 'smou' : mounted, 'pexa' : expandable, - 'istd' : startup, - 'sdsk' : startup_disk, - 'gppr' : group_privileges, - 'shar' : shared, - 'capa' : capacity, - 'isej' : ejectable, - 'gstp' : guest_privileges, + 'pexc' : completely_expanded, + 'vwnd' : view_options_window, 'warn' : warns_before_emptying, 'sown' : owner, - 'c@#^' : _3c_Inheritance_3e_, + 'prvw' : make_changes, + 'isej' : ejectable, + 'capa' : capacity, + 'shar' : shared, 'sexp' : exported, - 'isrv' : local_volume, - 'iprv' : privileges_inherited, - 'lvis' : icon_size, + 'sdsk' : startup_disk, + 'istd' : startup, + 'gstp' : guest_privileges, 'trsh' : trash, + 'smou' : mounted, + 'sele' : selection, 'prvs' : see_folders, - 'prvr' : see_files, - 'prvw' : make_changes, - 'pexp' : expanded, - 'ects' : entire_contents, + 'sgrp' : group, + 'c@#^' : _3c_Inheritance_3e_, + 'spro' : protected, + 'ownr' : owner_privileges, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/Finder/Earlier_terms.py b/Mac/Lib/lib-scriptpackages/Finder/Earlier_terms.py index 6ec7e5398864..d65043dc06b0 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Earlier_terms.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Earlier_terms.py @@ -1,7 +1,7 @@ """Suite Earlier terms: Terms that have been renamed Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -401,8 +401,10 @@ class modal(aetools.NProperty): """modal - Is the window modal? """ which = 'pmod' want = 'bool' - -resizable = titled +class resizable(aetools.NProperty): + """resizable - Is the window resizable? """ + which = 'prsz' + want = 'bool' class zoomable(aetools.NProperty): """zoomable - Is the window zoomable? """ which = 'iszm' @@ -615,110 +617,111 @@ window._elemdict = { # Indices of types declared in this module # _classdeclarations = { + 'dsut' : accessory_suitcase, + 'cprf' : preferences, + 'sctr' : sharable_container, + 'capp' : application, + 'ctrs' : trash_2d_object, + 'pcda' : accessory_process, + 'cwin' : window, 'iwnd' : information_window, - 'cwnd' : container_window, - 'inlf' : internet_location, - 'appf' : application_file, 'prcs' : process, + 'appf' : application_file, + 'inlf' : internet_location, + 'cwnd' : container_window, 'cobj' : item, - 'cwin' : window, - 'pcda' : accessory_process, - 'ctrs' : trash_2d_object, - 'capp' : application, - 'cprf' : preferences, - 'sctr' : sharable_container, - 'dsut' : accessory_suitcase, } _propdeclarations = { + 'ver2' : product_version, + 'pbnd' : bounds, + 'asdr' : folder, + 'gppr' : group_privileges, 'pidx' : index, - 'scda' : show_creation_date, - 'qpro' : properties, - 'fshr' : file_sharing, - 'pvew' : view, - 'pusd' : partition_space_used, - 'aslk' : locked, - 'sdat' : show_modification_date, - 'issl' : selected, - 'pvis' : visible, - 'slbl' : show_label, - 'wshd' : collapsed, - 'cdis' : disk, - 'usme' : use_simple_menus, + 'isfl' : floating, + 'sown' : owner, + 'fsup' : sharing_starting_up, + 'urdt' : use_relative_dates, + 'scom' : show_comments, + 'appt' : partition_size, + 'iimg' : icon, + 'asty' : file_type, + 'uswg' : use_wide_grid, + 'ptit' : titled, + 'dela' : delay_before_springing, + 'cuss' : has_custom_view_settings, + 'gstp' : guest_privileges, + 'isab' : scriptable, + 'iszm' : zoomable, 'sord' : sort_direction, - 'sexp' : exported, - 'comt' : comment, - 'dscr' : description, - 'svew' : previous_list_view, - 'svrs' : show_version, - 'sknd' : show_kind, - 'phys' : physical_size, - 'iarr' : spatial_view_arrangement, - 'smou' : mounted, - 'posn' : position, - 'cobj' : item, + 'pins' : insertion_location, + 'pspd' : stationery, + 'desk' : desktop, + 'ascd' : creation_date, + 'ctnr' : container, + 'abbx' : about_this_computer, + 'pull' : pulled_open, + 'kind' : kind, + 'ptsz' : size, + 'hclb' : closeable, + 'sgrp' : group, + 'mfre' : largest_free_block, 'revt' : remote_events, - 'asmo' : modification_date, - 'ssiz' : show_size, - 'pnam' : name, - 'mprt' : minimum_partition_size, - 'cwin' : window, - 'pcli' : clipboard, - 'spro' : protected, - 'sprt' : suggested_partition_size, - 'pisf' : frontmost, - 'sele' : selection, - 'pmod' : modal, - 'fcrt' : creator_type, - 'shar' : shared, - 'dwnd' : content_space, + 'drwr' : popup, + 'iwnd' : information_window, + 'ownr' : owner_privileges, + 'pzum' : zoomed, + 'prsz' : resizable, + 'barr' : button_view_arrangement, + 'pfrp' : Finder_preferences, 'zumf' : zoomed_full_size, - 'sfsz' : calculate_folder_sizes, - 'ID ' : id, - 'c@#^' : _3c_Inheritance_3e_, - 'pspd' : stationery, 'iprv' : inherited_privileges, - 'pfrp' : Finder_preferences, - 'barr' : button_view_arrangement, - 'ownr' : owner_privileges, - 'drwr' : popup, - 'sgrp' : group, - 'ptsz' : size, - 'kind' : kind, - 'pull' : pulled_open, - 'abbx' : about_this_computer, - 'ctnr' : container, - 'ascd' : creation_date, - 'desk' : desktop, - 'warn' : warn_before_emptying, - 'iszm' : zoomable, - 'isab' : scriptable, - 'gstp' : guest_privileges, 'vers' : version, - 'dela' : delay_before_springing, - 'ptit' : titled, - 'uswg' : use_wide_grid, - 'cuss' : has_custom_view_settings, - 'labi' : label_index, - 'iwnd' : information_window, + 'c@#^' : _3c_Inheritance_3e_, + 'ID ' : id, + 'sfsz' : calculate_folder_sizes, 'file' : file, - 'asty' : file_type, - 'appt' : partition_size, - 'scom' : show_comments, - 'pins' : insertion_location, - 'pbnd' : bounds, - 'urdt' : use_relative_dates, - 'fsup' : sharing_starting_up, - 'sown' : owner, - 'isfl' : floating, - 'hclb' : closeable, - 'iimg' : icon, - 'gppr' : group_privileges, - 'asdr' : folder, + 'dwnd' : content_space, + 'shar' : shared, + 'pmod' : modal, + 'sele' : selection, + 'pisf' : frontmost, + 'sprt' : suggested_partition_size, + 'spro' : protected, + 'pcli' : clipboard, + 'cwin' : window, + 'mprt' : minimum_partition_size, 'sprg' : spring_open_folders, - 'pzum' : zoomed, - 'ver2' : product_version, - 'mfre' : largest_free_block, + 'ssiz' : show_size, + 'asmo' : modification_date, + 'svrs' : show_version, + 'cobj' : item, + 'posn' : position, + 'iarr' : spatial_view_arrangement, + 'phys' : physical_size, + 'sknd' : show_kind, + 'labi' : label_index, + 'svew' : previous_list_view, + 'dscr' : description, + 'comt' : comment, + 'sexp' : exported, + 'usme' : use_simple_menus, + 'cdis' : disk, + 'wshd' : collapsed, + 'slbl' : show_label, + 'warn' : warn_before_emptying, + 'scda' : show_creation_date, + 'pvis' : visible, + 'issl' : selected, + 'smou' : mounted, + 'sdat' : show_modification_date, + 'fcrt' : creator_type, + 'pusd' : partition_space_used, + 'pvew' : view, + 'fshr' : file_sharing, + 'qpro' : properties, + 'aslk' : locked, + 'pnam' : name, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/Finder/Enumerations.py b/Mac/Lib/lib-scriptpackages/Finder/Enumerations.py index 3d3f3e16f4fe..9ef08a88fb98 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Enumerations.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Enumerations.py @@ -1,7 +1,7 @@ """Suite Enumerations: Enumerations for the Finder Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -16,30 +16,30 @@ class Enumerations_Events(Type_Names_Suite_Events): pass _Enum_ipnl = { - 'General Information panel' : 'gpnl', # - 'Sharing panel' : 'spnl', # - 'Memory panel' : 'mpnl', # - 'Status and Configuration panel' : 'scnl', # - 'Fonts panel' : 'fpnl', # + 'General_Information_panel' : 'gpnl', # + 'Sharing_panel' : 'spnl', # + 'Memory_panel' : 'mpnl', # + 'Status_and_Configuration_panel' : 'scnl', # + 'Fonts_panel' : 'fpnl', # } _Enum_pple = { - 'General Preferences panel' : 'pgnp', # - 'Label Preferences panel' : 'plbp', # - 'Icon View Preferences panel' : 'pivp', # - 'Button View Preferences panel' : 'pbvp', # - 'List View Preferences panel' : 'plvp', # + 'General_Preferences_panel' : 'pgnp', # + 'Label_Preferences_panel' : 'plbp', # + 'Icon_View_Preferences_panel' : 'pivp', # + 'Button_View_Preferences_panel' : 'pbvp', # + 'List_View_Preferences_panel' : 'plvp', # } _Enum_earr = { - 'not arranged' : 'narr', # - 'snap to grid' : 'grda', # - 'arranged by name' : 'nama', # - 'arranged by modification date' : 'mdta', # - 'arranged by creation date' : 'cdta', # - 'arranged by size' : 'siza', # - 'arranged by kind' : 'kina', # - 'arranged by label' : 'laba', # + 'not_arranged' : 'narr', # + 'snap_to_grid' : 'grda', # + 'arranged_by_name' : 'nama', # + 'arranged_by_modification_date' : 'mdta', # + 'arranged_by_creation_date' : 'cdta', # + 'arranged_by_size' : 'siza', # + 'arranged_by_kind' : 'kina', # + 'arranged_by_label' : 'laba', # } _Enum_sodr = { @@ -55,19 +55,19 @@ _Enum_isiz = { _Enum_vwby = { 'conflicts' : 'cflc', # - 'existing items' : 'exsi', # - 'small icon' : 'smic', # + 'existing_items' : 'exsi', # + 'small_icon' : 'smic', # 'icon' : 'iimg', # 'name' : 'pnam', # - 'modification date' : 'asmo', # + 'modification_date' : 'asmo', # 'size' : 'ptsz', # 'kind' : 'kind', # 'comment' : 'comt', # 'label' : 'labi', # 'version' : 'vers', # - 'creation date' : 'ascd', # - 'small button' : 'smbu', # - 'large button' : 'lgbu', # + 'creation_date' : 'ascd', # + 'small_button' : 'smbu', # + 'large_button' : 'lgbu', # 'grid' : 'grid', # 'all' : 'kyal', # } @@ -77,10 +77,19 @@ _Enum_gsen = { 'FPU' : 'fpu ', # 'MMU' : 'mmu ', # 'hardware' : 'hdwr', # - 'operating system' : 'os ', # - 'sound system' : 'snd ', # - 'memory available' : 'lram', # - 'memory installed' : 'ram ', # + 'operating_system' : 'os ', # + 'sound_system' : 'snd ', # + 'memory_available' : 'lram', # + 'memory_installed' : 'ram ', # +} + +_Enum_ese0 = { + 'starting_up' : 'ese2', # + 'running' : 'ese3', # + 'rebuilding_desktop' : 'ese5', # + 'copying' : 'ese4', # + 'restarting' : 'ese6', # + 'quitting' : 'ese7', # } @@ -97,11 +106,12 @@ _compdeclarations = { } _enumdeclarations = { + 'sodr' : _Enum_sodr, + 'ipnl' : _Enum_ipnl, + 'ese0' : _Enum_ese0, + 'vwby' : _Enum_vwby, 'gsen' : _Enum_gsen, - 'earr' : _Enum_earr, 'isiz' : _Enum_isiz, - 'vwby' : _Enum_vwby, + 'earr' : _Enum_earr, 'pple' : _Enum_pple, - 'ipnl' : _Enum_ipnl, - 'sodr' : _Enum_sodr, } diff --git a/Mac/Lib/lib-scriptpackages/Finder/Files_and_suitcases.py b/Mac/Lib/lib-scriptpackages/Finder/Files_and_suitcases.py index 5137594da780..24e963ec68ad 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Files_and_suitcases.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Files_and_suitcases.py @@ -1,7 +1,7 @@ """Suite Files and suitcases: Classes representing files and suitcases Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -243,37 +243,37 @@ desk_accessory_suitcase._elemdict = { # Indices of types declared in this module # _classdeclarations = { + 'sndf' : sound_file, + 'fntf' : font_file, + 'inlf' : internet_location_file, 'clpf' : clipping, - 'docf' : document_file, - 'stcs' : suitcase, - 'appf' : application_file, - 'file' : file, - 'fsut' : font_suitcase, - 'pack' : package, - 'dafi' : desk_accessory_file, 'alia' : alias_file, + 'dafi' : desk_accessory_file, 'dsut' : desk_accessory_suitcase, - 'inlf' : internet_location_file, - 'fntf' : font_file, - 'sndf' : sound_file, + 'fsut' : font_suitcase, + 'file' : file, + 'appf' : application_file, + 'stcs' : suitcase, + 'docf' : document_file, + 'pack' : package, } _propdeclarations = { - 'orig' : original_item, - 'pspd' : stationery, - 'aslk' : locked, - 'iloc' : location, - 'mprt' : minimum_size, - 'fcrt' : creator_type, - 'c@#^' : _3c_Inheritance_3e_, - 'asty' : file_type, - 'hscr' : has_scripting_terminology, - 'sprt' : suggested_size, + 'vers' : version, + 'ver2' : product_version, + 'snd ' : sound, 'appt' : preferred_size, + 'sprt' : suggested_size, 'isab' : accepts_high_level_events, - 'snd ' : sound, - 'ver2' : product_version, - 'vers' : version, + 'hscr' : has_scripting_terminology, + 'asty' : file_type, + 'c@#^' : _3c_Inheritance_3e_, + 'fcrt' : creator_type, + 'mprt' : minimum_size, + 'pspd' : stationery, + 'iloc' : location, + 'aslk' : locked, + 'orig' : original_item, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/Finder/Finder_Basics.py b/Mac/Lib/lib-scriptpackages/Finder/Finder_Basics.py index 9c4b65ef1deb..d858466c9fd1 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Finder_Basics.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Finder_Basics.py @@ -1,7 +1,7 @@ """Suite Finder Basics: Commonly-used Finder commands and object classes Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -32,7 +32,7 @@ class Finder_Basics_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -51,7 +51,7 @@ class Finder_Basics_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -70,7 +70,7 @@ class Finder_Basics_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -89,7 +89,7 @@ class Finder_Basics_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -108,7 +108,7 @@ class Finder_Basics_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -134,7 +134,7 @@ class Finder_Basics_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -196,6 +196,10 @@ class desktop(aetools.NProperty): """desktop - the desktop """ which = 'desk' want = 'cdsk' +class execution_state(aetools.NProperty): + """execution state - the current execution state of the Finder """ + which = 'exec' + want = 'ese0' class Finder_preferences(aetools.NProperty): """Finder preferences - Various preferences that apply to the Finder as a whole """ which = 'pfrp' @@ -224,6 +228,7 @@ class Finder_preferences(aetools.NProperty): # element 'cwin' as ['indx', 'name'] # element 'cwnd' as ['indx', 'name'] # element 'iwnd' as ['indx', 'name'] +# element 'vwnd' as ['indx', 'name'] # element 'lwnd' as ['indx', 'name'] # element 'dwnd' as ['indx', 'name'] @@ -285,6 +290,7 @@ application._propdict = { 'version' : version, 'about_this_computer' : about_this_computer, 'desktop' : desktop, + 'execution_state' : execution_state, 'Finder_preferences' : Finder_preferences, } application._elemdict = { @@ -312,6 +318,7 @@ application._elemdict = { 'window' : Earlier_terms.window, 'container_window' : Earlier_terms.container_window, 'information_window' : Earlier_terms.information_window, + 'view_options_window' : Window_classes.view_options_window, 'clipping_window' : Window_classes.clipping_window, 'content_space' : Window_classes.content_space, } @@ -333,34 +340,35 @@ special_folders._elemdict = { # Indices of types declared in this module # _classdeclarations = { - 'spfl' : special_folders, 'capp' : application, + 'spfl' : special_folders, } _propdeclarations = { - 'amnu' : apple_menu_items_folder, - 'extn' : extensions_folder, - 'pnam' : name, - 'fshr' : file_sharing, - 'pcli' : clipboard, - 'strt' : startup_items_folder, - 'pref' : preferences_folder, - 'pisf' : frontmost, - 'pins' : insertion_location, - 'pvis' : visible, - 'abbx' : about_this_computer, - 'temp' : temporary_items_folder, - 'font' : fonts_folder, + 'vers' : version, + 'ver2' : product_version, 'pfrp' : Finder_preferences, - 'desk' : desktop, - 'fsup' : sharing_starting_up, + 'exec' : execution_state, + 'pins' : insertion_location, 'mfre' : largest_free_block, + 'fsup' : sharing_starting_up, + 'desk' : desktop, 'ctrl' : control_panels_folder, - 'sele' : selection, - 'shdf' : shutdown_items_folder, 'macs' : system_folder, - 'ver2' : product_version, - 'vers' : version, + 'font' : fonts_folder, + 'abbx' : about_this_computer, + 'shdf' : shutdown_items_folder, + 'temp' : temporary_items_folder, + 'pvis' : visible, + 'sele' : selection, + 'pisf' : frontmost, + 'pref' : preferences_folder, + 'strt' : startup_items_folder, + 'pcli' : clipboard, + 'fshr' : file_sharing, + 'pnam' : name, + 'extn' : extensions_folder, + 'amnu' : apple_menu_items_folder, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py b/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py index 742c51a0c01b..986ecba703d3 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py @@ -1,7 +1,7 @@ """Suite Finder items: Commands used with file system items, and basic item definition Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -26,7 +26,7 @@ class Finder_items_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -51,7 +51,7 @@ class Finder_items_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -71,7 +71,7 @@ class Finder_items_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -91,7 +91,7 @@ class Finder_items_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -111,28 +111,34 @@ class Finder_items_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] + _argmap_put_away = { + 'asking' : 'fask', + } + def put_away(self, _object, _attributes={}, **_arguments): """put away: Put away the specified object(s) Required argument: the items to put away + Keyword argument asking: Specifies whether or not to present a dialog to confirm putting this item away. Keyword argument _attributes: AppleEvent attribute dictionary Returns: the object put away in its put-away location """ _code = 'fndr' _subcode = 'ptwy' - if _arguments: raise TypeError, 'No optional args expected' + aetools.keysubst(_arguments, self._argmap_put_away) _arguments['----'] = _object + aetools.enumsubst(_arguments, 'fask', _Enum_bool) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -152,7 +158,7 @@ class Finder_items_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -172,7 +178,7 @@ class Finder_items_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -293,6 +299,7 @@ item._propdict = { } item._elemdict = { } +_Enum_bool = None # XXXX enum bool not found!! # # Indices of types declared in this module @@ -302,27 +309,27 @@ _classdeclarations = { } _propdeclarations = { - 'iwnd' : information_window, - 'cdis' : disk, - 'asmo' : modification_date, - 'ascd' : creation_date, - 'pnam' : name, + 'posn' : position, + 'kind' : kind, + 'ptsz' : size, + 'phys' : physical_size, + 'dwnd' : content_space, + 'pbnd' : bounds, + 'issl' : selected, 'labi' : label_index, - 'ID ' : id, - 'iimg' : icon, + 'dscr' : description, + 'comt' : comment, + 'ctnr' : container, 'pidx' : index, - 'dwnd' : content_space, + 'iimg' : icon, + 'ID ' : id, 'cwin' : window, - 'comt' : comment, - 'dscr' : description, + 'pnam' : name, + 'ascd' : creation_date, + 'cdis' : disk, + 'asmo' : modification_date, 'asdr' : folder, - 'issl' : selected, - 'pbnd' : bounds, - 'ctnr' : container, - 'phys' : physical_size, - 'ptsz' : size, - 'kind' : kind, - 'posn' : position, + 'iwnd' : information_window, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/Finder/Obsolete_terms.py b/Mac/Lib/lib-scriptpackages/Finder/Obsolete_terms.py index 6dfd9c654fea..a30653dd258f 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Obsolete_terms.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Obsolete_terms.py @@ -1,7 +1,7 @@ """Suite Obsolete terms: Terms that have been deprecated Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -175,31 +175,31 @@ status_window._elemdict = { # Indices of types declared in this module # _classdeclarations = { - 'ccdv' : control_panel, - 'iwnd' : information_window, - 'ctnr' : container, + 'qwnd' : status_window, 'capp' : application, - 'sctr' : sharable_container, - 'cwnd' : container_window, + 'swnd' : sharing_window, + 'ccdv' : control_panel, 'prcs' : process, - 'file' : file, 'cobj' : item, - 'qwnd' : status_window, - 'swnd' : sharing_window, + 'file' : file, + 'sctr' : sharable_container, + 'cwnd' : container_window, + 'ctnr' : container, + 'iwnd' : information_window, } _propdeclarations = { - 'crtd' : creation_date_obsolete, - 'cfol' : folder_obsolete, - 'ctnr' : container, - 'cwnd' : container_window, - 'pvwp' : view_preferences, + 'fitp' : file_type_obsolete, 'swnd' : sharing_window, + 'cfol' : folder_obsolete, + 'crtd' : creation_date_obsolete, + 'islk' : locked_obsolete, + 'modd' : modification_date_obsolete, 'sctr' : sharable_container, + 'pvwp' : view_preferences, + 'cwnd' : container_window, + 'ctnr' : container, 'cobj' : item, - 'modd' : modification_date_obsolete, - 'islk' : locked_obsolete, - 'fitp' : file_type_obsolete, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/Finder/Process_classes.py b/Mac/Lib/lib-scriptpackages/Finder/Process_classes.py index 17e36dcfd913..60d098d40a82 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Process_classes.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Process_classes.py @@ -1,7 +1,7 @@ """Suite Process classes: Classes representing processes that are running Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -120,26 +120,26 @@ desk_accessory_process._elemdict = { # Indices of types declared in this module # _classdeclarations = { + 'prcs' : process, 'pcda' : desk_accessory_process, 'pcap' : application_process, - 'prcs' : process, } _propdeclarations = { - 'revt' : accepts_remote_events, - 'appf' : application_file, - 'pnam' : name, - 'file' : file, - 'pusd' : partition_space_used, - 'fcrt' : creator_type, - 'c@#^' : _3c_Inheritance_3e_, - 'asty' : file_type, - 'hscr' : has_scripting_terminology, - 'dafi' : desk_accessory_file, - 'isab' : accepts_high_level_events, - 'appt' : total_partition_size, - 'pisf' : frontmost, 'pvis' : visible, + 'pisf' : frontmost, + 'appt' : total_partition_size, + 'isab' : accepts_high_level_events, + 'dafi' : desk_accessory_file, + 'hscr' : has_scripting_terminology, + 'asty' : file_type, + 'c@#^' : _3c_Inheritance_3e_, + 'fcrt' : creator_type, + 'pusd' : partition_space_used, + 'file' : file, + 'pnam' : name, + 'appf' : application_file, + 'revt' : accepts_remote_events, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py b/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py index ef2ad1b6f3a1..1d16255519b8 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py @@ -1,7 +1,7 @@ """Suite Standard Suite: Common terms that most applications should support Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -10,7 +10,8 @@ import MacOS _code = 'CoRe' -class Standard_Suite_Events: +from StdSuites.Standard_Suite import * +class Standard_Suite_Events(Standard_Suite_Events): _argmap_open = { 'using' : 'usin', @@ -33,7 +34,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -58,7 +59,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -77,7 +78,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -97,7 +98,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -123,7 +124,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -149,7 +150,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -170,7 +171,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -202,7 +203,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -223,7 +224,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -254,7 +255,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -289,7 +290,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -309,12 +310,14 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] +import AppleScript_Suite +import AppleScript_Suite _Enum_list = None # XXXX enum list not found!! _Enum_bool = None # XXXX enum bool not found!! diff --git a/Mac/Lib/lib-scriptpackages/Finder/Type_Definitions.py b/Mac/Lib/lib-scriptpackages/Finder/Type_Definitions.py index b4d603795466..a74c330a5df1 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Type_Definitions.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Type_Definitions.py @@ -1,7 +1,7 @@ """Suite Type Definitions: Definitions of records used in scripting the Finder Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -221,46 +221,46 @@ alias_list._elemdict = { # Indices of types declared in this module # _classdeclarations = { - 'clbl' : label, - 'ifam' : icon_family, - 'alst' : alias_list, 'cprf' : preferences, + 'alst' : alias_list, + 'ifam' : icon_family, + 'clbl' : label, } _propdeclarations = { + 'dela' : delay_before_springing, + 'ics4' : small_4_bit_icon, + 'iarr' : spatial_view_arrangement, + 'barr' : button_view_arrangement, 'ics#' : small_monochrome_icon_and_mask, - 'scda' : shows_creation_date, - 'uswg' : uses_wide_grid, + 'sknd' : shows_kind, + 'svrs' : shows_version, + 'colr' : color, + 'ics8' : small_8_bit_mask, + 'icl8' : large_8_bit_icon, 'sprg' : spring_open_folders, - 'is32' : small_32_bit_icon, - 'ICN#' : large_monochrome_icon_and_mask, - 'cwin' : window, - 'sdat' : shows_modification_date, - 'iisz' : spatial_view_icon_size, - 'barr' : button_view_arrangement, - 'il32' : large_32_bit_icon, + 'vfsz' : view_font_size, + 'sfsz' : calculates_folder_sizes, 'l8mk' : large_8_bit_mask, - 'scom' : shows_comments, - 'bisz' : button_view_icon_size, - 'lisz' : list_view_icon_size, - 'slbl' : shows_label, - 'icl4' : large_4_bit_icon, - 'usme' : uses_simple_menus, - 'urdt' : uses_relative_dates, 'vfnt' : view_font, - 'sfsz' : calculates_folder_sizes, + 'urdt' : uses_relative_dates, + 'usme' : uses_simple_menus, + 'icl4' : large_4_bit_icon, + 'slbl' : shows_label, + 'lisz' : list_view_icon_size, + 'scda' : shows_creation_date, + 'bisz' : button_view_icon_size, 'pidx' : index, - 'icl8' : large_8_bit_icon, - 'ssiz' : shows_size, - 'ics8' : small_8_bit_mask, - 'colr' : color, - 'svrs' : shows_version, + 'scom' : shows_comments, + 'iisz' : spatial_view_icon_size, + 'sdat' : shows_modification_date, + 'cwin' : window, + 'ICN#' : large_monochrome_icon_and_mask, + 'is32' : small_32_bit_icon, 'pnam' : name, - 'sknd' : shows_kind, - 'vfsz' : view_font_size, - 'iarr' : spatial_view_arrangement, - 'ics4' : small_4_bit_icon, - 'dela' : delay_before_springing, + 'il32' : large_32_bit_icon, + 'uswg' : uses_wide_grid, + 'ssiz' : shows_size, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/Finder/Window_classes.py b/Mac/Lib/lib-scriptpackages/Finder/Window_classes.py index 49869462cff8..88e737b66376 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/Window_classes.py +++ b/Mac/Lib/lib-scriptpackages/Finder/Window_classes.py @@ -1,7 +1,7 @@ """Suite Window classes: Classes representing windows Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Finder +Generated from Moes:Systeemmap:Finder AETE/AEUT resource version 0/144, language 0, script 0 """ @@ -50,8 +50,10 @@ class modal(aetools.NProperty): """modal - Is the window modal? """ which = 'pmod' want = 'bool' - -resizable = titled +class resizable(aetools.NProperty): + """resizable - Is the window resizable? """ + which = 'prsz' + want = 'bool' class zoomable(aetools.NProperty): """zoomable - Is the window zoomable? """ which = 'iszm' @@ -227,6 +229,12 @@ class version(aetools.NProperty): information_windows = information_window +class view_options_window(aetools.ComponentItem): + """view options window - A View Options window """ + want = 'vwnd' + +view_options_windows = view_options_window + class preferences_window(aetools.ComponentItem): """preferences window - The Finder Preferences window """ want = 'pwnd' @@ -305,6 +313,12 @@ information_window._propdict = { } information_window._elemdict = { } +view_options_window._propdict = { + '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, + 'item' : item, +} +view_options_window._elemdict = { +} preferences_window._propdict = { '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, 'current_panel' : current_panel, @@ -325,63 +339,65 @@ content_space._elemdict = { # Indices of types declared in this module # _classdeclarations = { + 'pwnd' : preferences_window, + 'vwnd' : view_options_window, + 'cwin' : window, + 'cwnd' : container_window, 'dwnd' : content_space, 'iwnd' : information_window, 'lwnd' : clipping_window, - 'cwnd' : container_window, - 'cwin' : window, - 'pwnd' : preferences_window, } _propdeclarations = { - 'pidx' : index, - 'scda' : shows_creation_date, - 'vers' : version, - 'aslk' : locked, - 'pvew' : view, - 'sdat' : shows_modification_date, - 'drwr' : popup, - 'sprt' : suggested_size, - 'pvis' : visible, - 'ptsz' : size, - 'pull' : pulled_open, - 'slbl' : shows_label, - 'wshd' : collapsed, - 'ctnr' : container, - 'ascd' : creation_date, - 'warn' : warns_before_emptying, - 'sord' : sort_direction, - 'iszm' : zoomable, - 'comt' : comment, - 'svew' : previous_list_view, - 'svrs' : shows_version, - 'sknd' : shows_kind, - 'phys' : physical_size, + 'prsz' : resizable, + 'barr' : button_view_arrangement, + 'pzum' : zoomed, 'iarr' : spatial_view_arrangement, - 'posn' : position, - 'ptit' : titled, - 'cobj' : item, - 'asmo' : modification_date, - 'ssiz' : shows_size, - 'pnam' : name, + 'hclb' : closeable, + 'c@#^' : _3c_Inheritance_3e_, + 'ver2' : product_version, + 'sfsz' : calculates_folder_sizes, + 'sprt' : suggested_size, + 'zumf' : zoomed_full_size, + 'urdt' : uses_relative_dates, + 'panl' : current_panel, + 'pmod' : modal, + 'pspd' : stationery, + 'scom' : shows_comments, + 'appt' : preferred_size, + 'aslk' : locked, 'pbnd' : bounds, - 'mprt' : minimum_size, 'iimg' : icon, + 'mprt' : minimum_size, + 'pnam' : name, + 'ssiz' : shows_size, + 'asmo' : modification_date, + 'cobj' : item, + 'ptit' : titled, + 'posn' : position, 'cuss' : has_custom_view_settings, - 'appt' : preferred_size, - 'scom' : shows_comments, - 'pmod' : modal, - 'panl' : current_panel, - 'urdt' : uses_relative_dates, - 'zumf' : zoomed_full_size, - 'sfsz' : calculates_folder_sizes, - 'c@#^' : _3c_Inheritance_3e_, + 'phys' : physical_size, + 'sknd' : shows_kind, + 'svrs' : shows_version, + 'svew' : previous_list_view, + 'comt' : comment, + 'iszm' : zoomable, + 'sord' : sort_direction, + 'ascd' : creation_date, + 'ctnr' : container, + 'wshd' : collapsed, + 'slbl' : shows_label, + 'pull' : pulled_open, + 'ptsz' : size, + 'pvis' : visible, + 'pidx' : index, 'isfl' : floating, - 'hclb' : closeable, - 'pspd' : stationery, - 'pzum' : zoomed, - 'barr' : button_view_arrangement, - 'ver2' : product_version, + 'warn' : warns_before_emptying, + 'drwr' : popup, + 'sdat' : shows_modification_date, + 'pvew' : view, + 'scda' : shows_creation_date, + 'vers' : version, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/Finder/__init__.py b/Mac/Lib/lib-scriptpackages/Finder/__init__.py index 9447dac1441c..ede499b78c48 100644 --- a/Mac/Lib/lib-scriptpackages/Finder/__init__.py +++ b/Mac/Lib/lib-scriptpackages/Finder/__init__.py @@ -1,5 +1,5 @@ """ -Package generated from Macintosh HD:Systeemmap:Finder +Package generated from Moes:Systeemmap:Finder Resource aete resid 0 """ import aetools diff --git a/Mac/Lib/lib-scriptpackages/Netscape/Mozilla_suite.py b/Mac/Lib/lib-scriptpackages/Netscape/Mozilla_suite.py index 57b61b385ad9..c67b3ea3e20b 100644 --- a/Mac/Lib/lib-scriptpackages/Netscape/Mozilla_suite.py +++ b/Mac/Lib/lib-scriptpackages/Netscape/Mozilla_suite.py @@ -1,7 +1,7 @@ """Suite Mozilla suite: Experimental Mozilla suite Level 1, version 1 -Generated from Macintosh HD:Internet:Internet-programma's:Netscape CommunicatorŽ-map:Netscape CommunicatorŽ +Generated from Moes:Applications (Mac OS 9):Netscape CommunicatorŽ Folder:Netscape CommunicatorŽ AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -33,7 +33,7 @@ class Mozilla_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -53,7 +53,7 @@ class Mozilla_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -79,7 +79,7 @@ class Mozilla_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -99,7 +99,7 @@ class Mozilla_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -118,7 +118,7 @@ class Mozilla_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -138,7 +138,7 @@ class Mozilla_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -158,7 +158,7 @@ class Mozilla_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -177,7 +177,7 @@ class Mozilla_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -197,7 +197,7 @@ class Mozilla_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -217,7 +217,7 @@ class Mozilla_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -240,13 +240,13 @@ _Enum_comp = { } _Enum_ncmd = { - 'Get_new_mail' : '\000\000\004W', # - 'Send_queued_messages' : '\000\000\004X', # - 'Read_newsgroups' : '\000\000\004\004', # - 'Show_Inbox' : '\000\000\004\005', # - 'Show_Bookmarks_window' : '\000\000\004\006', # - 'Show_History_window' : '\000\000\004\007', # - 'Show_Address_Book_window' : '\000\000\004\011', # + 'Get_new_mail' : '\x00\x00\x04W', # + 'Send_queued_messages' : '\x00\x00\x04X', # + 'Read_newsgroups' : '\x00\x00\x04\x04', # + 'Show_Inbox' : '\x00\x00\x04\x05', # + 'Show_Bookmarks_window' : '\x00\x00\x04\x06', # + 'Show_History_window' : '\x00\x00\x04\x07', # + 'Show_Address_Book_window' : '\x00\x00\x04\t', # } @@ -263,7 +263,7 @@ _compdeclarations = { } _enumdeclarations = { - 'dire' : _Enum_dire, 'comp' : _Enum_comp, 'ncmd' : _Enum_ncmd, + 'dire' : _Enum_dire, } diff --git a/Mac/Lib/lib-scriptpackages/Netscape/PowerPlant.py b/Mac/Lib/lib-scriptpackages/Netscape/PowerPlant.py index b57086d63bf6..98672e53a8c2 100644 --- a/Mac/Lib/lib-scriptpackages/Netscape/PowerPlant.py +++ b/Mac/Lib/lib-scriptpackages/Netscape/PowerPlant.py @@ -1,7 +1,7 @@ """Suite PowerPlant: Level 0, version 0 -Generated from Macintosh HD:Internet:Internet-programma's:Netscape CommunicatorŽ-map:Netscape CommunicatorŽ +Generated from Moes:Applications (Mac OS 9):Netscape CommunicatorŽ Folder:Netscape CommunicatorŽ AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -31,7 +31,7 @@ class PowerPlant_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -55,17 +55,17 @@ class PowerPlant_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] _Enum_dbac = { - 'DoNothing' : '\000\000\000\000', # No debugging action is taken. - 'PostAlert' : '\000\000\000\001', # Post an alert. - 'LowLevelDebugger' : '\000\000\000\002', # Break into the low level debugger (MacsBug). - 'SourceDebugger' : '\000\000\000\003', # Break into the source level debugger (if source debugger is executing). + 'DoNothing' : '\x00\x00\x00\x00', # No debugging action is taken. + 'PostAlert' : '\x00\x00\x00\x01', # Post an alert. + 'LowLevelDebugger' : '\x00\x00\x00\x02', # Break into the low level debugger (MacsBug). + 'SourceDebugger' : '\x00\x00\x00\x03', # Break into the source level debugger (if source debugger is executing). } diff --git a/Mac/Lib/lib-scriptpackages/Netscape/Required_suite.py b/Mac/Lib/lib-scriptpackages/Netscape/Required_suite.py index 90b37ff63124..b1a4f827de49 100644 --- a/Mac/Lib/lib-scriptpackages/Netscape/Required_suite.py +++ b/Mac/Lib/lib-scriptpackages/Netscape/Required_suite.py @@ -1,7 +1,7 @@ """Suite Required suite: Level 0, version 0 -Generated from Macintosh HD:Internet:Internet-programma's:Netscape CommunicatorŽ-map:Netscape CommunicatorŽ +Generated from Moes:Applications (Mac OS 9):Netscape CommunicatorŽ Folder:Netscape CommunicatorŽ AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -27,7 +27,7 @@ class Required_suite_Events(Required_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -47,7 +47,7 @@ class Required_suite_Events(Required_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -66,7 +66,7 @@ class Required_suite_Events(Required_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -85,7 +85,7 @@ class Required_suite_Events(Required_Suite_Events): _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): diff --git a/Mac/Lib/lib-scriptpackages/Netscape/Standard_Suite.py b/Mac/Lib/lib-scriptpackages/Netscape/Standard_Suite.py index 1044ca841b57..fd624a8c32c6 100644 --- a/Mac/Lib/lib-scriptpackages/Netscape/Standard_Suite.py +++ b/Mac/Lib/lib-scriptpackages/Netscape/Standard_Suite.py @@ -1,7 +1,7 @@ """Suite Standard Suite: Common terms for most applications Level 1, version 1 -Generated from Macintosh HD:Internet:Internet-programma's:Netscape CommunicatorŽ-map:Netscape CommunicatorŽ +Generated from Moes:Applications (Mac OS 9):Netscape CommunicatorŽ Folder:Netscape CommunicatorŽ AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -10,7 +10,8 @@ import MacOS _code = 'CoRe' -class Standard_Suite_Events: +from StdSuites.Standard_Suite import * +class Standard_Suite_Events(Standard_Suite_Events): def close(self, _object, _attributes={}, **_arguments): """close: Close an object @@ -26,7 +27,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -47,7 +48,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -68,7 +69,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -93,7 +94,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -212,23 +213,23 @@ _classdeclarations = { } _propdeclarations = { - 'ptit' : titled, + 'prsz' : resizable, + 'busy' : busy, + 'KOSK' : kiosk_mode, + 'pvis' : visible, + 'hclb' : closeable, + 'pmod' : modal, + 'wiid' : unique_ID, + 'pbnd' : bounds, + 'iszm' : zoomable, + 'ALAP' : alert_application, 'pidx' : index, + 'isfl' : floating, + 'pnam' : name, 'ppos' : position, 'curl' : URL, - 'pnam' : name, - 'pbnd' : bounds, - 'isfl' : floating, - 'hclb' : closeable, - 'ALAP' : alert_application, - 'iszm' : zoomable, - 'pmod' : modal, 'pzum' : zoomed, - 'pvis' : visible, - 'KOSK' : kiosk_mode, - 'busy' : busy, - 'prsz' : resizable, - 'wiid' : unique_ID, + 'ptit' : titled, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/Netscape/Standard_URL_suite.py b/Mac/Lib/lib-scriptpackages/Netscape/Standard_URL_suite.py index 1498c711f936..e0abd0574e66 100644 --- a/Mac/Lib/lib-scriptpackages/Netscape/Standard_URL_suite.py +++ b/Mac/Lib/lib-scriptpackages/Netscape/Standard_URL_suite.py @@ -4,7 +4,7 @@ Level 1, version 1 -Generated from Macintosh HD:Internet:Internet-programma's:Netscape CommunicatorŽ-map:Netscape CommunicatorŽ +Generated from Moes:Applications (Mac OS 9):Netscape CommunicatorŽ Folder:Netscape CommunicatorŽ AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -39,7 +39,7 @@ class Standard_URL_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): diff --git a/Mac/Lib/lib-scriptpackages/Netscape/Text.py b/Mac/Lib/lib-scriptpackages/Netscape/Text.py index beda5b357100..50288d0540a4 100644 --- a/Mac/Lib/lib-scriptpackages/Netscape/Text.py +++ b/Mac/Lib/lib-scriptpackages/Netscape/Text.py @@ -1,7 +1,7 @@ """Suite Text: Level 0, version 0 -Generated from Macintosh HD:Internet:Internet-programma's:Netscape CommunicatorŽ-map:Netscape CommunicatorŽ +Generated from Moes:Applications (Mac OS 9):Netscape CommunicatorŽ Folder:Netscape CommunicatorŽ AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -95,22 +95,22 @@ styleset._elemdict = { # Indices of types declared in this module # _classdeclarations = { - 'stys' : styleset, 'ctxt' : text, + 'stys' : styleset, } _propdeclarations = { - 'pAft' : justbehind, - 'psct' : writing_code, - 'txst' : style, - 'colr' : color, 'pBef' : infront, - 'pnam' : name, + 'bgng' : beginning, + 'colr' : color, + 'txst' : style, + 'psct' : writing_code, + 'pAft' : justbehind, + 'end ' : end, 'ptsz' : size, 'pUpL' : updateLevel, - 'bgng' : beginning, + 'pnam' : name, 'font' : font, - 'end ' : end, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/Netscape/WorldWideWeb_suite.py b/Mac/Lib/lib-scriptpackages/Netscape/WorldWideWeb_suite.py index c42505cafa98..1c0c04f0a8ff 100644 --- a/Mac/Lib/lib-scriptpackages/Netscape/WorldWideWeb_suite.py +++ b/Mac/Lib/lib-scriptpackages/Netscape/WorldWideWeb_suite.py @@ -1,7 +1,7 @@ """Suite WorldWideWeb suite, as defined in Spyglass spec.: Level 1, version 1 -Generated from Macintosh HD:Internet:Internet-programma's:Netscape CommunicatorŽ-map:Netscape CommunicatorŽ +Generated from Moes:Applications (Mac OS 9):Netscape CommunicatorŽ Folder:Netscape CommunicatorŽ AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -42,7 +42,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -72,7 +72,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -98,7 +98,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -123,7 +123,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -144,7 +144,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -164,7 +164,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -184,7 +184,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -205,7 +205,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -225,7 +225,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -245,7 +245,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -273,7 +273,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -299,7 +299,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -325,7 +325,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -351,7 +351,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -377,7 +377,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -403,7 +403,7 @@ class WorldWideWeb_suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): diff --git a/Mac/Lib/lib-scriptpackages/Netscape/__init__.py b/Mac/Lib/lib-scriptpackages/Netscape/__init__.py index 38af42907040..4ce340c360bb 100644 --- a/Mac/Lib/lib-scriptpackages/Netscape/__init__.py +++ b/Mac/Lib/lib-scriptpackages/Netscape/__init__.py @@ -1,8 +1,9 @@ """ -Package generated from Macintosh HD:Internet:Internet-programma's:Netscape CommunicatorŽ-map:Netscape CommunicatorŽ +Package generated from Moes:Applications (Mac OS 9):Netscape CommunicatorŽ Folder:Netscape CommunicatorŽ Resource aete resid 0 """ import aetools +Error = aetools.Error import Required_suite import Standard_Suite import Standard_URL_suite diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/AppleScript_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/AppleScript_Suite.py index 58d265c7668b..f5839916536e 100644 --- a/Mac/Lib/lib-scriptpackages/StdSuites/AppleScript_Suite.py +++ b/Mac/Lib/lib-scriptpackages/StdSuites/AppleScript_Suite.py @@ -1,7 +1,7 @@ """Suite AppleScript Suite: Standard terms for AppleScript Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Extensies:AppleScript +Generated from Moes:Systeemmap:Extensies:AppleScript AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -25,7 +25,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -45,7 +45,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -64,7 +64,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -83,7 +83,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -103,7 +103,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -122,7 +122,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -141,7 +141,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -160,7 +160,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -191,7 +191,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -271,7 +271,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -292,7 +292,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -305,7 +305,7 @@ class AppleScript_Suite_Events: Returns: anything """ _code = 'ascr' - _subcode = '\255 ' + _subcode = '\xad ' if _arguments: raise TypeError, 'No optional args expected' _arguments['----'] = _object @@ -313,7 +313,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -334,7 +334,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -355,7 +355,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -376,7 +376,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -397,7 +397,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -418,7 +418,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -439,7 +439,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -460,7 +460,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -481,7 +481,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -502,7 +502,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -523,7 +523,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -544,7 +544,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -565,7 +565,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -586,7 +586,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -607,7 +607,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -628,7 +628,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -649,7 +649,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -670,7 +670,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -691,7 +691,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -712,7 +712,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -733,7 +733,7 @@ class AppleScript_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -785,14 +785,12 @@ lists = list class linked_list(aetools.ComponentItem): """linked list - An ordered collection of items """ want = 'llst' -# repeated property length the length of a list linked_lists = linked_list class vector(aetools.ComponentItem): """vector - An ordered collection of items """ want = 'vect' -# repeated property length the length of a list vectors = vector @@ -1882,37 +1880,37 @@ _Enum_eMds = { } _Enum_ekst = { - 'escape_key' : 'ks5\000', # - 'delete_key' : 'ks3\000', # - 'tab_key' : 'ks0\000', # - 'return_key' : 'ks$\000', # - 'clear_key' : 'ksG\000', # - 'enter_key' : 'ksL\000', # - 'up_arrow_key' : 'ks~\000', # - 'down_arrow_key' : 'ks}\000', # - 'left_arrow_key' : 'ks{\000', # - 'right_arrow_key' : 'ks|\000', # - 'help_key' : 'ksr\000', # - 'home_key' : 'kss\000', # - 'page_up_key' : 'kst\000', # - 'page_down_key' : 'ksy\000', # - 'forward_del_key' : 'ksu\000', # - 'end_key' : 'ksw\000', # - 'F1_key' : 'ksz\000', # - 'F2_key' : 'ksx\000', # - 'F3_key' : 'ksc\000', # - 'F4_key' : 'ksv\000', # - 'F5_key' : 'ks`\000', # - 'F6_key' : 'ksa\000', # - 'F7_key' : 'ksb\000', # - 'F8_key' : 'ksd\000', # - 'F9_key' : 'kse\000', # - 'F10_key' : 'ksm\000', # - 'F11_key' : 'ksg\000', # - 'F12_key' : 'kso\000', # - 'F13_key' : 'ksi\000', # - 'F14_key' : 'ksk\000', # - 'F15_key' : 'ksq\000', # + 'escape_key' : 'ks5\x00', # + 'delete_key' : 'ks3\x00', # + 'tab_key' : 'ks0\x00', # + 'return_key' : 'ks$\x00', # + 'clear_key' : 'ksG\x00', # + 'enter_key' : 'ksL\x00', # + 'up_arrow_key' : 'ks~\x00', # + 'down_arrow_key' : 'ks}\x00', # + 'left_arrow_key' : 'ks{\x00', # + 'right_arrow_key' : 'ks|\x00', # + 'help_key' : 'ksr\x00', # + 'home_key' : 'kss\x00', # + 'page_up_key' : 'kst\x00', # + 'page_down_key' : 'ksy\x00', # + 'forward_del_key' : 'ksu\x00', # + 'end_key' : 'ksw\x00', # + 'F1_key' : 'ksz\x00', # + 'F2_key' : 'ksx\x00', # + 'F3_key' : 'ksc\x00', # + 'F4_key' : 'ksv\x00', # + 'F5_key' : 'ks`\x00', # + 'F6_key' : 'ksa\x00', # + 'F7_key' : 'ksb\x00', # + 'F8_key' : 'ksd\x00', # + 'F9_key' : 'kse\x00', # + 'F10_key' : 'ksm\x00', # + 'F11_key' : 'ksg\x00', # + 'F12_key' : 'kso\x00', # + 'F13_key' : 'ksi\x00', # + 'F14_key' : 'ksk\x00', # + 'F15_key' : 'ksq\x00', # } @@ -1920,155 +1918,155 @@ _Enum_ekst = { # 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, - 'ctxt' : text, - 'fss ' : file_specification, - 'sat ' : Saturday, - 'ccmt' : cubic_centimetres, - 'cfet' : cubic_feet, - 'lbs ' : pounds, - 'yard' : yards, - 'sqyd' : square_yards, - 'mach' : machine, - 'utxt' : Unicode_text, - 'cstr' : C_string, - 'rdat' : data, - 'doub' : real, - 'hand' : handler, - 'sutx' : styled_Unicode_text, - 'sqmi' : square_miles, - 'undf' : _empty_ae_name, - 'reco' : record, - 'cha ' : character, - 'cobj' : item, - 'kfrm' : reference_form, - 'enum' : constant, - 'inch' : inches, - 'sqrm' : square_metres, - 'bool' : boolean, - 'prop' : property, - '****' : anything, - 'scpt' : script, - 'kgrm' : kilograms, - 'sep ' : September, - 'snd ' : sound, - 'mon ' : Monday, - 'capp' : app, - 'lr ' : list_or_record, - 'fri ' : Friday, - 'cuin' : cubic_inches, - 'mar ' : March, - 'galn' : gallons, - 'encs' : encoded_string, + 'mile' : miles, + 'kprs' : keystroke, + 'psct' : writing_code, + 'degf' : degrees_Fahrenheit, + 'lrs ' : list_2c__record_or_text, + 'ldt ' : date, 'litr' : litres, - 'case' : upper_case, - 'styl' : styled_Clipboard_text, - 'llst' : linked_list, - 'pcls' : _class, - 'jun ' : June, - 'ns ' : number_or_string, - 'ozs ' : ounces, - 'mnth' : month, - 'metr' : metres, - 'jan ' : January, + 'nd ' : number_or_date, + 'cmtr' : centimetres, + 'evnt' : event, 'pstr' : Pascal_string, - 'alis' : alias, - 'gram' : grams, - 'msng' : missing_value, - 'qrts' : quarts, - 'nov ' : November, - 'list' : list, - 'sqft' : square_feet, - 'kmtr' : kilometres, + '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, - 'apr ' : April, - 'nd ' : number_or_date, - 'wkdy' : weekday, - 'vect' : vector, - 'obj ' : reference, - 'sqkm' : square_kilometres, - 'dec ' : December, - 'wed ' : Wednesday, - 'cyrd' : cubic_yards, - 'vers' : version, - 'tue ' : Tuesday, - 'prep' : preposition, - 'type' : type_class, - 'citm' : text_item, - 'citl' : writing_code_info, - 'sf ' : alias_or_string, + 'mar ' : March, + 'kmtr' : kilometres, + 'sqft' : square_feet, + 'list' : list, + 'doub' : real, + 'nov ' : November, + 'qrts' : quarts, 'degc' : degrees_Celsius, - 'long' : integer, - 'ls ' : list_or_string, - 'PICT' : picture, - 'zone' : zone, - 'psct' : writing_code, - 'lrs ' : list_2c__record_or_text, - 'cmtr' : centimetres, - 'evnt' : event, - 'oct ' : October, + '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, - 'ldt ' : date, + '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, - 'degf' : degrees_Fahrenheit, - 'kprs' : keystroke, - 'mile' : miles, - 'feb ' : February, - 'feet' : feet, - 'nds ' : number_2c__date_or_text, - 'STXT' : styled_text, - 'cmet' : cubic_metres, - 'sun ' : Sunday, - 'aug ' : August, - 'may ' : May, - 'jul ' : July, - 'TEXT' : string, + '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, } _propdeclarations = { - 'pscd' : script_code, - 'rslt' : result, - 'pnam' : name, - 'time' : time, - 'txdl' : text_item_delimiters, - 'prln' : print_length, - 'prdp' : print_depth, + 'week' : weeks, 'kMod' : modifiers, - 'days' : days, - 'spac' : space, - 'kMsg' : key, - 'plcd' : language_code, - 'ret ' : _return, - 'tstr' : time_string, + 'pare' : parent, + 'leng' : length, 'hour' : hours, - 'tab ' : tab, - 'rvse' : reverse, + 'mnth' : month, + 'min ' : minutes, 'wkdy' : weekday, - 'day ' : day, - 'ID ' : id, - 'c@#^' : _3c_Inheritance_3e_, - 'kknd' : key_kind, - 'ascr' : AppleScript, - 'rest' : rest, 'dstr' : date_string, - 'min ' : minutes, - 'pi ' : pi, - 'leng' : length, + 'rest' : rest, + 'ascr' : AppleScript, + 'kknd' : key_kind, + 'c@#^' : _3c_Inheritance_3e_, + 'ID ' : id, 'year' : year, - 'pare' : parent, - 'mnth' : month, - 'week' : weeks, + 'rvse' : reverse, + 'tab ' : tab, + 'tstr' : time_string, + 'pi ' : pi, + 'ret ' : _return, + 'plcd' : language_code, + 'kMsg' : key, + 'spac' : space, + 'days' : days, + 'txdl' : text_item_delimiters, + 'prdp' : print_depth, + 'prln' : print_length, + 'pscd' : script_code, + 'time' : time, + 'pnam' : name, + 'rslt' : result, + 'day ' : day, } _compdeclarations = { } _enumdeclarations = { - 'boov' : _Enum_boov, - 'ekst' : _Enum_ekst, - 'misc' : _Enum_misc, - 'cons' : _Enum_cons, 'eMds' : _Enum_eMds, + 'cons' : _Enum_cons, + 'misc' : _Enum_misc, + 'ekst' : _Enum_ekst, + 'boov' : _Enum_boov, } diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/Macintosh_Connectivity_Clas.py b/Mac/Lib/lib-scriptpackages/StdSuites/Macintosh_Connectivity_Clas.py index ce1bb76cd621..9eb9f7ff1876 100644 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Macintosh_Connectivity_Clas.py +++ b/Mac/Lib/lib-scriptpackages/StdSuites/Macintosh_Connectivity_Clas.py @@ -1,7 +1,7 @@ """Suite Macintosh Connectivity Classes: Classes relating to Apple Macintosh personal computer connectivity Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Extensies:AppleScript +Generated from Moes:Systeemmap:Extensies:AppleScript AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -36,7 +36,6 @@ 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' @@ -65,7 +64,6 @@ 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' @@ -84,32 +82,24 @@ 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' @@ -124,7 +114,6 @@ 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' @@ -143,12 +132,10 @@ 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' @@ -159,15 +146,12 @@ 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' @@ -332,39 +316,39 @@ _Enum_epro = { # 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, + 'cat ' : AppleTalk_address, + 'cadr' : address_specification, 'ctok' : Token_Ring_address, 'cfw ' : FireWire_address, - 'cadr' : address_specification, - 'cat ' : AppleTalk_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, } _propdeclarations = { - 'pnod' : node, - 'pslu' : LUN, - 'patm' : AppleTalk_machine, - 'pdva' : device_address, - 'pscb' : SCSI_bus, + 'pdns' : DNS_form, 'ppor' : port, - 'pALL' : properties, - 'ID ' : ID, - 'c@#^' : _3c_inheritance_3e_, - 'pdvt' : device_type, - 'pnet' : network, + 'patt' : AppleTalk_type, + 'pprt' : protocol, + 'pcon' : conduit, 'patz' : AppleTalk_zone, + 'pnet' : network, + 'pdvt' : device_type, 'pnam' : name, - 'pcon' : conduit, - 'pprt' : protocol, - 'patt' : AppleTalk_type, + 'c@#^' : _3c_inheritance_3e_, + 'ID ' : ID, + 'pALL' : properties, + 'pscb' : SCSI_bus, + 'pdva' : device_address, + 'patm' : AppleTalk_machine, 'psoc' : socket, - 'pdns' : DNS_form, + 'pslu' : LUN, + 'pnod' : node, } _compdeclarations = { @@ -372,6 +356,6 @@ _compdeclarations = { _enumdeclarations = { 'econ' : _Enum_econ, - 'epro' : _Enum_epro, 'edvt' : _Enum_edvt, + 'epro' : _Enum_epro, } diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py index 74ba319c5289..cf29e47659b8 100644 --- a/Mac/Lib/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py +++ b/Mac/Lib/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py @@ -1,7 +1,7 @@ """Suite QuickDraw Graphics Suite: A set of basic classes for graphics Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Extensies:AppleScript +Generated from Moes:Systeemmap:Extensies:AppleScript AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -188,7 +188,6 @@ ovals = oval class pixel(aetools.ComponentItem): """pixel - A pixel """ want = 'cpxl' -# repeated property color the color pixels = pixel @@ -344,62 +343,62 @@ _Enum_arro = { # Indices of types declared in this module # _classdeclarations = { - 'crec' : rectangle, - 'cpix' : pixel_map, - 'carc' : arc, + '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, - 'cpgn' : polygon, - 'cdrw' : drawing_area, - 'cgob' : graphic_object, - 'glin' : graphic_line, - 'cgtx' : graphic_text, - 'covl' : oval, - 'cpic' : graphic_group, + 'carc' : arc, + 'cpix' : pixel_map, + 'crec' : rectangle, } _propdeclarations = { + 'pbpt' : background_pattern, + 'flcl' : fill_color, + 'parc' : arc_angle, + 'pbnd' : bounds, + 'colr' : color, + 'flpt' : fill_pattern, + 'ustl' : uniform_styles, + 'font' : font, 'pend' : end_point, - 'pupd' : update_on_change, 'pstp' : start_point, - 'pdrt' : definition_rect, - 'pnam' : name, - 'pbcl' : background_color, + 'pang' : start_angle, '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, + 'cltb' : color_table, + 'ptxc' : text_color, 'ptxf' : default_font, + 'ppcl' : pen_color, + 'ptps' : default_size, + 'ppwd' : pen_width, + 'arro' : arrow_style, 'pcwd' : corner_curve_width, - 'ptxc' : text_color, - 'cltb' : color_table, - 'pppa' : pen_pattern, - 'pang' : start_angle, - 'flpt' : fill_pattern, - 'colr' : color, - 'pbnd' : bounds, + 'txst' : style, + 'psct' : writing_code, + 'pdst' : dash_style, + 'ptlt' : point_list, + 'gobs' : ordering, + 'pdpt' : pixel_depth, + 'pnel' : default_location, + 'pchd' : corner_curve_height, + 'pbcl' : background_color, + 'pnam' : name, + 'pdrt' : definition_rect, 'ptsz' : size, - 'parc' : arc_angle, - 'flcl' : fill_color, - 'pbpt' : background_pattern, + 'pupd' : update_on_change, + 'pppa' : pen_pattern, } _compdeclarations = { } _enumdeclarations = { - 'tran' : _Enum_tran, 'arro' : _Enum_arro, + 'tran' : _Enum_tran, } diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suppleme.py b/Mac/Lib/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suppleme.py index 880a77216877..74ef6da77aa1 100644 --- a/Mac/Lib/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suppleme.py +++ b/Mac/Lib/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suppleme.py @@ -1,7 +1,7 @@ """Suite QuickDraw Graphics Supplemental Suite: Defines transformations of graphic objects Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Extensies:AppleScript +Generated from Moes:Systeemmap:Extensies:AppleScript AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -60,8 +60,8 @@ _classdeclarations = { _propdeclarations = { 'prot' : rotation, - 'pscl' : scale, 'ptrs' : translation, + 'pscl' : scale, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/Required_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/Required_Suite.py index 952a10e2815f..cb84ffeda83a 100644 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Required_Suite.py +++ b/Mac/Lib/lib-scriptpackages/StdSuites/Required_Suite.py @@ -1,7 +1,7 @@ """Suite Required Suite: Every application supports open, print, run, and quit Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Extensies:AppleScript +Generated from Moes:Systeemmap:Extensies:AppleScript AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -10,7 +10,8 @@ import MacOS _code = 'reqd' -class Required_Suite_Events: +from _builtinSuites.builtin_Suite import * +class Required_Suite_Events(builtin_Suite_Events): pass diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/Standard_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/Standard_Suite.py index 7870acda5c8f..652824c77824 100644 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Standard_Suite.py +++ b/Mac/Lib/lib-scriptpackages/StdSuites/Standard_Suite.py @@ -1,7 +1,7 @@ """Suite Standard Suite: Common terms for most applications Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Extensies:AppleScript +Generated from Moes:Systeemmap:Extensies:AppleScript AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -10,7 +10,8 @@ import MacOS _code = 'core' -class Standard_Suite_Events: +from _builtinSuites.builtin_Suite import * +class Standard_Suite_Events(builtin_Suite_Events): def open(self, _object, _attributes={}, **_arguments): """open: Open the specified object(s) @@ -26,7 +27,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -45,7 +46,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -64,7 +65,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -84,7 +85,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -109,7 +110,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -137,7 +138,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -163,7 +164,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -183,7 +184,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -211,7 +212,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -232,7 +233,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -263,7 +264,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -289,7 +290,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -316,7 +317,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -336,7 +337,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -362,7 +363,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -388,7 +389,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -414,7 +415,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -440,7 +441,7 @@ class Standard_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): @@ -655,49 +656,49 @@ _Enum_styl = { # 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, + 'file' : file, + 'csel' : selection_2d_object, + 'alis' : alias, + 'capp' : application, + 'cins' : insertion_point, + 'docu' : document, } _propdeclarations = { - 'ptit' : titled, + 'prsz' : resizable, + 'vers' : version, '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, + 'imod' : modified, + 'pbnd' : bounds, + 'sele' : selection, + 'pisf' : frontmost, + 'pspd' : stationery, + 'isfl' : floating, + 'iszm' : zoomable, + 'hclb' : closeable, + 'pcli' : clipboard, 'pmod' : modal, - 'vers' : version, - 'prsz' : resizable, + 'pcnt' : contents, + 'pnam' : name, + 'pzum' : zoomed, + 'ptit' : titled, } _compdeclarations = { - '> ' : _3e_, - 'bgwt' : starts_with, + '< ' : _3c_, + 'ends' : ends_with, '>= ' : _b3_, - '= ' : _3d_, - '<= ' : _b2_, 'cont' : contains, - 'ends' : ends_with, - '< ' : _3c_, + '<= ' : _b2_, + '= ' : _3d_, + 'bgwt' : starts_with, + '> ' : _3e_, } _enumdeclarations = { - 'styl' : _Enum_styl, 'savo' : _Enum_savo, + 'styl' : _Enum_styl, 'kfrm' : _Enum_kfrm, } diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/Table_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/Table_Suite.py index 0e626664fc16..db3bca3afe00 100644 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Table_Suite.py +++ b/Mac/Lib/lib-scriptpackages/StdSuites/Table_Suite.py @@ -1,7 +1,7 @@ """Suite Table Suite: Classes for manipulating tables Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Extensies:AppleScript +Generated from Moes:Systeemmap:Extensies:AppleScript AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -81,15 +81,15 @@ _Enum_prtn = { # _classdeclarations = { 'ccel' : cell, - 'ctbl' : table, 'ccol' : column, + 'ctbl' : table, 'crow' : row, } _propdeclarations = { - 'ppro' : protection, - 'pfor' : formula, 'pnam' : name, + 'pfor' : formula, + 'ppro' : protection, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/Text_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/Text_Suite.py index 2f18df136681..997adc8237b8 100644 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Text_Suite.py +++ b/Mac/Lib/lib-scriptpackages/StdSuites/Text_Suite.py @@ -1,7 +1,7 @@ """Suite Text Suite: A set of basic classes for text processing Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Extensies:AppleScript +Generated from Moes:Systeemmap:Extensies:AppleScript AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -26,7 +26,6 @@ class _3c_inheritance_3e_(aetools.NProperty): 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' @@ -37,7 +36,6 @@ 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 @@ -77,7 +75,6 @@ class uniform_styles(aetools.NProperty): 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' @@ -102,7 +99,6 @@ 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 = { @@ -183,27 +179,27 @@ _Enum_styl = { # 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, + 'cflo' : text_flow, + 'tsty' : text_style_info, + 'clin' : line, + 'cwor' : word, + 'ctxt' : text, } _propdeclarations = { - 'psct' : writing_code, - 'txst' : style, + 'ptsz' : size, + 'ofst' : off_styles, + 'pjst' : justification, 'colr' : color, - 'font' : font, - 'pnam' : name, + 'txst' : style, + 'psct' : writing_code, 'ustl' : uniform_styles, - 'pjst' : justification, - 'ofst' : off_styles, - 'onst' : on_styles, - 'ptsz' : size, 'c@#^' : _3c_inheritance_3e_, + 'pnam' : name, + 'font' : font, + 'onst' : on_styles, } _compdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/Type_Names_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/Type_Names_Suite.py index d47e0b3369ae..54f5f7573e6c 100644 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Type_Names_Suite.py +++ b/Mac/Lib/lib-scriptpackages/StdSuites/Type_Names_Suite.py @@ -1,7 +1,7 @@ """Suite Type Names Suite: Terminology for Registry data types Level 1, version 1 -Generated from Macintosh HD:Systeemmap:Extensies:AppleScript +Generated from Moes:Systeemmap:Extensies:AppleScript AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -347,46 +347,46 @@ target_id._elemdict = { # Indices of types declared in this module # _classdeclarations = { - 'targ' : target_id, - 'null' : null, - 'lfxd' : long_fixed, - 'TIFF' : TIFF_picture, + '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, - '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, + 'lfrc' : long_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, + 'suin' : type_suite_info, + 'trot' : rotation, + 'pmin' : type_parameter_info, + 'fixd' : fixed, 'styl' : scrap_styles, - 'aeut' : system_dictionary, - 'tr16' : RGB16_color, - 'shor' : small_integer, - 'TEXT' : plain_text, + '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, } _propdeclarations = { diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/__init__.py b/Mac/Lib/lib-scriptpackages/StdSuites/__init__.py index fd6c61ee7a55..ac2182928bd5 100644 --- a/Mac/Lib/lib-scriptpackages/StdSuites/__init__.py +++ b/Mac/Lib/lib-scriptpackages/StdSuites/__init__.py @@ -1,8 +1,9 @@ """ -Package generated from Macintosh HD:Systeemmap:Extensies:AppleScript +Package generated from Moes:Systeemmap:Extensies:AppleScript Resource aeut resid 0 Standard Event Suites for English """ import aetools +Error = aetools.Error import AppleScript_Suite import Required_Suite import Standard_Suite -- 2.47.3