diff options
Diffstat (limited to 'Mac/Lib/lib-scriptpackages')
46 files changed, 0 insertions, 15569 deletions
diff --git a/Mac/Lib/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py b/Mac/Lib/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py deleted file mode 100644 index 7bc5b19..0000000 --- a/Mac/Lib/lib-scriptpackages/CodeWarrior/CodeWarrior_suite.py +++ /dev/null @@ -1,682 +0,0 @@ -"""Suite CodeWarrior suite: Terms for scripting the CodeWarrior IDE -Level 0, version 0 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'CWIE' - -class CodeWarrior_suite_Events: - - _argmap_add = { - 'new' : 'kocl', - 'with_data' : 'data', - 'to_targets' : 'TTGT', - 'to_group' : 'TGRP', - } - - def add(self, _object, _attributes={}, **_arguments): - """add: add elements to a project or target - Required argument: an AE object reference - Keyword argument new: the class of the new element or elements to add - Keyword argument with_data: the initial data for the element or elements - Keyword argument to_targets: the targets to which the new element or elements will be added - Keyword argument to_group: the group to which the new element or elements will be added - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'CWIE' - _subcode = 'ADDF' - - aetools.keysubst(_arguments, self._argmap_add) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_export = { - 'in_' : 'kfil', - } - - def export(self, _no_object=None, _attributes={}, **_arguments): - """export: Export the project file as an XML file - Keyword argument in_: the XML file in which to export the project - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'CWIE' - _subcode = 'EXPT' - - aetools.keysubst(_arguments, self._argmap_export) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def update(self, _no_object=None, _attributes={}, **_arguments): - """update: bring a project or target up to date - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'CWIE' - _subcode = 'UP2D' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def check(self, _object=None, _attributes={}, **_arguments): - """check: check the syntax of a file in a project or target - Required argument: the file or files to be checked - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'CWIE' - _subcode = 'CHEK' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def compile_file(self, _object=None, _attributes={}, **_arguments): - """compile file: compile a file in a project or target - Required argument: the file or files to be compiled - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'CWIE' - _subcode = 'COMP' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def disassemble_file(self, _object=None, _attributes={}, **_arguments): - """disassemble file: disassemble a file in a project or target - Required argument: the file or files to be disassembled - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'CWIE' - _subcode = 'DASM' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def build(self, _no_object=None, _attributes={}, **_arguments): - """build: build a project or target (equivalent of the Make menu command) - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'CWIE' - _subcode = 'MAKE' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def remove_target_files(self, _object, _attributes={}, **_arguments): - """remove target files: remove files from a target - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'CWIE' - _subcode = 'RMFL' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def remove_object_code(self, _no_object=None, _attributes={}, **_arguments): - """remove object code: remove object code from a project or target - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'CWIE' - _subcode = 'RMOB' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def run_target(self, _no_object=None, _attributes={}, **_arguments): - """run target: run a project or target - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'CWIE' - _subcode = 'RUN ' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def touch_file(self, _object=None, _attributes={}, **_arguments): - """touch file: touch a file in a project or target for compilation - Required argument: the file or files to be touched - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'CWIE' - _subcode = 'TOCH' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -class build_progress_document(aetools.ComponentItem): - """build progress document - a build progress document """ - want = 'PRGS' -class inherits(aetools.NProperty): - """inherits - all properties and elements of the given class are inherited by this class. """ - which = 'c@#^' - want = 'docu' - -build_progress_documents = build_progress_document - -class catalog_document(aetools.ComponentItem): - """catalog document - a browser catalog document """ - want = 'CTLG' - -catalog_documents = catalog_document - -class class_browser(aetools.ComponentItem): - """class browser - a class browser """ - want = 'BROW' - -class_browsers = class_browser - -class class_hierarchy(aetools.ComponentItem): - """class hierarchy - a class hierarchy document """ - want = 'HIER' - -class_hierarchies = class_hierarchy - -class editor_document(aetools.ComponentItem): - """editor document - an editor document """ - want = 'EDIT' - -editor_documents = editor_document - -class file_compare_document(aetools.ComponentItem): - """file compare document - a file compare document """ - want = 'COMP' - -file_compare_documents = file_compare_document - -class message_document(aetools.ComponentItem): - """message document - a message document """ - want = 'MSSG' - -message_documents = message_document - -class project_document(aetools.ComponentItem): - """project document - a project document """ - want = 'PRJD' -class current_target(aetools.NProperty): - """current target - the current target """ - which = 'CURT' - want = 'TRGT' -# element 'TRGT' as ['indx', 'name', 'test', 'rang'] - -project_documents = project_document - -class project_inspector(aetools.ComponentItem): - """project inspector - the project inspector """ - want = 'INSP' - -project_inspectors = project_inspector - -class single_class_browser(aetools.ComponentItem): - """single class browser - a single class browser """ - want = '1BRW' - -single_class_browsers = single_class_browser - -class single_class_hierarchy(aetools.ComponentItem): - """single class hierarchy - a single class hierarchy document """ - want = '1HIR' - -single_class_hierarchies = single_class_hierarchy - -class subtarget(aetools.ComponentItem): - """subtarget - a target that is prerequisite for another target """ - want = 'SBTG' -class target(aetools.NProperty): - """target - the target that is dependent on this subtarget """ - which = 'TrgT' - want = 'TRGT' -class link_against_output(aetools.NProperty): - """link against output - is the output of this subtarget linked into its dependent target? """ - which = 'LNKO' - want = 'bool' - -subtargets = subtarget - -class symbol_browser(aetools.ComponentItem): - """symbol browser - a symbol browser """ - want = 'SYMB' - -symbol_browsers = symbol_browser - -class target(aetools.ComponentItem): - """target - a target in a project """ - want = 'TRGT' -class name(aetools.NProperty): - """name - """ - which = 'pnam' - want = 'itxt' -class project_document(aetools.NProperty): - """project document - the project document that contains this target """ - which = 'PrjD' - want = 'PRJD' -# element 'SRCF' as ['indx', 'test', 'rang'] -# element 'SBTG' as ['indx', 'test', 'rang'] - -targets = target - -class target_file(aetools.ComponentItem): - """target file - a source or header file in a target """ - want = 'SRCF' -class id(aetools.NProperty): - """id - the unique ID number of the target file """ - which = 'ID ' - want = 'long' -class type(aetools.NProperty): - """type - the type of source file """ - which = 'FTYP' - want = 'FTYP' -class location(aetools.NProperty): - """location - the location of the target file on disk """ - which = 'FILE' - want = 'fss ' -class path(aetools.NProperty): - """path - the path of the source file on disk """ - which = 'Path' - want = 'itxt' -class linked(aetools.NProperty): - """linked - is the source file in the link order of its target? """ - which = 'LINK' - want = 'bool' -class link_index(aetools.NProperty): - """link index - the index of the source file in its target\xd5s link order (-1 if source file is not in link order) """ - which = 'LIDX' - want = 'long' -class modified_date(aetools.NProperty): - """modified date - the date and time this source file was last modified """ - which = 'MODD' - want = 'ldt ' -class compiled_date(aetools.NProperty): - """compiled date - the date and this source file was last compiled """ - which = 'CMPD' - want = 'ldt ' -class code_size(aetools.NProperty): - """code size - the size of the code (in bytes) produced by compiling this source file """ - which = 'CSZE' - want = 'long' -class data_size(aetools.NProperty): - """data size - the size of the date (in bytes) produced by compiling this source file """ - which = 'DSZE' - want = 'long' -class debug(aetools.NProperty): - """debug - is debugging information generated for this source file? """ - which = 'DBUG' - want = 'bool' -class weak_link(aetools.NProperty): - """weak link - is this shared library linked weakly? """ - which = 'WEAK' - want = 'bool' -class init_before(aetools.NProperty): - """init before - is the \xd4initialize before\xd5 flag set for this shared library? """ - which = 'INIT' - want = 'bool' -class merge_output(aetools.NProperty): - """merge output - is this shared library merged into another code fragment? """ - which = 'MRGE' - want = 'bool' -class prerequisites(aetools.NProperty): - """prerequisites - the source files needed to build this source file """ - which = 'PRER' - want = 'list' -class dependents(aetools.NProperty): - """dependents - the source files that need this source file in order to build """ - which = 'DPND' - want = 'list' - -target_files = target_file - -class text_document(aetools.ComponentItem): - """text document - a document that contains text """ - want = 'TXTD' -class modified(aetools.NProperty): - """modified - Has the document been modified since the last save? """ - which = 'imod' - want = 'bool' -class selection(aetools.NProperty): - """selection - the selection visible to the user """ - which = 'sele' - want = 'csel' -# element 'cha ' as ['indx', 'rele', 'rang', 'test'] -# element 'cins' as ['rele'] -# element 'clin' as ['indx', 'rang', 'rele'] -# element 'ctxt' as ['rang'] - -text_documents = text_document - -class ToolServer_worksheet(aetools.ComponentItem): - """ToolServer worksheet - a ToolServer worksheet """ - want = 'TOOL' - -ToolServer_worksheets = ToolServer_worksheet -import Standard_Suite -build_progress_document._superclassnames = ['document'] -build_progress_document._privpropdict = { - 'inherits' : inherits, -} -build_progress_document._privelemdict = { -} -catalog_document._superclassnames = ['text_document'] -catalog_document._privpropdict = { - 'inherits' : inherits, -} -catalog_document._privelemdict = { -} -class_browser._superclassnames = ['text_document'] -class_browser._privpropdict = { - 'inherits' : inherits, -} -class_browser._privelemdict = { -} -class_hierarchy._superclassnames = ['document'] -class_hierarchy._privpropdict = { - 'inherits' : inherits, -} -class_hierarchy._privelemdict = { -} -editor_document._superclassnames = ['text_document'] -editor_document._privpropdict = { - 'inherits' : inherits, -} -editor_document._privelemdict = { -} -file_compare_document._superclassnames = ['text_document'] -file_compare_document._privpropdict = { - 'inherits' : inherits, -} -file_compare_document._privelemdict = { -} -message_document._superclassnames = ['text_document'] -message_document._privpropdict = { - 'inherits' : inherits, -} -message_document._privelemdict = { -} -project_document._superclassnames = ['document'] -project_document._privpropdict = { - 'inherits' : inherits, - 'current_target' : current_target, -} -project_document._privelemdict = { - 'target' : target, -} -project_inspector._superclassnames = ['document'] -project_inspector._privpropdict = { - 'inherits' : inherits, -} -project_inspector._privelemdict = { -} -single_class_browser._superclassnames = ['text_document'] -single_class_browser._privpropdict = { - 'inherits' : inherits, -} -single_class_browser._privelemdict = { -} -single_class_hierarchy._superclassnames = ['document'] -single_class_hierarchy._privpropdict = { - 'inherits' : inherits, -} -single_class_hierarchy._privelemdict = { -} -subtarget._superclassnames = ['target'] -subtarget._privpropdict = { - 'inherits' : inherits, - 'target' : target, - 'link_against_output' : link_against_output, -} -subtarget._privelemdict = { -} -symbol_browser._superclassnames = ['text_document'] -symbol_browser._privpropdict = { - 'inherits' : inherits, -} -symbol_browser._privelemdict = { -} -target._superclassnames = [] -target._privpropdict = { - 'name' : name, - 'project_document' : project_document, -} -target._privelemdict = { - 'target_file' : target_file, - 'subtarget' : subtarget, -} -target_file._superclassnames = [] -target_file._privpropdict = { - 'id' : id, - 'type' : type, - 'location' : location, - 'path' : path, - 'linked' : linked, - 'link_index' : link_index, - 'modified_date' : modified_date, - 'compiled_date' : compiled_date, - 'code_size' : code_size, - 'data_size' : data_size, - 'debug' : debug, - 'weak_link' : weak_link, - 'init_before' : init_before, - 'merge_output' : merge_output, - 'prerequisites' : prerequisites, - 'dependents' : dependents, -} -target_file._privelemdict = { -} -text_document._superclassnames = ['document'] -text_document._privpropdict = { - 'inherits' : inherits, - 'modified' : modified, - 'selection' : selection, -} -text_document._privelemdict = { - 'character' : Standard_Suite.character, - 'insertion_point' : Standard_Suite.insertion_point, - 'line' : Standard_Suite.line, - 'text' : Standard_Suite.text, -} -ToolServer_worksheet._superclassnames = ['text_document'] -ToolServer_worksheet._privpropdict = { - 'inherits' : inherits, -} -ToolServer_worksheet._privelemdict = { -} -_Enum_Inte = { - 'never_interact' : 'eNvr', # never allow user interactions - 'interact_with_self' : 'eInS', # allow user interaction only when an AppleEvent is sent from within CodeWarrior - 'interact_with_local' : 'eInL', # allow user interaction when AppleEvents are sent from applications on the same machine (default) - 'interact_with_all' : 'eInA', # allow user interaction from both local and remote AppleEvents -} - -_Enum_DKND = { - 'project' : 'PRJD', # a project document - 'editor_document' : 'EDIT', # an editor document - 'message' : 'MSSG', # a message document - 'file_compare' : 'COMP', # a file compare document - 'catalog_document' : 'CTLG', # a browser catalog - 'class_browser' : 'BROW', # a class browser document - 'single_class_browser' : '1BRW', # a single class browser document - 'symbol_browser' : 'SYMB', # a symbol browser document - 'class_hierarchy' : 'HIER', # a class hierarchy document - 'single_class_hierarchy' : '1HIR', # a single class hierarchy document - 'project_inspector' : 'INSP', # a project inspector - 'ToolServer_worksheet' : 'TOOL', # the ToolServer worksheet - 'build_progress_document' : 'PRGS', # the build progress window -} - -_Enum_FTYP = { - 'library_file' : 'LIBF', # a library file - 'project_file' : 'PRJF', # a project file - 'resource_file' : 'RESF', # a resource file - 'text_file' : 'TXTF', # a text file - 'unknown_file' : 'UNKN', # unknown file type -} - -_Enum_PERM = { - 'read_write' : 'RdWr', # the file is open with read/write permission - 'read_only' : 'Read', # the file is open with read/only permission - 'checked_out_read_write' : 'CkRW', # the file is checked out with read/write permission - 'checked_out_read_only' : 'CkRO', # the file is checked out with read/only permission - 'checked_out_read_modify' : 'CkRM', # the file is checked out with read/modify permission - 'locked' : 'Lock', # the file is locked on disk - 'none' : 'LNNO', # the file is new -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { - '1BRW' : single_class_browser, - 'PRJD' : project_document, - '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 = { - '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, - 'LNKO' : link_against_output, - 'imod' : modified, - 'sele' : selection, - 'DSZE' : data_size, - 'INIT' : init_before, - 'MODD' : modified_date, - 'FTYP' : type, - 'TrgT' : target, - 'pnam' : name, - 'LINK' : linked, - 'CSZE' : code_size, - 'DBUG' : debug, - 'PRER' : prerequisites, -} - -_compdeclarations = { -} - -_enumdeclarations = { - '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 deleted file mode 100644 index b8a60e2..0000000 --- a/Mac/Lib/lib-scriptpackages/CodeWarrior/Metrowerks_Shell_Suite.py +++ /dev/null @@ -1,2373 +0,0 @@ -"""Suite Metrowerks Shell Suite: Events supported by the Metrowerks Project Shell -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'MMPR' - -class Metrowerks_Shell_Suite_Events: - - _argmap_Add_Files = { - 'To_Segment' : 'Segm', - } - - def Add_Files(self, _object, _attributes={}, **_arguments): - """Add Files: Add the specified file(s) to the current project - Required argument: List of files to add - Keyword argument To_Segment: Segment number into which to add the file(s) - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Error code for each file added - """ - _code = 'MMPR' - _subcode = 'AddF' - - aetools.keysubst(_arguments, self._argmap_Add_Files) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Check_Syntax = { - 'ExternalEditor' : 'Errs', - } - - def Check_Syntax(self, _object, _attributes={}, **_arguments): - """Check Syntax: Check the syntax of the specified file(s) - Required argument: List of files to check the syntax of - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors for each file whose syntax was checked - """ - _code = 'MMPR' - _subcode = 'Chek' - - aetools.keysubst(_arguments, self._argmap_Check_Syntax) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Close_Project(self, _no_object=None, _attributes={}, **_arguments): - """Close Project: Close the current project - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'ClsP' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Close_Window = { - 'Saving' : 'savo', - } - - def Close_Window(self, _object, _attributes={}, **_arguments): - """Close Window: Close the windows showing the specified files - Required argument: The files to close - Keyword argument Saving: Whether to save changes to each file before closing its window - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'ClsW' - - aetools.keysubst(_arguments, self._argmap_Close_Window) - _arguments['----'] = _object - - aetools.enumsubst(_arguments, 'savo', _Enum_savo) - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Compile = { - 'ExternalEditor' : 'Errs', - } - - def Compile(self, _object, _attributes={}, **_arguments): - """Compile: Compile the specified file(s) - Required argument: List of files to compile - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors for each file compiled - """ - _code = 'MMPR' - _subcode = 'Comp' - - aetools.keysubst(_arguments, self._argmap_Compile) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Create_Project = { - 'from_stationery' : 'Tmpl', - } - - def Create_Project(self, _object, _attributes={}, **_arguments): - """Create Project: Create a new project file - Required argument: New project file specifier - Keyword argument from_stationery: undocumented, typecode 'alis' - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'NewP' - - aetools.keysubst(_arguments, self._argmap_Create_Project) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_Definition(self, _object, _attributes={}, **_arguments): - """Get Definition: Returns the location(s) of a globally scoped function or data object. - Required argument: undocumented, typecode 'TEXT' - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'FDef' - """ - _code = 'MMPR' - _subcode = 'GDef' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_Open_Documents(self, _no_object=None, _attributes={}, **_arguments): - """Get Open Documents: Returns the list of open documents - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: The list of documents - """ - _code = 'MMPR' - _subcode = 'GDoc' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Get_Preferences = { - 'of' : 'PRec', - 'from_panel' : 'PNam', - } - - def Get_Preferences(self, _no_object=None, _attributes={}, **_arguments): - """Get Preferences: Get the preferences for the current project - Keyword argument of: Names of requested preferences - Keyword argument from_panel: Name of the preference panel - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: The requested preferences - """ - _code = 'MMPR' - _subcode = 'Gref' - - aetools.keysubst(_arguments, self._argmap_Get_Preferences) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Get_Project_File = { - 'Segment' : 'Segm', - } - - def Get_Project_File(self, _object, _attributes={}, **_arguments): - """Get Project File: Returns a description of a file in the project window. - Required argument: The index of the file within its segment. - Keyword argument Segment: The segment containing the file. - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'SrcF' - """ - _code = 'MMPR' - _subcode = 'GFil' - - aetools.keysubst(_arguments, self._argmap_Get_Project_File) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_Project_Specifier(self, _no_object=None, _attributes={}, **_arguments): - """Get Project Specifier: Return the File Specifier for the current project - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: File Specifier for the current project - """ - _code = 'MMPR' - _subcode = 'GetP' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_Segments(self, _no_object=None, _attributes={}, **_arguments): - """Get Segments: Returns a description of each segment in the project. - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'Seg ' - """ - _code = 'MMPR' - _subcode = 'GSeg' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Goto_Function(self, _object, _attributes={}, **_arguments): - """Goto Function: Goto Specified Function Name - Required argument: undocumented, typecode 'TEXT' - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'GoFn' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Goto_Line(self, _object, _attributes={}, **_arguments): - """Goto Line: Goto Specified Line Number - Required argument: The requested source file line number - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'GoLn' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Is_In_Project(self, _object, _attributes={}, **_arguments): - """Is In Project: Whether or not the specified file(s) is in the current project - Required argument: List of files to check for project membership - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Result code for each file - """ - _code = 'MMPR' - _subcode = 'FInP' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Make_Project = { - 'ExternalEditor' : 'Errs', - } - - def Make_Project(self, _no_object=None, _attributes={}, **_arguments): - """Make Project: Make the current project - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors that occurred while making the project - """ - _code = 'MMPR' - _subcode = 'Make' - - aetools.keysubst(_arguments, self._argmap_Make_Project) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Precompile = { - 'Saving_As' : 'Targ', - 'ExternalEditor' : 'Errs', - } - - def Precompile(self, _object, _attributes={}, **_arguments): - """Precompile: Precompile the specified file to the specified destination file - Required argument: File to precompile - Keyword argument Saving_As: Destination file for precompiled header - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors for the precompiled file - """ - _code = 'MMPR' - _subcode = 'PreC' - - aetools.keysubst(_arguments, self._argmap_Precompile) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Preprocess = { - 'ExternalEditor' : 'Errs', - } - - def Preprocess(self, _object, _attributes={}, **_arguments): - """Preprocess: Preprocesses the specified file(s) - Required argument: undocumented, typecode 'alis' - Keyword argument ExternalEditor: undocumented, typecode 'bool' - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors for each preprocessed file - """ - _code = 'MMPR' - _subcode = 'PreP' - - aetools.keysubst(_arguments, self._argmap_Preprocess) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Remove_Binaries(self, _no_object=None, _attributes={}, **_arguments): - """Remove Binaries: Remove the binary object code from the current project - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'RemB' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Remove_Files(self, _object, _attributes={}, **_arguments): - """Remove Files: Remove the specified file(s) from the current project - Required argument: List of files to remove - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Error code for each file removed - """ - _code = 'MMPR' - _subcode = 'RemF' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Reset_File_Paths(self, _no_object=None, _attributes={}, **_arguments): - """Reset File Paths: Resets access paths for all files belonging to open project. - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'ReFP' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Run_Project = { - 'ExternalEditor' : 'Errs', - 'SourceDebugger' : 'DeBg', - } - - def Run_Project(self, _no_object=None, _attributes={}, **_arguments): - """Run Project: Run the current project - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument SourceDebugger: Run the application under the control of the source-level debugger - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors that occurred when running the project - """ - _code = 'MMPR' - _subcode = 'RunP' - - aetools.keysubst(_arguments, self._argmap_Run_Project) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Save_Error_Window_As(self, _object, _attributes={}, **_arguments): - """Save Error Window As: Saves the Errors & Warnings window as a text file - Required argument: Destination file for Save Message Window As - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'SvMs' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Set_Current_Target(self, _object=None, _attributes={}, **_arguments): - """Set Current Target: Set the current target of a project - Required argument: Name of target - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'STrg' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Set_Default_Project(self, _object, _attributes={}, **_arguments): - """Set Default Project: Set the default project - Required argument: Name of project - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'SDfP' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Set_Modification_Date = { - 'to' : 'MDat', - } - - def Set_Modification_Date(self, _object, _attributes={}, **_arguments): - """Set Modification Date: Changes the internal modification date of the specified file(s) - Required argument: List of files - Keyword argument to: undocumented, typecode 'ldt ' - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Error code for each modified file - """ - _code = 'MMPR' - _subcode = 'SMod' - - aetools.keysubst(_arguments, self._argmap_Set_Modification_Date) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Set_Preferences = { - 'of_panel' : 'PNam', - 'to' : 'PRec', - } - - def Set_Preferences(self, _no_object=None, _attributes={}, **_arguments): - """Set Preferences: Set the preferences for the current project - Keyword argument of_panel: Name of the preference panel - Keyword argument to: Preferences settings - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'Pref' - - aetools.keysubst(_arguments, self._argmap_Set_Preferences) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Set_Project_File = { - 'to' : 'SrcS', - } - - def Set_Project_File(self, _object, _attributes={}, **_arguments): - """Set Project File: Changes the settings for a given file in the project. - Required argument: The name of the file - Keyword argument to: The new settings for the file - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'SFil' - - aetools.keysubst(_arguments, self._argmap_Set_Project_File) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Set_Segment = { - 'to' : 'Segm', - } - - def Set_Segment(self, _object, _attributes={}, **_arguments): - """Set Segment: Changes the name and attributes of a segment. - Required argument: The segment to change - Keyword argument to: The new name and attributes for the segment. - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'SSeg' - - aetools.keysubst(_arguments, self._argmap_Set_Segment) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Touch(self, _object, _attributes={}, **_arguments): - """Touch: Force recompilation of the specified file(s) - Required argument: List of files to compile - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Error code for each file touched - """ - _code = 'MMPR' - _subcode = 'Toch' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Update_Project = { - 'ExternalEditor' : 'Errs', - } - - def Update_Project(self, _no_object=None, _attributes={}, **_arguments): - """Update Project: Update the current project - Keyword argument ExternalEditor: Should the contents of the message window be returned to the caller? - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Errors that occurred while updating the project - """ - _code = 'MMPR' - _subcode = 'UpdP' - - aetools.keysubst(_arguments, self._argmap_Update_Project) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Open_browser(self, _object, _attributes={}, **_arguments): - """Open browser: Display a class, member function, or data member object in a single class browser window - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MMPR' - _subcode = 'Brow' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_nonsimple_classes(self, _no_object=None, _attributes={}, **_arguments): - """Get nonsimple classes: Returns an alphabetical list of classes with member functions, bases classes, or subclasses - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'list' - """ - _code = 'MMPR' - _subcode = 'NsCl' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_member_function_names(self, _object, _attributes={}, **_arguments): - """Get member function names: Returns a list containing the names of all the member functions of a class object - Required argument: must be a class object - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'list' - """ - _code = 'MMPR' - _subcode = 'MbFN' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -class Access_Paths(aetools.ComponentItem): - """Access Paths - Contains the definitions of a project\xd5s access (search) paths. """ - want = 'PATH' -class User_Paths(aetools.NProperty): - """User Paths - To add an access path for the source files. """ - which = 'PA01' - want = 'PInf' -class System_Paths(aetools.NProperty): - """System Paths - To add an access path for the include files. (Not supported in Pascal) """ - which = 'PA03' - want = 'PInf' -class Always_Full_Search(aetools.NProperty): - """Always Full Search - To force the compiler to search for system includes like it searches for user includes. """ - which = 'PA02' - want = 'bool' -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. <Carbon/Carbon.h> ) is used. """ - which = 'PA05' - want = 'bool' - -class Browser_Coloring(aetools.ComponentItem): - """Browser Coloring - Colors for Browser symbols. """ - want = 'BRKW' -class Browser_Keywords(aetools.NProperty): - """Browser Keywords - Mark Browser symbols with color. """ - which = 'BW00' - want = 'bool' -class Classes_Color(aetools.NProperty): - """Classes Color - The color for classes. """ - which = 'BW01' - want = 'cRGB' -class Constants_Color(aetools.NProperty): - """Constants Color - The color for constants. """ - which = 'BW02' - want = 'cRGB' -class Enums_Color(aetools.NProperty): - """Enums Color - The color for enums. """ - which = 'BW03' - want = 'cRGB' -class Functions_Color(aetools.NProperty): - """Functions Color - Set color for functions. """ - which = 'BW04' - want = 'cRGB' -class Globals_Color(aetools.NProperty): - """Globals Color - The color for globals """ - which = 'BW05' - want = 'cRGB' -class Macros_Color(aetools.NProperty): - """Macros Color - The color for macros. """ - which = 'BW06' - want = 'cRGB' -class Templates_Color(aetools.NProperty): - """Templates Color - Set color for templates. """ - which = 'BW07' - want = 'cRGB' -class Typedefs_Color(aetools.NProperty): - """Typedefs Color - The color for typedefs. """ - which = 'BW08' - want = 'cRGB' -class Template_Commands_in_Menu(aetools.NProperty): - """Template Commands in Menu - Include template commands in context menus """ - which = 'BW10' - want = 'bool' - -class Build_Extras(aetools.ComponentItem): - """Build Extras - """ - want = 'LXTR' -class Browser_Active(aetools.NProperty): - """Browser Active - Allow the collection of browser information. """ - which = 'EX09' - want = 'bool' -class Modification_Date_Caching(aetools.NProperty): - """Modification Date Caching - """ - which = 'EX04' - want = 'bool' -class Dump_Browser_Info(aetools.NProperty): - """Dump Browser Info - """ - which = 'EX30' - want = 'bool' -class Cache_Subproject_Data(aetools.NProperty): - """Cache Subproject Data - """ - which = 'EX31' - want = 'bool' - -class Build_Settings(aetools.ComponentItem): - """Build Settings - Build Settings preferences. """ - want = 'BSTG' -class Completion_Sound(aetools.NProperty): - """Completion Sound - Play a sound when finished a Bring Up To Date or Make command. """ - which = 'BX01' - want = 'bool' -class Success_Sound(aetools.NProperty): - """Success Sound - The sound CodeWarrior plays when it successfully finishes a Bring Up To Date or Make command. """ - which = 'BX02' - want = 'TEXT' -class Failure_Sound(aetools.NProperty): - """Failure Sound - The sound CodeWarrior plays when it cannot finish a Bring Up To Date or Make command. """ - which = 'BX03' - want = 'TEXT' -class Save_Before_Building(aetools.NProperty): - """Save Before Building - Save open editor files before build operations """ - which = 'BX07' - want = 'bool' -class Build_Before_Running(aetools.NProperty): - """Build Before Running - Build the target before running. """ - which = 'BX04' - want = 'BXbr' -class Include_Cache_Size(aetools.NProperty): - """Include Cache Size - Include file cache size. """ - which = 'BX05' - want = 'long' -class Compiler_Thread_Stack_Size(aetools.NProperty): - """Compiler Thread Stack Size - Compiler Thread Stack Size """ - which = 'BX06' - want = 'long' - -class Custom_Keywords(aetools.ComponentItem): - """Custom Keywords - """ - want = 'CUKW' -class Custom_Color_1(aetools.NProperty): - """Custom Color 1 - The color for the first set of custom keywords. """ - which = 'GH05' - want = 'cRGB' -class Custom_Color_2(aetools.NProperty): - """Custom Color 2 - The color for the second set custom keywords. """ - which = 'GH06' - want = 'cRGB' -class Custom_Color_3(aetools.NProperty): - """Custom Color 3 - The color for the third set of custom keywords. """ - which = 'GH07' - want = 'cRGB' -class Custom_Color_4(aetools.NProperty): - """Custom Color 4 - The color for the fourth set of custom keywords. """ - which = 'GH08' - want = 'cRGB' - -class Debugger_Display(aetools.ComponentItem): - """Debugger Display - Debugger Display preferences """ - want = 'DbDS' -class Show_Variable_Types(aetools.NProperty): - """Show Variable Types - Show variable types by default. """ - which = 'Db01' - want = 'bool' -class Show_Locals(aetools.NProperty): - """Show Locals - Show locals by default """ - which = 'Db09' - want = 'bool' -class Sort_By_Method(aetools.NProperty): - """Sort By Method - Sort functions by method. """ - which = 'Db02' - want = 'bool' -class Use_RTTI(aetools.NProperty): - """Use RTTI - Enable RunTime Type Information. """ - which = 'Db03' - want = 'bool' -class Threads_in_Window(aetools.NProperty): - """Threads in Window - Show threads in separate windows. """ - which = 'Db04' - want = 'bool' -class Variable_Hints(aetools.NProperty): - """Variable Hints - Show variable hints. """ - which = 'Db05' - want = 'bool' -class Watchpoint_Hilite(aetools.NProperty): - """Watchpoint Hilite - Watchpoint hilite color. """ - which = 'Db06' - want = 'cRGB' -class Variable_Changed_Hilite(aetools.NProperty): - """Variable Changed Hilite - Variable changed hilite color. """ - which = 'Db07' - want = 'cRGB' -class Default_Array_Size(aetools.NProperty): - """Default Array Size - Controls whether CodeWarrior uses its own integrated editor or an external application for editing text files. """ - which = 'Db08' - want = 'shor' -class Show_As_Decimal(aetools.NProperty): - """Show As Decimal - Show variable values as decimal by default """ - which = 'Db10' - want = 'bool' - -class Debugger_Global(aetools.ComponentItem): - """Debugger Global - Debugger Global preferences """ - want = 'DbGL' -class Cache_Edited_Files(aetools.NProperty): - """Cache Edited Files - Cache edit files between debug sessions """ - which = 'Dg12' - want = 'bool' -class File_Cache_Duration(aetools.NProperty): - """File Cache Duration - Duration to keep files in cache (in days) """ - which = 'Dg13' - want = 'shor' -class Ignore_Mod_Dates(aetools.NProperty): - """Ignore Mod Dates - Ignore modification dates of files. """ - which = 'Dg01' - want = 'bool' -class Open_All_Classes(aetools.NProperty): - """Open All Classes - Open all Java class files. """ - which = 'Dg02' - want = 'bool' -class Launch_Apps_on_Open(aetools.NProperty): - """Launch Apps on Open - Launch applications on the opening of sym files. """ - which = 'Dg03' - want = 'bool' -class Confirm_Kill(aetools.NProperty): - """Confirm Kill - Confirm the \xd4killing\xd5 of the process. """ - which = 'Dg04' - want = 'bool' -class Stop_at_Main(aetools.NProperty): - """Stop at Main - Stop to debug on the main() function. """ - which = 'Dg05' - want = 'bool' -class Select_Stack_Crawl(aetools.NProperty): - """Select Stack Crawl - Select the stack crawl. """ - which = 'Dg06' - want = 'bool' -class Dont_Step_in_Runtime(aetools.NProperty): - """Dont Step in Runtime - Don\xd5t step into runtime code when debugging. """ - which = 'Dg07' - want = 'bool' -class Auto_Target_Libraries(aetools.NProperty): - """Auto Target Libraries - Automatically target libraries when debugging """ - which = 'Dg11' - want = 'bool' - -class Debugger_Target(aetools.ComponentItem): - """Debugger Target - Debugger Target preferences """ - want = 'DbTG' -class Log_System_Messages(aetools.NProperty): - """Log System Messages - Log all system messages while debugging. """ - which = 'Dt02' - want = 'bool' -class Relocated_Executable_Path(aetools.NProperty): - """Relocated Executable Path - Path to location of relocated libraries, code resources or remote debugging folder """ - which = 'Dt10' - want = 'RlPt' -class Update_Data_While_Running(aetools.NProperty): - """Update Data While Running - Should pause to update data while running """ - which = 'Dt08' - want = 'bool' -class Data_Update_Interval(aetools.NProperty): - """Data Update Interval - How often to update the data while running (in seconds) """ - which = 'Dt09' - want = 'long' -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' - want = 'bool' -class Temp_breakpoint_names(aetools.NProperty): - """Temp breakpoint names - Comma separated list of names to attempt to stop at on program launch. First symbol to resolve in list is the temp BP that will be set. """ - which = 'Dt14' - want = 'ctxt' -class Cache_symbolics(aetools.NProperty): - """Cache symbolics - Cache symbolics between runs when executable doesn\xd5t change, else release symbolics files after killing process. """ - which = 'Dt15' - want = 'bool' -class Temp_Breakpoint_Type(aetools.NProperty): - """Temp Breakpoint Type - Type of temp breakpoint to set on program launch. """ - which = 'Dt16' - want = 'TmpB' - -class Debugger_Windowing(aetools.ComponentItem): - """Debugger Windowing - """ - want = 'DbWN' -class Debugging_Start_Action(aetools.NProperty): - """Debugging Start Action - What action to take when debug session starts """ - which = 'Dw01' - want = 'DbSA' -class Do_Nothing_To_Projects(aetools.NProperty): - """Do Nothing To Projects - Suppress debugging start action for project windows """ - which = 'Dw02' - want = 'bool' - -class Editor(aetools.ComponentItem): - """Editor - """ - want = 'EDTR' -class Flash_Delay(aetools.NProperty): - """Flash Delay - The amount of time, in sixtieths of a second, the editor highlights a matching bracket. """ - which = 'ED01' - want = 'long' -class Dynamic_Scroll(aetools.NProperty): - """Dynamic Scroll - Display a window\xd5s contents as you move the scroll box. """ - which = 'ED02' - want = 'bool' -class Balance(aetools.NProperty): - """Balance - Flash the matching opening bracket when you type a closing bracket. """ - which = 'ED03' - want = 'bool' -class Use_Drag__26__Drop_Editing(aetools.NProperty): - """Use Drag & Drop Editing - Use Drag & Drop text editing. """ - which = 'ED04' - want = 'bool' -class Sort_Function_Popup(aetools.NProperty): - """Sort Function Popup - """ - which = 'ED06' - want = 'bool' -class Use_Multiple_Undo(aetools.NProperty): - """Use Multiple Undo - """ - which = 'ED07' - want = 'bool' -class Relaxed_C_Popup_Parsing(aetools.NProperty): - """Relaxed C Popup Parsing - Relax the function parser for C source files """ - which = 'ED15' - want = 'bool' -class Left_Margin_Line_Select(aetools.NProperty): - """Left Margin Line Select - Clicking in the left margin selects lines """ - which = 'ED16' - want = 'bool' -class Default_Text_File_Format(aetools.NProperty): - """Default Text File Format - Default text file format (i.e. which type of line endings to use) """ - which = 'ED17' - want = 'TxtF' -class Remember_Font(aetools.NProperty): - """Remember Font - Display a source file with its own font settings. """ - which = 'ED08' - want = 'bool' -class Remember_Selection(aetools.NProperty): - """Remember Selection - Restore the previous selection in a file when you open it. """ - which = 'ED09' - want = 'bool' -class Remember_Window(aetools.NProperty): - """Remember Window - Restore the last size and position for a source file window when you open it. """ - which = 'ED10' - want = 'bool' -class Main_Text_Color(aetools.NProperty): - """Main Text Color - Main, default, color for text. """ - which = 'ED12' - want = 'cRGB' -class Background_Color(aetools.NProperty): - """Background Color - Color of the background of editor windows. """ - which = 'ED13' - want = 'cRGB' -class Context_Popup_Delay(aetools.NProperty): - """Context Popup Delay - The amount of time, in sixtieths of a second, before the context popup is displayed if you click and hold on a browser symbol. """ - which = 'ED14' - want = 'long' - -class Environment_Variable(aetools.ComponentItem): - """Environment Variable - Environment variable for host OS """ - want = 'EnvV' -class name(aetools.NProperty): - """name - """ - which = 'pnam' - want = 'TEXT' -class value(aetools.NProperty): - """value - Value of the environment variable """ - which = 'Valu' - want = 'TEXT' - -class Error_Information(aetools.ComponentItem): - """Error Information - Describes a single error or warning from the compiler or the linker. """ - want = 'ErrM' -class messageKind(aetools.NProperty): - """messageKind - The type of error or warning. """ - which = 'ErrT' - want = 'ErrT' -class message(aetools.NProperty): - """message - The error or warning message. """ - which = 'ErrS' - want = 'TEXT' -class disk_file(aetools.NProperty): - """disk file - The file where the error occurred. May not be returned for certain kinds of errors (eg, link errors). """ - which = 'file' - want = 'fss ' -class lineNumber(aetools.NProperty): - """lineNumber - The line in the file where the error occurred. May not be returned for certain kinds of errors (eg, link errors). """ - which = 'ErrL' - want = 'long' - -class Extras(aetools.ComponentItem): - """Extras - """ - want = 'GXTR' -class Automatic_Toolbar_Help(aetools.NProperty): - """Automatic Toolbar Help - Automatically show balloon help in toolbar after delay """ - which = 'EX19' - want = 'bool' -class External_Reference(aetools.NProperty): - """External Reference - Which on-line function reference to use. """ - which = 'EX08' - want = 'RefP' -class Full_Screen_Zoom(aetools.NProperty): - """Full Screen Zoom - Zoom windows to the full screen width. """ - which = 'EX07' - want = 'bool' -class Recent_Editor_Count(aetools.NProperty): - """Recent Editor Count - Maximum number of editor documents to show in the \xd2Open Recent\xd3 menu """ - which = 'EX16' - want = 'shor' -class Recent_Project_Count(aetools.NProperty): - """Recent Project Count - Maximum number of project documents to show in the \xd2Open Recent\xd3 menu """ - which = 'EX17' - want = 'shor' -class Use_Editor_Extensions(aetools.NProperty): - """Use Editor Extensions - Controls the use of the Editor Extensions menu """ - which = 'EX10' - want = 'bool' -class Use_External_Editor(aetools.NProperty): - """Use External Editor - Controls whether CodeWarrior uses its own integrated editor or an external application for editing text files. """ - which = 'EX11' - want = 'bool' -class Use_Script_Menu(aetools.NProperty): - """Use Script Menu - Controls the use of the AppleScript menu """ - which = 'EX12' - want = 'bool' -class Use_ToolServer_Menu(aetools.NProperty): - """Use ToolServer Menu - Controls the use of the ToolServer menu """ - which = 'EX18' - want = 'bool' - -class File_Mapping(aetools.ComponentItem): - """File Mapping - """ - want = 'FMap' -class File_Type(aetools.NProperty): - """File Type - """ - which = 'PR04' - want = 'TEXT' -class Extension(aetools.NProperty): - """Extension - """ - which = 'TA02' - want = 'TEXT' -class Precompiled(aetools.NProperty): - """Precompiled - """ - which = 'TA03' - want = 'bool' -class Resource_File(aetools.NProperty): - """Resource File - """ - which = 'TA04' - want = 'bool' -class Launchable(aetools.NProperty): - """Launchable - """ - which = 'TA05' - want = 'bool' -class Ignored_by_Make(aetools.NProperty): - """Ignored by Make - """ - which = 'TA06' - want = 'bool' -class Compiler(aetools.NProperty): - """Compiler - """ - which = 'TA07' - want = 'TEXT' - -class File_Mappings(aetools.ComponentItem): - """File Mappings - Mappings of extensions & file types to compilers """ - want = 'FLMP' -class Mappings(aetools.NProperty): - """Mappings - """ - which = 'FMps' - want = 'FMap' - -class Font(aetools.ComponentItem): - """Font - """ - want = 'mFNT' -class Auto_Indent(aetools.NProperty): - """Auto Indent - Indent new lines automatically. """ - which = 'FN01' - want = 'bool' -class Tab_Size(aetools.NProperty): - """Tab Size - """ - which = 'FN02' - want = 'shor' -class Tab_Indents_Selection(aetools.NProperty): - """Tab Indents Selection - Tab indents selection when multiple lines are selected """ - which = 'FN03' - want = 'bool' -class Tab_Inserts_Spaces(aetools.NProperty): - """Tab Inserts Spaces - Insert spaces instead of tab character """ - which = 'FN04' - want = 'bool' -class Text_Font(aetools.NProperty): - """Text Font - The font used in editing windows. """ - which = 'ptxf' - want = 'TEXT' -class Text_Size(aetools.NProperty): - """Text Size - The size of the text in an editing window. """ - which = 'ptps' - want = 'shor' - -class Function_Information(aetools.ComponentItem): - """Function Information - Describes the location of any function or global data definition within the current project. """ - want = 'FDef' - -class Global_Source_Trees(aetools.ComponentItem): - """Global Source Trees - Globally-defined source tree roots """ - want = 'GSTs' -class Source_Trees(aetools.NProperty): - """Source Trees - List of source tree roots """ - which = 'ST01' - want = 'SrcT' - -class Path_Information(aetools.ComponentItem): - """Path Information - Contains all of the parameters that describe an access path. """ - want = 'PInf' -class format(aetools.NProperty): - """format - Format of the a """ - which = 'Frmt' - want = 'PthF' -class origin(aetools.NProperty): - """origin - """ - which = 'Orig' - want = 'PPrm' -class root(aetools.NProperty): - """root - Name of the root of the relative path. Pre-defined values are \xd2Absolute\xd3, \xd2Project\xd3, \xd2CodeWarrior\xd3, and \xd2System\xd3. Anything else is a user-defined root. """ - which = 'Root' - want = 'TEXT' -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' - want = 'long' - -class Plugin_Settings(aetools.ComponentItem): - """Plugin Settings - Settings for plugin tools """ - want = 'PSTG' -class Plugin_Diagnostics_Level(aetools.NProperty): - """Plugin Diagnostics Level - Plugin Diagnostics Level is for those who are developing plugins for the IDE and need to debug them. """ - which = 'PX01' - want = 'PXdg' -class Disable_Third_Party_COM_Plugins(aetools.NProperty): - """Disable Third Party COM Plugins - Disable COM plugins from third parties """ - which = 'PX02' - want = 'bool' - -class ProjectFile(aetools.ComponentItem): - """ProjectFile - A file contained in a project """ - want = 'SrcF' -class filetype(aetools.NProperty): - """filetype - What kind of file is this ? """ - which = 'SrcT' - want = 'SrcT' -class codesize(aetools.NProperty): - """codesize - The size of this file\xd5s code. """ - which = 'CSiz' - want = 'long' -class datasize(aetools.NProperty): - """datasize - The size of this file\xd5s data. """ - which = 'DSiz' - want = 'long' -class up_to_date(aetools.NProperty): - """up to date - Has the file been compiled since its last modification ? """ - which = 'UpTD' - want = 'bool' -class symbols(aetools.NProperty): - """symbols - Are debugging symbols generated for this file ? """ - which = 'SymG' - want = 'bool' -class weak_link(aetools.NProperty): - """weak link - Is this file imported weakly into the project ? [PowerPC only] """ - which = 'Weak' - want = 'bool' -class initialize_before(aetools.NProperty): - """initialize before - Initialize the shared library before the main application. """ - which = 'Bfor' - want = 'bool' -class includes(aetools.NProperty): - """includes - """ - which = 'IncF' - want = 'fss ' - -class Relative_Path(aetools.ComponentItem): - """Relative Path - Relative path from some root """ - want = 'RlPt' - -class Runtime_Settings(aetools.ComponentItem): - """Runtime Settings - Runtime settings """ - want = 'RSTG' -class Host_Application(aetools.NProperty): - """Host Application - Host application for running/debugging libraries and code resources """ - which = 'RS01' - want = 'RlPt' -class Command_Line_Arguments(aetools.NProperty): - """Command Line Arguments - Extra command line args to pass to executable """ - which = 'RS02' - want = 'TEXT' -class Working_Directory(aetools.NProperty): - """Working Directory - Working directory to use when running the executable """ - which = 'RS03' - want = 'TEXT' -class Environment_Variables(aetools.NProperty): - """Environment Variables - Environment variables to use when running the executable """ - which = 'RS04' - want = 'EnvV' - -class Segment(aetools.ComponentItem): - """Segment - A segment or group in the project """ - want = 'Seg ' -class filecount(aetools.NProperty): - """filecount - """ - which = 'NumF' - want = 'shor' -class seg_2d_preloaded(aetools.NProperty): - """seg-preloaded - Is the segment preloaded ? [68K only] """ - which = 'Prel' - want = 'bool' -class seg_2d_protected(aetools.NProperty): - """seg-protected - Is the segment protected ? [68K only] """ - which = 'Prot' - want = 'bool' -class seg_2d_locked(aetools.NProperty): - """seg-locked - Is the segment locked ? [68K only] """ - which = 'PLck' - want = 'bool' -class seg_2d_purgeable(aetools.NProperty): - """seg-purgeable - Is the segment purgeable ? [68K only] """ - which = 'Purg' - want = 'bool' -class seg_2d_system_heap(aetools.NProperty): - """seg-system heap - Is the segment loaded into the system heap ? [68K only] """ - which = 'SysH' - want = 'bool' - -class Shielded_Folder(aetools.ComponentItem): - """Shielded Folder - """ - want = 'SFit' -class Expression_To_Match(aetools.NProperty): - """Expression To Match - Regular expression which describes folders to skip """ - which = 'SF01' - want = 'TEXT' -class Skip_Project_Operations(aetools.NProperty): - """Skip Project Operations - Matching folders will be skipped during project operations """ - which = 'SF02' - want = 'bool' -class Skip_Find_And_Compare_Operations(aetools.NProperty): - """Skip Find And Compare Operations - Matching folders will be skipped during find and compare operations """ - which = 'SF03' - want = 'bool' - -class Shielded_Folders(aetools.ComponentItem): - """Shielded Folders - Folders skipped when performing project and find-and-compare operations """ - want = 'SHFL' -class Shielded_Items(aetools.NProperty): - """Shielded Items - """ - which = 'SFis' - want = 'SFit' - -class Source_Tree(aetools.ComponentItem): - """Source Tree - User-defined source tree root """ - want = 'SrcT' -class path(aetools.NProperty): - """path - path for the user-defined source tree root """ - which = 'Path' - want = 'TEXT' -class path_kind(aetools.NProperty): - """path kind - kind of path """ - which = 'Kind' - want = 'STKd' - -class Syntax_Coloring(aetools.ComponentItem): - """Syntax Coloring - """ - want = 'SNTX' -class Syntax_Coloring(aetools.NProperty): - """Syntax Coloring - Mark keywords and comments with color. """ - which = 'GH01' - want = 'bool' -class Comment_Color(aetools.NProperty): - """Comment Color - The color for comments. """ - which = 'GH02' - want = 'cRGB' -class Keyword_Color(aetools.NProperty): - """Keyword Color - The color for language keywords. """ - which = 'GH03' - want = 'cRGB' -class String_Color(aetools.NProperty): - """String Color - The color for strings. """ - which = 'GH04' - want = 'cRGB' - -class Target_Settings(aetools.ComponentItem): - """Target Settings - Contains the definitions of a project\xd5s target. """ - want = 'TARG' -class Linker(aetools.NProperty): - """Linker - The name of the current linker. """ - which = 'TA01' - want = 'TEXT' -class Pre_Linker(aetools.NProperty): - """Pre Linker - """ - which = 'TA13' - want = 'TEXT' -class Post_Linker(aetools.NProperty): - """Post Linker - """ - which = 'TA09' - want = 'TEXT' -class Target_Name(aetools.NProperty): - """Target Name - """ - which = 'TA10' - want = 'TEXT' -class Output_Directory_Path(aetools.NProperty): - """Output Directory Path - Path to output directory. Usage of this property is deprecated. Use the \xd2Output Directory Location\xd3 property instead. """ - which = 'TA11' - want = 'TEXT' -class Output_Directory_Origin(aetools.NProperty): - """Output Directory Origin - Origin of path to output directory. Usage of this property is deprecated. Use the \xd2Output Directory Location\xd3 property instead. """ - which = 'TA12' - want = 'PPrm' -class Output_Directory_Location(aetools.NProperty): - """Output Directory Location - Location of output directory """ - which = 'TA16' - want = 'RlPt' -class Use_Relative_Paths(aetools.NProperty): - """Use Relative Paths - Save project entries using relative paths """ - which = 'TA15' - want = 'bool' - -class Target_Source_Trees(aetools.ComponentItem): - """Target Source Trees - Target-specific user-defined source tree roots """ - want = 'TSTs' - -class VCS_Setup(aetools.ComponentItem): - """VCS Setup - The version control system preferences. """ - want = 'VCSs' -class VCS_Active(aetools.NProperty): - """VCS Active - Use Version Control """ - which = 'VC01' - want = 'bool' -class Use_Global_Settings(aetools.NProperty): - """Use Global Settings - Use the global VCS settings by default """ - which = 'VC11' - want = 'bool' -class Connection_Method(aetools.NProperty): - """Connection Method - Name of Version Control System to use. """ - which = 'VC02' - want = 'TEXT' -class Username(aetools.NProperty): - """Username - The user name for the VCS. """ - which = 'VC03' - want = 'TEXT' -class Password(aetools.NProperty): - """Password - The password for the VCS. """ - which = 'VC04' - want = 'TEXT' -class Auto_Connect(aetools.NProperty): - """Auto Connect - Automatically connect to database when starting. """ - which = 'VC05' - want = 'bool' -class Store_Password(aetools.NProperty): - """Store Password - Store the password. """ - which = 'VC06' - want = 'bool' -class Always_Prompt(aetools.NProperty): - """Always Prompt - Always show login dialog """ - which = 'VC07' - want = 'bool' -class Mount_Volume(aetools.NProperty): - """Mount Volume - Attempt to mount the database volume if it isn't available. """ - which = 'VC08' - want = 'bool' -class Database_Path(aetools.NProperty): - """Database Path - Path to the VCS database. """ - which = 'VC09' - want = 'RlPt' -class Local_Path(aetools.NProperty): - """Local Path - Path to the local root """ - which = 'VC10' - want = 'RlPt' - -class class_(aetools.ComponentItem): - """class - A class, struct, or record type in the current project. """ - want = 'Clas' -class language(aetools.NProperty): - """language - Implementation language of this class """ - which = 'Lang' - want = 'Lang' -class declaration_file(aetools.NProperty): - """declaration file - Source file containing the class declaration """ - which = 'DcFl' - want = 'fss ' -class declaration_start_offset(aetools.NProperty): - """declaration start offset - Start of class declaration source code """ - which = 'DcSt' - want = 'long' -class declaration_end_offset(aetools.NProperty): - """declaration end offset - End of class declaration """ - which = 'DcEn' - want = 'long' -class subclasses(aetools.NProperty): - """subclasses - the immediate subclasses of this class """ - which = 'SubC' - want = 'Clas' -class all_subclasses(aetools.NProperty): - """all subclasses - the classes directly or indirectly derived from this class """ - which = 'SubA' - want = 'Clas' -# element 'BsCl' as ['indx'] -# element 'MbFn' as ['indx', 'name'] -# element 'DtMb' as ['indx', 'name'] - -classes = class_ - -class member_function(aetools.ComponentItem): - """member function - A class member function or method. """ - want = 'MbFn' -class access(aetools.NProperty): - """access - """ - which = 'Acce' - want = 'Acce' -class virtual(aetools.NProperty): - """virtual - """ - which = 'Virt' - want = 'bool' -class static(aetools.NProperty): - """static - """ - which = 'Stat' - want = 'bool' -class implementation_file(aetools.NProperty): - """implementation file - Source file containing the member function definition """ - which = 'DfFl' - want = 'fss ' -class implementation_start_offset(aetools.NProperty): - """implementation start offset - start of member function definition source code """ - which = 'DfSt' - want = 'long' -class implementation_end_offset(aetools.NProperty): - """implementation end offset - end of member function definition """ - which = 'DfEn' - want = 'long' - -member_functions = member_function - -class data_member(aetools.ComponentItem): - """data member - A class data member or field """ - want = 'DtMb' - -data_members = data_member - -class base_class(aetools.ComponentItem): - """base class - A base class or super class of a class """ - want = 'BsCl' -class class_(aetools.NProperty): - """class - The class object corresponding to this base class """ - which = 'Clas' - want = 'obj ' - -base_classes = base_class - -class browser_catalog(aetools.ComponentItem): - """browser catalog - The browser symbol catalog for the current project """ - want = 'Cata' -# element 'Clas' as ['indx', 'name'] -Access_Paths._superclassnames = [] -Access_Paths._privpropdict = { - 'User_Paths' : User_Paths, - 'System_Paths' : System_Paths, - 'Always_Full_Search' : Always_Full_Search, - 'Convert_Paths' : Convert_Paths, - 'Require_Framework_Includes' : Require_Framework_Includes, -} -Access_Paths._privelemdict = { -} -Browser_Coloring._superclassnames = [] -Browser_Coloring._privpropdict = { - 'Browser_Keywords' : Browser_Keywords, - 'Classes_Color' : Classes_Color, - 'Constants_Color' : Constants_Color, - 'Enums_Color' : Enums_Color, - 'Functions_Color' : Functions_Color, - 'Globals_Color' : Globals_Color, - 'Macros_Color' : Macros_Color, - 'Templates_Color' : Templates_Color, - 'Typedefs_Color' : Typedefs_Color, - 'Template_Commands_in_Menu' : Template_Commands_in_Menu, -} -Browser_Coloring._privelemdict = { -} -Build_Extras._superclassnames = [] -Build_Extras._privpropdict = { - 'Browser_Active' : Browser_Active, - 'Modification_Date_Caching' : Modification_Date_Caching, - 'Dump_Browser_Info' : Dump_Browser_Info, - 'Cache_Subproject_Data' : Cache_Subproject_Data, -} -Build_Extras._privelemdict = { -} -Build_Settings._superclassnames = [] -Build_Settings._privpropdict = { - 'Completion_Sound' : Completion_Sound, - 'Success_Sound' : Success_Sound, - 'Failure_Sound' : Failure_Sound, - 'Save_Before_Building' : Save_Before_Building, - 'Build_Before_Running' : Build_Before_Running, - 'Include_Cache_Size' : Include_Cache_Size, - 'Compiler_Thread_Stack_Size' : Compiler_Thread_Stack_Size, -} -Build_Settings._privelemdict = { -} -Custom_Keywords._superclassnames = [] -Custom_Keywords._privpropdict = { - 'Custom_Color_1' : Custom_Color_1, - 'Custom_Color_2' : Custom_Color_2, - 'Custom_Color_3' : Custom_Color_3, - 'Custom_Color_4' : Custom_Color_4, -} -Custom_Keywords._privelemdict = { -} -Debugger_Display._superclassnames = [] -Debugger_Display._privpropdict = { - 'Show_Variable_Types' : Show_Variable_Types, - 'Show_Locals' : Show_Locals, - 'Sort_By_Method' : Sort_By_Method, - 'Use_RTTI' : Use_RTTI, - 'Threads_in_Window' : Threads_in_Window, - 'Variable_Hints' : Variable_Hints, - 'Watchpoint_Hilite' : Watchpoint_Hilite, - 'Variable_Changed_Hilite' : Variable_Changed_Hilite, - 'Default_Array_Size' : Default_Array_Size, - 'Show_As_Decimal' : Show_As_Decimal, -} -Debugger_Display._privelemdict = { -} -Debugger_Global._superclassnames = [] -Debugger_Global._privpropdict = { - 'Cache_Edited_Files' : Cache_Edited_Files, - 'File_Cache_Duration' : File_Cache_Duration, - 'Ignore_Mod_Dates' : Ignore_Mod_Dates, - 'Open_All_Classes' : Open_All_Classes, - 'Launch_Apps_on_Open' : Launch_Apps_on_Open, - 'Confirm_Kill' : Confirm_Kill, - 'Stop_at_Main' : Stop_at_Main, - 'Select_Stack_Crawl' : Select_Stack_Crawl, - 'Dont_Step_in_Runtime' : Dont_Step_in_Runtime, - 'Auto_Target_Libraries' : Auto_Target_Libraries, -} -Debugger_Global._privelemdict = { -} -Debugger_Target._superclassnames = [] -Debugger_Target._privpropdict = { - 'Log_System_Messages' : Log_System_Messages, - 'Relocated_Executable_Path' : Relocated_Executable_Path, - 'Update_Data_While_Running' : Update_Data_While_Running, - 'Data_Update_Interval' : Data_Update_Interval, - 'Auto_Target_Libraries' : Auto_Target_Libraries, - 'Stop_at_temp_breakpoint' : Stop_at_temp_breakpoint, - 'Temp_breakpoint_names' : Temp_breakpoint_names, - 'Cache_symbolics' : Cache_symbolics, - 'Temp_Breakpoint_Type' : Temp_Breakpoint_Type, -} -Debugger_Target._privelemdict = { -} -Debugger_Windowing._superclassnames = [] -Debugger_Windowing._privpropdict = { - 'Debugging_Start_Action' : Debugging_Start_Action, - 'Do_Nothing_To_Projects' : Do_Nothing_To_Projects, -} -Debugger_Windowing._privelemdict = { -} -Editor._superclassnames = [] -Editor._privpropdict = { - 'Flash_Delay' : Flash_Delay, - 'Dynamic_Scroll' : Dynamic_Scroll, - 'Balance' : Balance, - 'Use_Drag__26__Drop_Editing' : Use_Drag__26__Drop_Editing, - 'Sort_Function_Popup' : Sort_Function_Popup, - 'Use_Multiple_Undo' : Use_Multiple_Undo, - 'Relaxed_C_Popup_Parsing' : Relaxed_C_Popup_Parsing, - 'Left_Margin_Line_Select' : Left_Margin_Line_Select, - 'Default_Text_File_Format' : Default_Text_File_Format, - 'Remember_Font' : Remember_Font, - 'Remember_Selection' : Remember_Selection, - 'Remember_Window' : Remember_Window, - 'Main_Text_Color' : Main_Text_Color, - 'Background_Color' : Background_Color, - 'Context_Popup_Delay' : Context_Popup_Delay, -} -Editor._privelemdict = { -} -Environment_Variable._superclassnames = [] -Environment_Variable._privpropdict = { - 'name' : name, - 'value' : value, -} -Environment_Variable._privelemdict = { -} -Error_Information._superclassnames = [] -Error_Information._privpropdict = { - 'messageKind' : messageKind, - 'message' : message, - 'disk_file' : disk_file, - 'lineNumber' : lineNumber, -} -Error_Information._privelemdict = { -} -Extras._superclassnames = [] -Extras._privpropdict = { - 'Automatic_Toolbar_Help' : Automatic_Toolbar_Help, - 'External_Reference' : External_Reference, - 'Full_Screen_Zoom' : Full_Screen_Zoom, - 'Recent_Editor_Count' : Recent_Editor_Count, - 'Recent_Project_Count' : Recent_Project_Count, - 'Use_Editor_Extensions' : Use_Editor_Extensions, - 'Use_External_Editor' : Use_External_Editor, - 'Use_Script_Menu' : Use_Script_Menu, - 'Use_ToolServer_Menu' : Use_ToolServer_Menu, -} -Extras._privelemdict = { -} -File_Mapping._superclassnames = [] -File_Mapping._privpropdict = { - 'File_Type' : File_Type, - 'Extension' : Extension, - 'Precompiled' : Precompiled, - 'Resource_File' : Resource_File, - 'Launchable' : Launchable, - 'Ignored_by_Make' : Ignored_by_Make, - 'Compiler' : Compiler, -} -File_Mapping._privelemdict = { -} -File_Mappings._superclassnames = [] -File_Mappings._privpropdict = { - 'Mappings' : Mappings, -} -File_Mappings._privelemdict = { -} -Font._superclassnames = [] -Font._privpropdict = { - 'Auto_Indent' : Auto_Indent, - 'Tab_Size' : Tab_Size, - 'Tab_Indents_Selection' : Tab_Indents_Selection, - 'Tab_Inserts_Spaces' : Tab_Inserts_Spaces, - 'Text_Font' : Text_Font, - 'Text_Size' : Text_Size, -} -Font._privelemdict = { -} -Function_Information._superclassnames = [] -Function_Information._privpropdict = { - 'disk_file' : disk_file, - 'lineNumber' : lineNumber, -} -Function_Information._privelemdict = { -} -Global_Source_Trees._superclassnames = [] -Global_Source_Trees._privpropdict = { - 'Source_Trees' : Source_Trees, -} -Global_Source_Trees._privelemdict = { -} -Path_Information._superclassnames = [] -Path_Information._privpropdict = { - 'name' : name, - 'format' : format, - 'origin' : origin, - 'root' : root, - 'recursive' : recursive, - 'framework' : framework, - 'host_flags' : host_flags, -} -Path_Information._privelemdict = { -} -Plugin_Settings._superclassnames = [] -Plugin_Settings._privpropdict = { - 'Plugin_Diagnostics_Level' : Plugin_Diagnostics_Level, - 'Disable_Third_Party_COM_Plugins' : Disable_Third_Party_COM_Plugins, -} -Plugin_Settings._privelemdict = { -} -ProjectFile._superclassnames = [] -ProjectFile._privpropdict = { - 'filetype' : filetype, - 'name' : name, - 'disk_file' : disk_file, - 'codesize' : codesize, - 'datasize' : datasize, - 'up_to_date' : up_to_date, - 'symbols' : symbols, - 'weak_link' : weak_link, - 'initialize_before' : initialize_before, - 'includes' : includes, -} -ProjectFile._privelemdict = { -} -Relative_Path._superclassnames = [] -Relative_Path._privpropdict = { - 'name' : name, - 'format' : format, - 'origin' : origin, - 'root' : root, -} -Relative_Path._privelemdict = { -} -Runtime_Settings._superclassnames = [] -Runtime_Settings._privpropdict = { - 'Host_Application' : Host_Application, - 'Command_Line_Arguments' : Command_Line_Arguments, - 'Working_Directory' : Working_Directory, - 'Environment_Variables' : Environment_Variables, -} -Runtime_Settings._privelemdict = { -} -Segment._superclassnames = [] -Segment._privpropdict = { - 'name' : name, - 'filecount' : filecount, - 'seg_2d_preloaded' : seg_2d_preloaded, - 'seg_2d_protected' : seg_2d_protected, - 'seg_2d_locked' : seg_2d_locked, - 'seg_2d_purgeable' : seg_2d_purgeable, - 'seg_2d_system_heap' : seg_2d_system_heap, -} -Segment._privelemdict = { -} -Shielded_Folder._superclassnames = [] -Shielded_Folder._privpropdict = { - 'Expression_To_Match' : Expression_To_Match, - 'Skip_Project_Operations' : Skip_Project_Operations, - 'Skip_Find_And_Compare_Operations' : Skip_Find_And_Compare_Operations, -} -Shielded_Folder._privelemdict = { -} -Shielded_Folders._superclassnames = [] -Shielded_Folders._privpropdict = { - 'Shielded_Items' : Shielded_Items, -} -Shielded_Folders._privelemdict = { -} -Source_Tree._superclassnames = [] -Source_Tree._privpropdict = { - 'name' : name, - 'path' : path, - 'path_kind' : path_kind, - 'format' : format, -} -Source_Tree._privelemdict = { -} -Syntax_Coloring._superclassnames = [] -Syntax_Coloring._privpropdict = { - 'Syntax_Coloring' : Syntax_Coloring, - 'Comment_Color' : Comment_Color, - 'Keyword_Color' : Keyword_Color, - 'String_Color' : String_Color, - 'Custom_Color_1' : Custom_Color_1, - 'Custom_Color_2' : Custom_Color_2, - 'Custom_Color_3' : Custom_Color_3, - 'Custom_Color_4' : Custom_Color_4, -} -Syntax_Coloring._privelemdict = { -} -Target_Settings._superclassnames = [] -Target_Settings._privpropdict = { - 'Linker' : Linker, - 'Pre_Linker' : Pre_Linker, - 'Post_Linker' : Post_Linker, - 'Target_Name' : Target_Name, - 'Output_Directory_Path' : Output_Directory_Path, - 'Output_Directory_Origin' : Output_Directory_Origin, - 'Output_Directory_Location' : Output_Directory_Location, - 'Use_Relative_Paths' : Use_Relative_Paths, -} -Target_Settings._privelemdict = { -} -Target_Source_Trees._superclassnames = [] -Target_Source_Trees._privpropdict = { - 'Source_Trees' : Source_Trees, -} -Target_Source_Trees._privelemdict = { -} -VCS_Setup._superclassnames = [] -VCS_Setup._privpropdict = { - 'VCS_Active' : VCS_Active, - 'Use_Global_Settings' : Use_Global_Settings, - 'Connection_Method' : Connection_Method, - 'Username' : Username, - 'Password' : Password, - 'Auto_Connect' : Auto_Connect, - 'Store_Password' : Store_Password, - 'Always_Prompt' : Always_Prompt, - 'Mount_Volume' : Mount_Volume, - 'Database_Path' : Database_Path, - 'Local_Path' : Local_Path, -} -VCS_Setup._privelemdict = { -} -class_._superclassnames = [] -class_._privpropdict = { - 'name' : name, - 'language' : language, - 'declaration_file' : declaration_file, - 'declaration_start_offset' : declaration_start_offset, - 'declaration_end_offset' : declaration_end_offset, - 'subclasses' : subclasses, - 'all_subclasses' : all_subclasses, -} -class_._privelemdict = { - 'base_class' : base_class, - 'member_function' : member_function, - 'data_member' : data_member, -} -member_function._superclassnames = [] -member_function._privpropdict = { - 'name' : name, - 'access' : access, - 'virtual' : virtual, - 'static' : static, - 'declaration_file' : declaration_file, - 'declaration_start_offset' : declaration_start_offset, - 'declaration_end_offset' : declaration_end_offset, - 'implementation_file' : implementation_file, - 'implementation_start_offset' : implementation_start_offset, - 'implementation_end_offset' : implementation_end_offset, -} -member_function._privelemdict = { -} -data_member._superclassnames = [] -data_member._privpropdict = { - 'name' : name, - 'access' : access, - 'static' : static, - 'declaration_start_offset' : declaration_start_offset, - 'declaration_end_offset' : declaration_end_offset, -} -data_member._privelemdict = { -} -base_class._superclassnames = [] -base_class._privpropdict = { - 'class_' : class_, - 'access' : access, - 'virtual' : virtual, -} -base_class._privelemdict = { -} -browser_catalog._superclassnames = [] -browser_catalog._privpropdict = { -} -browser_catalog._privelemdict = { - 'class_' : class_, -} -_Enum_TmpB = { - 'User_Specified' : 'Usrs', # Use user specified symbols when setting temporary breakpoints on program launch. - 'Default' : 'Dflt', # Use system default symbols when setting temporary breakpoints on program launch. -} - -_Enum_TxtF = { - 'MacOS' : 'TxF0', # MacOS text format - 'DOS' : 'TxF1', # DOS text format - 'Unix' : 'TxF2', # Unix text format -} - -_Enum_savo = { - 'yes' : 'yes ', # Save changes - 'no' : 'no ', # Do not save changes - 'ask' : 'ask ', # Ask the user whether to save -} - -_Enum_ErrT = { - 'information' : 'ErIn', # - 'compiler_warning' : 'ErCW', # - 'compiler_error' : 'ErCE', # - 'definition' : 'ErDf', # - 'linker_warning' : 'ErLW', # - 'linker_error' : 'ErLE', # - 'find_result' : 'ErFn', # - 'generic_error' : 'ErGn', # -} - -_Enum_SrcT = { - 'source' : 'FTxt', # A source file (.c, .cp, .p, etc). - 'unknown' : 'FUnk', # An unknown file type. -} - -_Enum_PPrm = { - 'absolute' : 'Abso', # An absolute path name, including volume name. - 'project_relative' : 'PRel', # A path relative to the current project\xd5s folder. - 'shell_relative' : 'SRel', # A path relative to the CodeWarrior\xaa folder. - 'system_relative' : 'YRel', # A path relative to the system folder - 'root_relative' : 'RRel', # -} - -_Enum_DbSA = { - 'No_Action' : 'DSA1', # Don\xd5t do anything to non-debug windows - 'Hide_Windows' : 'DSA2', # Hide non-debugging windows - 'Collapse_Windows' : 'DSA3', # Collapse non-debugging windows - 'Close_Windows' : 'DSA4', # Close non-debugging windows -} - -_Enum_Lang = { - 'C' : 'LC ', # - 'C_2b__2b_' : 'LC++', # - 'Pascal' : 'LP ', # - 'Object_Pascal' : 'LP++', # - 'Java' : 'LJav', # - 'Assembler' : 'LAsm', # - 'Unknown' : 'L? ', # -} - -_Enum_Acce = { - 'public' : 'Publ', # - 'protected' : 'Prot', # - 'private' : 'Priv', # -} - -_Enum_Inte = { - 'never_interact' : 'eNvr', # Never allow user interactions - 'interact_with_self' : 'eInS', # Allow user interaction only when an AppleEvent is sent from within CodeWarrior - 'interact_with_local' : 'eInL', # Allow user interaction when AppleEvents are sent from applications on the same machine (default) - 'interact_with_all' : 'eInA', # Allow user interaction from both local and remote AppleEvents -} - -_Enum_DgBL = { - 'Always' : 'DgB0', # Always build before debugging. - 'Never' : 'DgB1', # Never build before debugging. - 'Ask' : 'DgB2', # Ask about building before debugging. -} - -_Enum_RefP = { - 'Think_Reference' : 'DanR', # - 'QuickView' : 'ALTV', # -} - -_Enum_PXdg = { - 'Diagnose_None' : 'PXd1', # No Plugin Diagnostics. - 'Diagnose_Errors' : 'PXd2', # Plugin Diagnostics for errors only. - 'Diagnose_All' : 'PXd3', # Plugin Diagnostics for everything. -} - -_Enum_BXbr = { - 'Always_Build' : 'BXb1', # Always build the target before running. - 'Ask_Build' : 'BXb2', # Ask before building the target when running. - 'Never_Build' : 'BXb3', # Never before building the target before running. -} - -_Enum_STKd = { - 'Absolute_Path' : 'STK0', # The \xd2path\xd3 property is an absolute path to the location of the source tree. - 'Registry_Key' : 'STK1', # The \xd2path\xd3 property is the name of a registry key that contains the path to the root. - 'Environment_Variable' : 'STK2', # The \xd2path\xd3 property is the name of an environment variable that contains the path to the root. -} - -_Enum_PthF = { - 'Generic_Path' : 'PFGn', # - 'MacOS_Path' : 'PFMc', # MacOS path using colon as separator - 'Windows_Path' : 'PFWn', # Windows path using backslash as separator - 'Unix_Path' : 'PFUx', # Unix path using slash as separator -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'FMap' : File_Mapping, - 'Cata' : browser_catalog, - 'BSTG' : Build_Settings, - 'SrcF' : ProjectFile, - 'BRKW' : Browser_Coloring, - 'ErrM' : Error_Information, - 'VCSs' : VCS_Setup, - 'EDTR' : Editor, - 'SHFL' : Shielded_Folders, - 'SFit' : Shielded_Folder, - 'CUKW' : Custom_Keywords, - 'PInf' : Path_Information, - 'FLMP' : File_Mappings, - 'Seg ' : Segment, - 'DbTG' : Debugger_Target, - 'FDef' : Function_Information, - 'PATH' : Access_Paths, - 'GXTR' : Extras, - 'DbWN' : Debugger_Windowing, - 'GSTs' : Global_Source_Trees, - '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_, -} - -_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, - 'Acce' : access, - 'BW02' : Constants_Color, - 'Kind' : path_kind, - '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, - '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, - '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, - '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, - 'PX02' : Disable_Third_Party_COM_Plugins, - '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, - '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, - '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 = { - 'Lang' : _Enum_Lang, - 'Inte' : _Enum_Inte, - 'STKd' : _Enum_STKd, - 'DgBL' : _Enum_DgBL, - '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 deleted file mode 100644 index 779c7d3..0000000 --- a/Mac/Lib/lib-scriptpackages/CodeWarrior/Required.py +++ /dev/null @@ -1,62 +0,0 @@ -"""Suite Required: Terms that every application should support -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'reqd' - -from StdSuites.Required_Suite import * -class Required_Events(Required_Suite_Events): - - _argmap_open = { - 'converting' : 'Conv', - } - - def open(self, _object, _attributes={}, **_arguments): - """open: Open the specified object(s) - Required argument: list of objects to open - Keyword argument converting: Whether to convert project to latest version (yes/no; default is ask). - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'odoc' - - aetools.keysubst(_arguments, self._argmap_open) - _arguments['----'] = _object - - aetools.enumsubst(_arguments, 'Conv', _Enum_Conv) - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - -_Enum_Conv = { - 'yes' : 'yes ', # Convert the project if necessary on open - 'no' : 'no ', # Do not convert the project if needed on open -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { - 'Conv' : _Enum_Conv, -} diff --git a/Mac/Lib/lib-scriptpackages/CodeWarrior/Standard_Suite.py b/Mac/Lib/lib-scriptpackages/CodeWarrior/Standard_Suite.py deleted file mode 100644 index 0213b98..0000000 --- a/Mac/Lib/lib-scriptpackages/CodeWarrior/Standard_Suite.py +++ /dev/null @@ -1,407 +0,0 @@ -"""Suite Standard Suite: Common terms for most applications -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'CoRe' - -from StdSuites.Standard_Suite import * -class Standard_Suite_Events(Standard_Suite_Events): - - _argmap_close = { - 'saving' : 'savo', - 'saving_in' : 'kfil', - } - - def close(self, _object, _attributes={}, **_arguments): - """close: close an object - Required argument: the object to close - Keyword argument saving: specifies whether or not changes should be saved before closing - Keyword argument saving_in: the file in which to save the object - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'core' - _subcode = 'clos' - - aetools.keysubst(_arguments, self._argmap_close) - _arguments['----'] = _object - - aetools.enumsubst(_arguments, 'savo', _Enum_savo) - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_count = { - 'each' : 'kocl', - } - - def count(self, _object, _attributes={}, **_arguments): - """count: return the number of elements of a particular class within an object - Required argument: the object whose elements are to be counted - Keyword argument each: the class of the elements to be counted. Keyword 'each' is optional in AppleScript - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the number of elements - """ - _code = 'core' - _subcode = 'cnte' - - aetools.keysubst(_arguments, self._argmap_count) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_get = { - 'as' : 'rtyp', - } - - def get(self, _object, _attributes={}, **_arguments): - """get: get the data for an object - Required argument: the object whose data is to be returned - Keyword argument as: the desired types for the data, in order of preference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: The data from the object - """ - _code = 'core' - _subcode = 'getd' - - aetools.keysubst(_arguments, self._argmap_get) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_make = { - 'new' : 'kocl', - 'as' : 'rtyp', - 'at' : 'insh', - 'with_data' : 'data', - 'with_properties' : 'prdt', - } - - def make(self, _no_object=None, _attributes={}, **_arguments): - """make: make a new element - Keyword argument new: the class of the new element\xd1keyword 'new' is optional in AppleScript - Keyword argument as: the desired types for the data, in order of preference - Keyword argument at: the location at which to insert the element - Keyword argument with_data: the initial data for the element - Keyword argument with_properties: the initial values for the properties of the element - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: to the new object(s) - """ - _code = 'core' - _subcode = 'crel' - - aetools.keysubst(_arguments, self._argmap_make) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def select(self, _object=None, _attributes={}, **_arguments): - """select: select the specified object - Required argument: the object to select - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'misc' - _subcode = 'slct' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_set = { - 'to' : 'data', - } - - def set(self, _object, _attributes={}, **_arguments): - """set: set an object's data - Required argument: the object to change - Keyword argument to: the new value - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'core' - _subcode = 'setd' - - aetools.keysubst(_arguments, self._argmap_set) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -class application(aetools.ComponentItem): - """application - an application program """ - want = 'capp' -class user_interaction(aetools.NProperty): - """user interaction - user interaction level """ - which = 'inte' - want = 'Inte' -# element 'docu' as ['indx', 'name', 'rang'] -# element 'cwin' as ['indx', 'name', 'rang'] - -class character(aetools.ComponentItem): - """character - a character """ - want = 'cha ' -class offset(aetools.NProperty): - """offset - offset of a text object from the beginning of the document (first char has offset 1) """ - which = 'pOff' - want = 'long' -class length(aetools.NProperty): - """length - length in characters of this object """ - which = 'pLen' - want = 'long' - -class document(aetools.ComponentItem): - """document - a document """ - want = 'docu' -class name(aetools.NProperty): - """name - the title of the document """ - which = 'pnam' - want = 'itxt' -class kind(aetools.NProperty): - """kind - the kind of document """ - which = 'DKND' - want = 'DKND' -class index(aetools.NProperty): - """index - the number of the document """ - which = 'pidx' - want = 'long' -class location(aetools.NProperty): - """location - the file of the document """ - which = 'FILE' - want = 'fss ' -class file_permissions(aetools.NProperty): - """file permissions - the file permissions for the document """ - which = 'PERM' - want = 'PERM' -class window(aetools.NProperty): - """window - the window of the document. """ - which = 'cwin' - want = 'cwin' - -documents = document - -class file(aetools.ComponentItem): - """file - A file """ - want = 'file' - -files = file - -class insertion_point(aetools.ComponentItem): - """insertion point - An insertion location between two objects """ - want = 'cins' - -class line(aetools.ComponentItem): - """line - lines of text """ - want = 'clin' -# element 'cha ' as ['indx', 'rang', 'rele'] - -lines = line - -class selection_2d_object(aetools.ComponentItem): - """selection-object - the selection visible to the user """ - want = 'csel' -class contents(aetools.NProperty): - """contents - the contents of the selection """ - which = 'pcnt' - want = 'type' -# element 'cha ' as ['indx', 'rele', 'rang', 'test'] -# element 'clin' as ['indx', 'rang', 'rele'] -# element 'ctxt' as ['rang'] - -class text(aetools.ComponentItem): - """text - Text """ - want = 'ctxt' -# element 'cha ' as ['indx', 'rele', 'rang'] -# element 'cins' as ['rele'] -# element 'clin' as ['indx', 'rang', 'rele'] -# element 'ctxt' as ['rang'] - -class window(aetools.ComponentItem): - """window - A window """ - want = 'cwin' -class bounds(aetools.NProperty): - """bounds - the boundary rectangle for the window """ - which = 'pbnd' - want = 'qdrt' -class document(aetools.NProperty): - """document - the document that owns this window """ - which = 'docu' - want = 'docu' -class position(aetools.NProperty): - """position - upper left coordinates of window """ - which = 'ppos' - want = 'QDpt' -class visible(aetools.NProperty): - """visible - is the window visible? """ - which = 'pvis' - want = 'bool' -class zoomed(aetools.NProperty): - """zoomed - Is the window zoomed? """ - which = 'pzum' - want = 'bool' - -windows = window -application._superclassnames = [] -application._privpropdict = { - 'user_interaction' : user_interaction, -} -application._privelemdict = { - 'document' : document, - 'window' : window, -} -character._superclassnames = [] -character._privpropdict = { - 'offset' : offset, - 'length' : length, -} -character._privelemdict = { -} -document._superclassnames = [] -document._privpropdict = { - 'name' : name, - 'kind' : kind, - 'index' : index, - 'location' : location, - 'file_permissions' : file_permissions, - 'window' : window, -} -document._privelemdict = { -} -file._superclassnames = [] -file._privpropdict = { -} -file._privelemdict = { -} -insertion_point._superclassnames = [] -insertion_point._privpropdict = { - 'length' : length, - 'offset' : offset, -} -insertion_point._privelemdict = { -} -line._superclassnames = [] -line._privpropdict = { - 'index' : index, - 'offset' : offset, - 'length' : length, -} -line._privelemdict = { - 'character' : character, -} -selection_2d_object._superclassnames = [] -selection_2d_object._privpropdict = { - 'contents' : contents, - 'length' : length, - 'offset' : offset, -} -selection_2d_object._privelemdict = { - 'character' : character, - 'line' : line, - 'text' : text, -} -text._superclassnames = [] -text._privpropdict = { - 'length' : length, - 'offset' : offset, -} -text._privelemdict = { - 'character' : character, - 'insertion_point' : insertion_point, - 'line' : line, - 'text' : text, -} -window._superclassnames = [] -window._privpropdict = { - 'name' : name, - 'index' : index, - 'bounds' : bounds, - 'document' : document, - 'position' : position, - 'visible' : visible, - 'zoomed' : zoomed, -} -window._privelemdict = { -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'cha ' : character, - 'ctxt' : text, - 'cwin' : window, - 'file' : file, - 'clin' : line, - 'csel' : selection_2d_object, - 'capp' : application, - 'cins' : insertion_point, - 'docu' : document, -} - -_propdeclarations = { - 'inte' : user_interaction, - 'pvis' : visible, - 'DKND' : kind, - 'pbnd' : bounds, - 'PERM' : file_permissions, - 'docu' : document, - 'pidx' : index, - 'pOff' : offset, - 'cwin' : window, - 'FILE' : location, - 'pnam' : name, - 'pLen' : length, - 'ppos' : position, - 'pzum' : zoomed, - 'pcnt' : contents, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/CodeWarrior/__init__.py b/Mac/Lib/lib-scriptpackages/CodeWarrior/__init__.py deleted file mode 100644 index 4b27d96..0000000 --- a/Mac/Lib/lib-scriptpackages/CodeWarrior/__init__.py +++ /dev/null @@ -1,188 +0,0 @@ -""" -Package generated from /Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5 -Resource aete resid 0 AppleEvent Suites -""" -import aetools -Error = aetools.Error -import Required -import Standard_Suite -import CodeWarrior_suite -import Metrowerks_Shell_Suite - - -_code_to_module = { - 'reqd' : Required, - 'CoRe' : Standard_Suite, - 'CWIE' : CodeWarrior_suite, - 'MMPR' : Metrowerks_Shell_Suite, -} - - - -_code_to_fullname = { - 'reqd' : ('CodeWarrior.Required', 'Required'), - 'CoRe' : ('CodeWarrior.Standard_Suite', 'Standard_Suite'), - 'CWIE' : ('CodeWarrior.CodeWarrior_suite', 'CodeWarrior_suite'), - 'MMPR' : ('CodeWarrior.Metrowerks_Shell_Suite', 'Metrowerks_Shell_Suite'), -} - -from Required import * -from Standard_Suite import * -from CodeWarrior_suite import * -from Metrowerks_Shell_Suite import * -def getbaseclasses(v): - if hasattr(v, '_superclassnames') and not hasattr(v, '_propdict'): - v._propdict = {} - v._elemdict = {} - for superclass in v._superclassnames: - v._propdict.update(getattr(eval(superclass), '_privpropdict', {})) - v._elemdict.update(getattr(eval(superclass), '_privelemdict', {})) - v._propdict.update(v._privpropdict) - v._elemdict.update(v._privelemdict) - -import StdSuites - -# -# Set property and element dictionaries now that all classes have been defined -# -getbaseclasses(character) -getbaseclasses(text) -getbaseclasses(window) -getbaseclasses(file) -getbaseclasses(line) -getbaseclasses(selection_2d_object) -getbaseclasses(application) -getbaseclasses(insertion_point) -getbaseclasses(document) -getbaseclasses(single_class_browser) -getbaseclasses(project_document) -getbaseclasses(symbol_browser) -getbaseclasses(editor_document) -getbaseclasses(file_compare_document) -getbaseclasses(class_browser) -getbaseclasses(subtarget) -getbaseclasses(message_document) -getbaseclasses(project_inspector) -getbaseclasses(text_document) -getbaseclasses(catalog_document) -getbaseclasses(class_hierarchy) -getbaseclasses(target) -getbaseclasses(build_progress_document) -getbaseclasses(target_file) -getbaseclasses(ToolServer_worksheet) -getbaseclasses(single_class_hierarchy) -getbaseclasses(File_Mapping) -getbaseclasses(browser_catalog) -getbaseclasses(Build_Settings) -getbaseclasses(ProjectFile) -getbaseclasses(Browser_Coloring) -getbaseclasses(Error_Information) -getbaseclasses(VCS_Setup) -getbaseclasses(Editor) -getbaseclasses(Shielded_Folders) -getbaseclasses(Shielded_Folder) -getbaseclasses(Custom_Keywords) -getbaseclasses(Path_Information) -getbaseclasses(File_Mappings) -getbaseclasses(Segment) -getbaseclasses(Debugger_Target) -getbaseclasses(Function_Information) -getbaseclasses(Access_Paths) -getbaseclasses(Extras) -getbaseclasses(Debugger_Windowing) -getbaseclasses(Global_Source_Trees) -getbaseclasses(Syntax_Coloring) -getbaseclasses(base_class) -getbaseclasses(Relative_Path) -getbaseclasses(Target_Settings) -getbaseclasses(Environment_Variable) -getbaseclasses(Source_Tree) -getbaseclasses(Debugger_Global) -getbaseclasses(member_function) -getbaseclasses(Runtime_Settings) -getbaseclasses(Plugin_Settings) -getbaseclasses(data_member) -getbaseclasses(Build_Extras) -getbaseclasses(Font) -getbaseclasses(Target_Source_Trees) -getbaseclasses(Debugger_Display) -getbaseclasses(class_) - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'cha ' : character, - 'ctxt' : text, - 'cwin' : window, - 'file' : file, - 'clin' : line, - 'csel' : selection_2d_object, - 'capp' : application, - 'cins' : insertion_point, - 'docu' : document, - '1BRW' : single_class_browser, - 'PRJD' : project_document, - '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, - 'FMap' : File_Mapping, - 'Cata' : browser_catalog, - 'BSTG' : Build_Settings, - 'SrcF' : ProjectFile, - 'BRKW' : Browser_Coloring, - 'ErrM' : Error_Information, - 'VCSs' : VCS_Setup, - 'EDTR' : Editor, - 'SHFL' : Shielded_Folders, - 'SFit' : Shielded_Folder, - 'CUKW' : Custom_Keywords, - 'PInf' : Path_Information, - 'FLMP' : File_Mappings, - 'Seg ' : Segment, - 'DbTG' : Debugger_Target, - 'FDef' : Function_Information, - 'PATH' : Access_Paths, - 'GXTR' : Extras, - 'DbWN' : Debugger_Windowing, - 'GSTs' : Global_Source_Trees, - '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_, -} - - -class CodeWarrior(Required_Events, - Standard_Suite_Events, - CodeWarrior_suite_Events, - Metrowerks_Shell_Suite_Events, - aetools.TalkTo): - _signature = 'CWIE' - - _moduleName = 'CodeWarrior' - diff --git a/Mac/Lib/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py b/Mac/Lib/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py deleted file mode 100644 index ac8013d..0000000 --- a/Mac/Lib/lib-scriptpackages/Explorer/Microsoft_Internet_Explorer.py +++ /dev/null @@ -1,96 +0,0 @@ -"""Suite Microsoft Internet Explorer Suite: Events defined by Internet Explorer -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Internet Explorer 5/Internet Explorer -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_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: 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' - """ - _code = 'MSIE' - _subcode = 'SORC' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_do_script = { - 'window' : 'WIND', - } - - def do_script(self, _object, _attributes={}, **_arguments): - """do script: Execute script commands - Required argument: JavaScript text to execute - 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 - """ - _code = 'misc' - _subcode = 'dosc' - - aetools.keysubst(_arguments, self._argmap_do_script) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def 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('----'): - return _arguments['----'] - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Explorer/Netscape_Suite.py b/Mac/Lib/lib-scriptpackages/Explorer/Netscape_Suite.py deleted file mode 100644 index 5076ce4..0000000 --- a/Mac/Lib/lib-scriptpackages/Explorer/Netscape_Suite.py +++ /dev/null @@ -1,49 +0,0 @@ -"""Suite Netscape Suite: Events defined by Netscape -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Internet Explorer 5/Internet Explorer -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'MOSS' - -class Netscape_Suite_Events: - - def Open_bookmark(self, _object=None, _attributes={}, **_arguments): - """Open bookmark: Opens a bookmark file - Required argument: If not available, reloads the current bookmark file - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MOSS' - _subcode = 'book' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Explorer/Required_Suite.py b/Mac/Lib/lib-scriptpackages/Explorer/Required_Suite.py deleted file mode 100644 index 05cfa19..0000000 --- a/Mac/Lib/lib-scriptpackages/Explorer/Required_Suite.py +++ /dev/null @@ -1,108 +0,0 @@ -"""Suite Required Suite: Events that every application should support -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Internet Explorer 5/Internet Explorer -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'reqd' - -from StdSuites.Required_Suite import * -class Required_Suite_Events(Required_Suite_Events): - - def run(self, _no_object=None, _attributes={}, **_arguments): - """run: - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'oapp' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def open(self, _object, _attributes={}, **_arguments): - """open: Open documents - Required argument: undocumented, typecode 'alis' - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'odoc' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def print_(self, _object, _attributes={}, **_arguments): - """print: Print documents - Required argument: undocumented, typecode 'alis' - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'pdoc' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def quit(self, _no_object=None, _attributes={}, **_arguments): - """quit: Quit application - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'quit' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Explorer/Standard_Suite.py b/Mac/Lib/lib-scriptpackages/Explorer/Standard_Suite.py deleted file mode 100644 index 101afe7..0000000 --- a/Mac/Lib/lib-scriptpackages/Explorer/Standard_Suite.py +++ /dev/null @@ -1,71 +0,0 @@ -"""Suite Standard Suite: Common terms for most applications -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Internet Explorer 5/Internet Explorer -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = '****' - -class Standard_Suite_Events: - - _argmap_get = { - 'as' : 'rtyp', - } - - def get(self, _object, _attributes={}, **_arguments): - """get: - Required argument: an AE object reference - Keyword argument as: undocumented, typecode 'type' - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'core' - _subcode = 'getd' - - aetools.keysubst(_arguments, self._argmap_get) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -class application(aetools.ComponentItem): - """application - An application program """ - want = 'capp' -class selected_text(aetools.NProperty): - """selected text - the selected text """ - which = 'stxt' - want = 'TEXT' -application._superclassnames = [] -application._privpropdict = { - 'selected_text' : selected_text, -} -application._privelemdict = { -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'capp' : application, -} - -_propdeclarations = { - 'stxt' : selected_text, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py b/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py deleted file mode 100644 index a89913f..0000000 --- a/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py +++ /dev/null @@ -1,54 +0,0 @@ -"""Suite URL Suite: Standard suite for Uniform Resource Locators -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Internet Explorer 5/Internet Explorer -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'GURL' - -class URL_Suite_Events: - - _argmap_GetURL = { - 'to' : 'dest', - } - - def GetURL(self, _object, _attributes={}, **_arguments): - """GetURL: Open the URL (and optionally save it to disk) - 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' - _subcode = 'GURL' - - aetools.keysubst(_arguments, self._argmap_GetURL) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Explorer/Web_Browser_Suite.py b/Mac/Lib/lib-scriptpackages/Explorer/Web_Browser_Suite.py deleted file mode 100644 index 96f4ec0..0000000 --- a/Mac/Lib/lib-scriptpackages/Explorer/Web_Browser_Suite.py +++ /dev/null @@ -1,226 +0,0 @@ -"""Suite Web Browser Suite: Class of events supported by Web Browser applications -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Internet Explorer 5/Internet Explorer -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'WWW!' - -class Web_Browser_Suite_Events: - - _argmap_OpenURL = { - 'to' : 'INTO', - 'toWindow' : 'WIND', - 'Flags' : 'FLGS', - 'FormData' : 'POST', - 'MIME_Type' : 'MIME', - } - - def OpenURL(self, _object, _attributes={}, **_arguments): - """OpenURL: Retrieves URL off the Web. - 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: data to post - Keyword argument MIME_Type: MIME type of data being posted - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'OURL' - - aetools.keysubst(_arguments, self._argmap_OpenURL) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_ShowFile = { - 'MIME_Type' : 'MIME', - 'Window_Identifier' : 'WIND', - 'URL' : 'URL ', - } - - def ShowFile(self, _object, _attributes={}, **_arguments): - """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 - """ - _code = 'WWW!' - _subcode = 'SHWF' - - aetools.keysubst(_arguments, self._argmap_ShowFile) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def CloseAllWindows(self, _no_object=None, _attributes={}, **_arguments): - """CloseAllWindows: Closes all windows - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Success - """ - _code = 'WWW!' - _subcode = 'CLSA' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_CloseWindow = { - 'ID' : 'WIND', - 'Title' : 'TITL', - } - - def CloseWindow(self, _no_object=None, _attributes={}, **_arguments): - """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 _attributes: AppleEvent attribute dictionary - Returns: Success - """ - _code = 'WWW!' - _subcode = 'CLOS' - - aetools.keysubst(_arguments, self._argmap_CloseWindow) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Activate(self, _object=None, _attributes={}, **_arguments): - """Activate: Activate Internet Explorer and optionally select window designated by Window Identifier. - Required argument: Window Identifier - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Window Identifier of window to activate - """ - _code = 'WWW!' - _subcode = 'ACTV' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def ListWindows(self, _no_object=None, _attributes={}, **_arguments): - """ListWindows: Returns list of Window Identifiers for all open windows. - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'list' - """ - _code = 'WWW!' - _subcode = 'LSTW' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.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: Window Identifier of the window - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: - """ - _code = 'WWW!' - _subcode = 'WNFO' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_ParseAnchor = { - 'withURL' : 'RELA', - } - - def ParseAnchor(self, _object, _attributes={}, **_arguments): - """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: Fully-qualified URL - """ - _code = 'WWW!' - _subcode = 'PRSA' - - aetools.keysubst(_arguments, self._argmap_ParseAnchor) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Explorer/__init__.py b/Mac/Lib/lib-scriptpackages/Explorer/__init__.py deleted file mode 100644 index 15e8b21..0000000 --- a/Mac/Lib/lib-scriptpackages/Explorer/__init__.py +++ /dev/null @@ -1,76 +0,0 @@ -""" -Package generated from /Volumes/Sap/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 - - -_code_to_module = { - 'reqd' : Required_Suite, - '****' : Standard_Suite, - 'WWW!' : Web_Browser_Suite, - 'GURL' : URL_Suite, - 'MSIE' : Microsoft_Internet_Explorer, - 'MOSS' : Netscape_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'), -} - -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 * -def getbaseclasses(v): - if hasattr(v, '_superclassnames') and not hasattr(v, '_propdict'): - v._propdict = {} - v._elemdict = {} - for superclass in v._superclassnames: - v._propdict.update(getattr(eval(superclass), '_privpropdict', {})) - v._elemdict.update(getattr(eval(superclass), '_privelemdict', {})) - v._propdict.update(v._privpropdict) - v._elemdict.update(v._privelemdict) - -import StdSuites - -# -# Set property and element dictionaries now that all classes have been defined -# -getbaseclasses(application) - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'capp' : application, -} - - -class Explorer(Required_Suite_Events, - Standard_Suite_Events, - Web_Browser_Suite_Events, - URL_Suite_Events, - Microsoft_Internet_Explorer_Events, - Netscape_Suite_Events, - aetools.TalkTo): - _signature = 'MSIE' - - _moduleName = 'Explorer' - diff --git a/Mac/Lib/lib-scriptpackages/Finder/Containers_and_folders.py b/Mac/Lib/lib-scriptpackages/Finder/Containers_and_folders.py deleted file mode 100644 index c3aac16..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/Containers_and_folders.py +++ /dev/null @@ -1,497 +0,0 @@ -"""Suite Containers and folders: Classes that can contain other file system items -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Finder -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'fndr' - -class Containers_and_folders_Events: - - pass - - -class container(aetools.ComponentItem): - """container - An item that contains other items """ - want = 'ctnr' -class _3c_Inheritance_3e_(aetools.NProperty): - """<Inheritance> - inherits some of its properties from the item class """ - which = 'c@#^' - want = 'cobj' -class selection(aetools.NProperty): - """selection - the selection visible to the user """ - which = 'sele' - want = 'obj ' -class entire_contents(aetools.NProperty): - """entire contents - the entire contents of the container, including the contents of its children """ - which = 'ects' - want = 'obj ' -class expandable(aetools.NProperty): - """expandable - Is the container capable of being expanded as an outline? """ - which = 'pexa' - want = 'bool' -class expanded(aetools.NProperty): - """expanded - Is the container opened as an outline? (can only be set for containers viewed as lists) """ - which = 'pexp' - want = 'bool' -class completely_expanded(aetools.NProperty): - """completely expanded - Are the container and all of its children opened as outlines? (can only be set for containers viewed as lists) """ - which = 'pexc' - want = 'bool' -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'] -# element 'cfol' as ['indx', 'name', 'ID '] -# element 'file' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name', 'ID '] -# element 'docf' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'inlf' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'clpf' as ['indx', 'name'] -# element 'pack' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'dsut' as ['indx', 'name'] - -containers = container - -class sharable_container(aetools.ComponentItem): - """sharable container - A container that may be shared (disks and folders) """ - want = 'sctr' -class owner(aetools.NProperty): - """owner - the user that owns the container (file sharing must be on to use this property) """ - which = 'sown' - want = 'itxt' -class group(aetools.NProperty): - """group - the user or group that has special access to the container (file sharing must be on to use this property) """ - which = 'sgrp' - want = 'itxt' -class owner_privileges(aetools.NProperty): - """owner privileges - the see folders/see files/make changes privileges for the owner (file sharing must be on to use this property) """ - which = 'ownr' - want = 'priv' -class group_privileges(aetools.NProperty): - """group privileges - the see folders/see files/make changes privileges for the group (file sharing must be on to use this property) """ - which = 'gppr' - want = 'priv' -class guest_privileges(aetools.NProperty): - """guest privileges - the see folders/see files/make changes privileges for everyone (file sharing must be on to use this property) """ - which = 'gstp' - want = 'priv' -class privileges_inherited(aetools.NProperty): - """privileges inherited - Are the privileges of the container always the same as the container in which it is stored? (file sharing must be on to use this property) """ - which = 'iprv' - want = 'bool' -class mounted(aetools.NProperty): - """mounted - Is the container mounted on another machine's desktop? (file sharing must be on to use this property) """ - which = 'smou' - want = 'bool' -class exported(aetools.NProperty): - """exported - Is the container a share point or inside a share point, i.e., can the container be shared? (file sharing must be on to use this property) """ - which = 'sexp' - want = 'bool' -class shared(aetools.NProperty): - """shared - Is the container a share point, i.e., is the container currently being shared? (file sharing must be on to use this property) """ - which = 'shar' - want = 'bool' -class protected(aetools.NProperty): - """protected - Is the container protected from being moved, renamed and deleted? (file sharing must be on to use this property) """ - which = 'spro' - want = 'bool' -# element 'cobj' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name', 'ID '] -# element 'file' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name', 'ID '] -# element 'docf' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'inlf' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'clpf' as ['indx', 'name'] -# element 'pack' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'dsut' as ['indx', 'name'] - -sharable_containers = sharable_container - -class sharing_privileges(aetools.ComponentItem): - """sharing privileges - A set of sharing properties (used in sharable containers) """ - want = 'priv' -class see_folders(aetools.NProperty): - """see folders - Can folders be seen? """ - which = 'prvs' - want = 'bool' -class see_files(aetools.NProperty): - """see files - Can files be seen? """ - which = 'prvr' - want = 'bool' -class make_changes(aetools.NProperty): - """make changes - Can changes be made? """ - which = 'prvw' - want = 'bool' - -class disk(aetools.ComponentItem): - """disk - A disk """ - want = 'cdis' -class capacity(aetools.NProperty): - """capacity - the total number of bytes (free or used) on the disk """ - which = 'capa' - want = 'long' -class free_space(aetools.NProperty): - """free space - the number of free bytes left on the disk """ - which = 'frsp' - want = 'long' -class ejectable(aetools.NProperty): - """ejectable - Can the media be ejected (floppies, CD's, and so on)? """ - which = 'isej' - want = 'bool' -class local_volume(aetools.NProperty): - """local volume - Is the media a local volume (as opposed to a file server)? """ - which = 'isrv' - want = 'bool' -class startup(aetools.NProperty): - """startup - Is this disk the boot disk? """ - which = 'istd' - want = 'bool' -# element 'cobj' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name', 'ID '] -# element 'file' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name', 'ID '] -# element 'docf' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'inlf' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'clpf' as ['indx', 'name'] -# element 'pack' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'dsut' as ['indx', 'name'] - -disks = disk - -class folder(aetools.ComponentItem): - """folder - A folder """ - want = 'cfol' -# element 'cobj' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name', 'ID '] -# element 'file' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name', 'ID '] -# element 'docf' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'inlf' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'clpf' as ['indx', 'name'] -# element 'pack' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'dsut' as ['indx', 'name'] - -folders = folder - -class desktop_2d_object(aetools.ComponentItem): - """desktop-object - Desktop-object is the class of the \xd2desktop\xd3 object """ - want = 'cdsk' -class startup_disk(aetools.NProperty): - """startup disk - the startup disk """ - which = 'sdsk' - want = 'cdis' -class trash(aetools.NProperty): - """trash - the trash """ - which = 'trsh' - want = 'ctrs' -# element 'cobj' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'cdis' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name', 'ID '] -# element 'file' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name', 'ID '] -# element 'docf' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'inlf' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'clpf' as ['indx', 'name'] -# element 'pack' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'dsut' as ['indx', 'name'] - -class trash_2d_object(aetools.ComponentItem): - """trash-object - Trash-object is the class of the \xd2trash\xd3 object """ - want = 'ctrs' -class warns_before_emptying(aetools.NProperty): - """warns before emptying - Display a dialog when emptying the trash? """ - which = 'warn' - want = 'bool' -# element 'cobj' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'cfol' as ['indx', 'name', 'ID '] -# element 'file' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name', 'ID '] -# element 'docf' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'inlf' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'clpf' as ['indx', 'name'] -# element 'pack' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'dsut' as ['indx', 'name'] -import Earlier_terms -container._superclassnames = ['item'] -import Files_and_suitcases -container._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'selection' : selection, - 'entire_contents' : entire_contents, - 'expandable' : expandable, - 'expanded' : expanded, - 'completely_expanded' : completely_expanded, - 'icon_size' : icon_size, - 'icon_size' : icon_size, - 'view_options_window' : view_options_window, -} -container._privelemdict = { - 'item' : Earlier_terms.item, - 'container' : container, - 'sharable_container' : sharable_container, - 'folder' : folder, - 'file' : Files_and_suitcases.file, - 'alias_file' : Files_and_suitcases.alias_file, - 'application_file' : Earlier_terms.application_file, - 'document_file' : Files_and_suitcases.document_file, - 'font_file' : Files_and_suitcases.font_file, - 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file, - 'internet_location' : Earlier_terms.internet_location, - 'sound_file' : Files_and_suitcases.sound_file, - 'clipping' : Files_and_suitcases.clipping, - 'package' : Files_and_suitcases.package, - 'suitcase' : Files_and_suitcases.suitcase, - 'font_suitcase' : Files_and_suitcases.font_suitcase, - 'accessory_suitcase' : Earlier_terms.accessory_suitcase, -} -sharable_container._superclassnames = ['container'] -sharable_container._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'owner' : owner, - 'group' : group, - 'owner_privileges' : owner_privileges, - 'group_privileges' : group_privileges, - 'guest_privileges' : guest_privileges, - 'privileges_inherited' : privileges_inherited, - 'mounted' : mounted, - 'exported' : exported, - 'shared' : shared, - 'protected' : protected, -} -sharable_container._privelemdict = { - 'item' : Earlier_terms.item, - 'container' : container, - 'sharable_container' : sharable_container, - 'folder' : folder, - 'file' : Files_and_suitcases.file, - 'alias_file' : Files_and_suitcases.alias_file, - 'application_file' : Earlier_terms.application_file, - 'document_file' : Files_and_suitcases.document_file, - 'font_file' : Files_and_suitcases.font_file, - 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file, - 'internet_location' : Earlier_terms.internet_location, - 'sound_file' : Files_and_suitcases.sound_file, - 'clipping' : Files_and_suitcases.clipping, - 'package' : Files_and_suitcases.package, - 'suitcase' : Files_and_suitcases.suitcase, - 'font_suitcase' : Files_and_suitcases.font_suitcase, - 'accessory_suitcase' : Earlier_terms.accessory_suitcase, -} -sharing_privileges._superclassnames = [] -sharing_privileges._privpropdict = { - 'see_folders' : see_folders, - 'see_files' : see_files, - 'make_changes' : make_changes, -} -sharing_privileges._privelemdict = { -} -disk._superclassnames = ['sharable_container'] -disk._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'capacity' : capacity, - 'free_space' : free_space, - 'ejectable' : ejectable, - 'local_volume' : local_volume, - 'startup' : startup, -} -disk._privelemdict = { - 'item' : Earlier_terms.item, - 'container' : container, - 'sharable_container' : sharable_container, - 'folder' : folder, - 'file' : Files_and_suitcases.file, - 'alias_file' : Files_and_suitcases.alias_file, - 'application_file' : Earlier_terms.application_file, - 'document_file' : Files_and_suitcases.document_file, - 'font_file' : Files_and_suitcases.font_file, - 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file, - 'internet_location' : Earlier_terms.internet_location, - 'sound_file' : Files_and_suitcases.sound_file, - 'clipping' : Files_and_suitcases.clipping, - 'package' : Files_and_suitcases.package, - 'suitcase' : Files_and_suitcases.suitcase, - 'font_suitcase' : Files_and_suitcases.font_suitcase, - 'accessory_suitcase' : Earlier_terms.accessory_suitcase, -} -folder._superclassnames = ['sharable_container'] -folder._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, -} -folder._privelemdict = { - 'item' : Earlier_terms.item, - 'container' : container, - 'sharable_container' : sharable_container, - 'folder' : folder, - 'file' : Files_and_suitcases.file, - 'alias_file' : Files_and_suitcases.alias_file, - 'application_file' : Earlier_terms.application_file, - 'document_file' : Files_and_suitcases.document_file, - 'font_file' : Files_and_suitcases.font_file, - 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file, - 'internet_location' : Earlier_terms.internet_location, - 'sound_file' : Files_and_suitcases.sound_file, - 'clipping' : Files_and_suitcases.clipping, - 'package' : Files_and_suitcases.package, - 'suitcase' : Files_and_suitcases.suitcase, - 'font_suitcase' : Files_and_suitcases.font_suitcase, - 'accessory_suitcase' : Earlier_terms.accessory_suitcase, -} -desktop_2d_object._superclassnames = ['container'] -desktop_2d_object._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'startup_disk' : startup_disk, - 'trash' : trash, -} -desktop_2d_object._privelemdict = { - 'item' : Earlier_terms.item, - 'container' : container, - 'sharable_container' : sharable_container, - 'disk' : disk, - 'folder' : folder, - 'file' : Files_and_suitcases.file, - 'alias_file' : Files_and_suitcases.alias_file, - 'application_file' : Earlier_terms.application_file, - 'document_file' : Files_and_suitcases.document_file, - 'font_file' : Files_and_suitcases.font_file, - 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file, - 'internet_location' : Earlier_terms.internet_location, - 'sound_file' : Files_and_suitcases.sound_file, - 'clipping' : Files_and_suitcases.clipping, - 'package' : Files_and_suitcases.package, - 'suitcase' : Files_and_suitcases.suitcase, - 'font_suitcase' : Files_and_suitcases.font_suitcase, - 'accessory_suitcase' : Earlier_terms.accessory_suitcase, -} -trash_2d_object._superclassnames = ['container'] -trash_2d_object._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'warns_before_emptying' : warns_before_emptying, -} -trash_2d_object._privelemdict = { - 'item' : Earlier_terms.item, - 'container' : container, - 'sharable_container' : sharable_container, - 'folder' : folder, - 'file' : Files_and_suitcases.file, - 'alias_file' : Files_and_suitcases.alias_file, - 'application_file' : Earlier_terms.application_file, - 'document_file' : Files_and_suitcases.document_file, - 'font_file' : Files_and_suitcases.font_file, - 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file, - 'internet_location' : Earlier_terms.internet_location, - 'sound_file' : Files_and_suitcases.sound_file, - 'clipping' : Files_and_suitcases.clipping, - 'package' : Files_and_suitcases.package, - 'suitcase' : Files_and_suitcases.suitcase, - 'font_suitcase' : Files_and_suitcases.font_suitcase, - 'accessory_suitcase' : Earlier_terms.accessory_suitcase, -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'ctrs' : trash_2d_object, - 'cdsk' : desktop_2d_object, - 'sctr' : sharable_container, - 'priv' : sharing_privileges, - 'cdis' : disk, - 'cfol' : folder, - 'ctnr' : container, -} - -_propdeclarations = { - 'pexp' : expanded, - 'gppr' : group_privileges, - 'prvr' : see_files, - 'ects' : entire_contents, - 'lvis' : icon_size, - 'iprv' : privileges_inherited, - 'isrv' : local_volume, - 'frsp' : free_space, - 'pexa' : expandable, - 'pexc' : completely_expanded, - 'vwnd' : view_options_window, - 'warn' : warns_before_emptying, - 'sown' : owner, - 'prvw' : make_changes, - 'isej' : ejectable, - 'capa' : capacity, - 'shar' : shared, - 'sexp' : exported, - 'sdsk' : startup_disk, - 'istd' : startup, - 'gstp' : guest_privileges, - 'trsh' : trash, - 'smou' : mounted, - 'sele' : selection, - 'prvs' : see_folders, - 'sgrp' : group, - 'c@#^' : _3c_Inheritance_3e_, - 'spro' : protected, - 'ownr' : owner_privileges, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Finder/Earlier_terms.py b/Mac/Lib/lib-scriptpackages/Finder/Earlier_terms.py deleted file mode 100644 index 2f72d0f..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/Earlier_terms.py +++ /dev/null @@ -1,746 +0,0 @@ -"""Suite Earlier terms: Terms that have been renamed -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Finder -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'tpnm' - -from StdSuites.Type_Names_Suite import * -class Earlier_terms_Events(Type_Names_Suite_Events): - - pass - - -class application(aetools.ComponentItem): - """application - The Finder """ - want = 'capp' -class properties(aetools.NProperty): - """properties - property that allows getting and setting of multiple properties """ - which = 'qpro' - want = 'reco' -class clipboard(aetools.NProperty): - """clipboard - the Finder\xd5s clipboard window """ - which = 'pcli' - want = 'obj ' -class largest_free_block(aetools.NProperty): - """largest free block - the largest free block of process memory available to launch an application """ - which = 'mfre' - want = 'long' -class name(aetools.NProperty): - """name - the Finder\xd5s name """ - which = 'pnam' - want = 'itxt' -class visible(aetools.NProperty): - """visible - Is the Finder\xd5s layer visible? """ - which = 'pvis' - want = 'bool' -class frontmost(aetools.NProperty): - """frontmost - Is the Finder the frontmost process? """ - which = 'pisf' - want = 'bool' -class selection(aetools.NProperty): - """selection - the selection visible to the user """ - which = 'sele' - want = 'obj ' -class insertion_location(aetools.NProperty): - """insertion location - the container in which a new folder would appear if \xd2New Folder\xd3 was selected """ - which = 'pins' - want = 'obj ' -class file_sharing(aetools.NProperty): - """file sharing - Is file sharing on? """ - which = 'fshr' - want = 'bool' -class sharing_starting_up(aetools.NProperty): - """sharing starting up - Is file sharing in the process of starting up? """ - which = 'fsup' - want = 'bool' -class product_version(aetools.NProperty): - """product version - the version of the System software running on this computer """ - which = 'ver2' - want = 'itxt' -class version(aetools.NProperty): - """version - the version of the Finder """ - which = 'vers' - want = 'itxt' -class about_this_computer(aetools.NProperty): - """about this computer - the \xd2About this Computer\xd3 dialog and the list of running processes displayed in it """ - which = 'abbx' - want = 'obj ' -class desktop(aetools.NProperty): - """desktop - the desktop """ - which = 'desk' - want = 'cdsk' -class Finder_preferences(aetools.NProperty): - """Finder preferences - Various preferences that apply to the Finder as a whole """ - which = 'pfrp' - want = 'obj ' - -class application_file(aetools.ComponentItem): - """application file - An application's file on disk """ - want = 'appf' -class _3c_Inheritance_3e_(aetools.NProperty): - """<Inheritance> - inherits some of its properties from the file class """ - which = 'c@#^' - want = 'file' -class minimum_partition_size(aetools.NProperty): - """minimum partition size - the smallest memory size with which the application can be launched """ - which = 'mprt' - want = 'long' -class partition_size(aetools.NProperty): - """partition size - the memory size with which the application will be launched """ - which = 'appt' - want = 'long' -class suggested_partition_size(aetools.NProperty): - """suggested partition size - the memory size with which the developer recommends the application be launched """ - which = 'sprt' - want = 'long' -class scriptable(aetools.NProperty): - """scriptable - Is the application high-level event aware? """ - which = 'isab' - want = 'bool' - -class container_window(aetools.ComponentItem): - """container window - A window that contains items """ - want = 'cwnd' -class container(aetools.NProperty): - """container - the container from which the window was opened """ - which = 'ctnr' - want = 'obj ' -class item(aetools.NProperty): - """item - the item from which the window was opened (always returns something) """ - which = 'cobj' - want = 'obj ' -class has_custom_view_settings(aetools.NProperty): - """has custom view settings - Does the folder have custom view settings or is it using the default global settings? """ - which = 'cuss' - want = 'long' -class view(aetools.NProperty): - """view - the current view for the window (icon, name, date, etc.) """ - which = 'pvew' - want = 'long' -class previous_list_view(aetools.NProperty): - """previous list view - the last non-icon view (by name, by date, etc.) selected for the container (forgotten as soon as the window is closed and only available when the window is open) """ - which = 'svew' - want = 'enum' -class button_view_arrangement(aetools.NProperty): - """button view arrangement - the property by which to keep icons arranged within a button view window """ - which = 'barr' - want = 'earr' -class spatial_view_arrangement(aetools.NProperty): - """spatial view arrangement - the property by which to keep icons arranged within a spatial view window """ - which = 'iarr' - want = 'earr' -class sort_direction(aetools.NProperty): - """sort direction - The direction in which the window is sorted """ - which = 'sord' - want = 'sodr' -class calculate_folder_sizes(aetools.NProperty): - """calculate folder sizes - Are folder sizes calculated and displayed in the window? (does not apply to suitcase windows) """ - which = 'sfsz' - want = 'bool' -class show_comments(aetools.NProperty): - """show comments - Are comments displayed in the window? (does not apply to suitcases) """ - which = 'scom' - want = 'bool' -class show_creation_date(aetools.NProperty): - """show creation date - Are creation dates displayed in the window? """ - which = 'scda' - want = 'bool' -class show_kind(aetools.NProperty): - """show kind - Are document kinds displayed in the window? """ - which = 'sknd' - want = 'bool' -class show_label(aetools.NProperty): - """show label - Are labels displayed in the window? """ - which = 'slbl' - want = 'bool' -class show_modification_date(aetools.NProperty): - """show modification date - Are modification dates displayed in the window? """ - which = 'sdat' - want = 'bool' -class show_size(aetools.NProperty): - """show size - Are file sizes displayed in the window? """ - which = 'ssiz' - want = 'bool' -class show_version(aetools.NProperty): - """show version - Are file versions displayed in the window? (does not apply to suitcase windows) """ - which = 'svrs' - want = 'bool' -class use_relative_dates(aetools.NProperty): - """use relative dates - Are relative dates (e.g., today, yesterday) shown in the window? """ - which = 'urdt' - want = 'bool' - -class accessory_process(aetools.ComponentItem): - """accessory process - A process launched from a desk accessory file """ - want = 'pcda' - -accessory_processes = accessory_process - -class accessory_suitcase(aetools.ComponentItem): - """accessory suitcase - A desk accessory suitcase """ - want = 'dsut' - -accessory_suitcases = accessory_suitcase - -class internet_location(aetools.ComponentItem): - """internet location - An file containing an internet location """ - want = 'inlf' - -internet_locations = internet_location - -class information_window(aetools.ComponentItem): - """information window - An information window (opened by \xd2Get Info\xd3) """ - want = 'iwnd' -class comment(aetools.NProperty): - """comment - the comment """ - which = 'comt' - want = 'itxt' -class size(aetools.NProperty): - """size - the logical size of the item """ - which = 'ptsz' - want = 'long' -class physical_size(aetools.NProperty): - """physical size - the actual space used by the item on disk """ - which = 'phys' - want = 'long' -class creation_date(aetools.NProperty): - """creation date - the date on which the item was created """ - which = 'ascd' - want = 'ldt ' -class modification_date(aetools.NProperty): - """modification date - the date on which the item was last modified """ - which = 'asmo' - want = 'ldt ' -class icon(aetools.NProperty): - """icon - the icon bitmap of the item """ - which = 'iimg' - want = 'ifam' -class locked(aetools.NProperty): - """locked - Is the item locked (applies only to file and application information windows)? """ - which = 'aslk' - want = 'bool' -class stationery(aetools.NProperty): - """stationery - Is the item a stationery pad? """ - which = 'pspd' - want = 'bool' -class warn_before_emptying(aetools.NProperty): - """warn before emptying - Display a dialog when emptying the trash (only valid for trash info window)? """ - which = 'warn' - want = 'bool' - -class item(aetools.ComponentItem): - """item - An item """ - want = 'cobj' -class index(aetools.NProperty): - """index - the index in the front-to-back ordering within its container """ - which = 'pidx' - want = 'long' -class id(aetools.NProperty): - """id - an id that identifies the item """ - which = 'ID ' - want = 'long' -class disk(aetools.NProperty): - """disk - the disk on which the item is stored """ - which = 'cdis' - want = 'obj ' -class folder(aetools.NProperty): - """folder - the folder in which the item is stored """ - which = 'asdr' - want = 'obj ' -class position(aetools.NProperty): - """position - the position of the item within its parent window (can only be set for an item in a window viewed as icons or buttons) """ - which = 'posn' - want = 'QDpt' -class bounds(aetools.NProperty): - """bounds - the bounding rectangle of the item (can only be set for an item in a window viewed as icons or buttons) """ - which = 'pbnd' - want = 'qdrt' -class label_index(aetools.NProperty): - """label index - the label of the item """ - which = 'labi' - want = 'long' -class kind(aetools.NProperty): - """kind - the kind of the item """ - which = 'kind' - want = 'itxt' -class description(aetools.NProperty): - """description - a description of the item """ - which = 'dscr' - want = 'itxt' -class selected(aetools.NProperty): - """selected - Is the item selected? """ - which = 'issl' - want = 'bool' -class content_space(aetools.NProperty): - """content space - the window that would open if the item was opened """ - which = 'dwnd' - want = 'obj ' -class window(aetools.NProperty): - """window - the window that would open if the item was opened """ - which = 'cwin' - want = 'obj ' -class information_window(aetools.NProperty): - """information window - the information window for the item """ - which = 'iwnd' - want = 'obj ' - -class process(aetools.ComponentItem): - """process - A process running on this computer """ - want = 'prcs' -class file(aetools.NProperty): - """file - the file from which the process was launched """ - which = 'file' - want = 'obj ' -class file_type(aetools.NProperty): - """file type - the OSType of the file type of the process """ - which = 'asty' - want = 'type' -class creator_type(aetools.NProperty): - """creator type - the OSType of the creator of the process (the signature) """ - which = 'fcrt' - want = 'type' -class remote_events(aetools.NProperty): - """remote events - Does the process accept remote events? """ - which = 'revt' - want = 'bool' -class partition_space_used(aetools.NProperty): - """partition space used - the number of bytes currently used in the process' partition """ - which = 'pusd' - want = 'long' - -class sharable_container(aetools.ComponentItem): - """sharable container - A container that may be shared (disks and folders) """ - want = 'sctr' -class owner(aetools.NProperty): - """owner - the user that owns the container (file sharing must be on to use this property) """ - which = 'sown' - want = 'itxt' -class group(aetools.NProperty): - """group - the user or group that has special access to the container (file sharing must be on to use this property) """ - which = 'sgrp' - want = 'itxt' -class owner_privileges(aetools.NProperty): - """owner privileges - the see folders/see files/make changes privileges for the owner (file sharing must be on to use this property) """ - which = 'ownr' - want = 'priv' -class group_privileges(aetools.NProperty): - """group privileges - the see folders/see files/make changes privileges for the group (file sharing must be on to use this property) """ - which = 'gppr' - want = 'priv' -class guest_privileges(aetools.NProperty): - """guest privileges - the see folders/see files/make changes privileges for everyone (file sharing must be on to use this property) """ - which = 'gstp' - want = 'priv' -class inherited_privileges(aetools.NProperty): - """inherited privileges - Are the privileges of the container always the same as the container in which it is stored? (file sharing must be on to use this property) """ - which = 'iprv' - want = 'bool' -class mounted(aetools.NProperty): - """mounted - Is the container mounted on another machine's desktop? (file sharing must be on to use this property) """ - which = 'smou' - want = 'bool' -class exported(aetools.NProperty): - """exported - Is the container a share point or inside a share point, i.e., can the container be shared? (file sharing must be on to use this property) """ - which = 'sexp' - want = 'bool' -class shared(aetools.NProperty): - """shared - Is the container a share point, i.e., is the container currently being shared? (file sharing must be on to use this property) """ - which = 'shar' - want = 'bool' -class protected(aetools.NProperty): - """protected - Is the container protected from being moved, renamed and deleted? (file sharing must be on to use this property) """ - which = 'spro' - want = 'bool' - -class trash_2d_object(aetools.ComponentItem): - """trash-object - Trash-object is the class of the \xd2trash\xd3 object """ - want = 'ctrs' - -class preferences(aetools.ComponentItem): - """preferences - The Finder Preferences """ - want = 'cprf' -class delay_before_springing(aetools.NProperty): - """delay before springing - the delay before springing open a container in ticks (1/60th of a second) (12 is shortest delay, 60 is longest delay) """ - which = 'dela' - want = 'shor' -class spring_open_folders(aetools.NProperty): - """spring open folders - Spring open folders after the specified delay? """ - which = 'sprg' - want = 'bool' -class use_simple_menus(aetools.NProperty): - """use simple menus - Use simplified Finder menus? """ - which = 'usme' - want = 'bool' -class use_wide_grid(aetools.NProperty): - """use wide grid - Space icons on a wide grid? """ - which = 'uswg' - want = 'bool' - -class window(aetools.ComponentItem): - """window - A window """ - want = 'cwin' -class titled(aetools.NProperty): - """titled - Does the window have a title bar? """ - which = 'ptit' - want = 'bool' -class closeable(aetools.NProperty): - """closeable - Does the window have a close box? """ - which = 'hclb' - want = 'bool' -class floating(aetools.NProperty): - """floating - Does the window have a title bar? """ - which = 'isfl' - want = 'bool' -class modal(aetools.NProperty): - """modal - Is the window modal? """ - which = 'pmod' - want = 'bool' -class resizable(aetools.NProperty): - """resizable - Is the window resizable? """ - which = 'prsz' - want = 'bool' -class zoomable(aetools.NProperty): - """zoomable - Is the window zoomable? """ - which = 'iszm' - want = 'bool' -class zoomed(aetools.NProperty): - """zoomed - Is the window zoomed? """ - which = 'pzum' - want = 'bool' -class zoomed_full_size(aetools.NProperty): - """zoomed full size - Is the window zoomed to the full size of the screen? (can only be set, not read, and only applies to open non-pop-up windows) """ - which = 'zumf' - want = 'bool' -class popup(aetools.NProperty): - """popup - Is the window is a pop-up window? (only applies to open container windows in the Finder and can only be set when the Finder is the front application) """ - which = 'drwr' - want = 'bool' -class pulled_open(aetools.NProperty): - """pulled open - Is the window pulled open (only applies to pop-up windows and can only be set when the Finder is the front application)? """ - which = 'pull' - want = 'bool' -class collapsed(aetools.NProperty): - """collapsed - Is the window collapsed (only applies to open non-pop-up windows)? """ - which = 'wshd' - want = 'bool' -application._superclassnames = [] -application._privpropdict = { - 'properties' : properties, - 'clipboard' : clipboard, - 'largest_free_block' : largest_free_block, - 'name' : name, - 'visible' : visible, - 'frontmost' : frontmost, - 'selection' : selection, - 'insertion_location' : insertion_location, - 'file_sharing' : file_sharing, - 'sharing_starting_up' : sharing_starting_up, - 'product_version' : product_version, - 'version' : version, - 'about_this_computer' : about_this_computer, - 'desktop' : desktop, - 'Finder_preferences' : Finder_preferences, -} -application._privelemdict = { -} -import Files_and_suitcases -application_file._superclassnames = ['file'] -application_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'minimum_partition_size' : minimum_partition_size, - 'partition_size' : partition_size, - 'suggested_partition_size' : suggested_partition_size, - 'scriptable' : scriptable, -} -application_file._privelemdict = { -} -container_window._superclassnames = ['window'] -container_window._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'container' : container, - 'item' : item, - 'has_custom_view_settings' : has_custom_view_settings, - 'view' : view, - 'previous_list_view' : previous_list_view, - 'button_view_arrangement' : button_view_arrangement, - 'spatial_view_arrangement' : spatial_view_arrangement, - 'sort_direction' : sort_direction, - 'calculate_folder_sizes' : calculate_folder_sizes, - 'show_comments' : show_comments, - 'show_creation_date' : show_creation_date, - 'show_kind' : show_kind, - 'show_label' : show_label, - 'show_modification_date' : show_modification_date, - 'show_size' : show_size, - 'show_version' : show_version, - 'use_relative_dates' : use_relative_dates, -} -container_window._privelemdict = { -} -accessory_process._superclassnames = [] -accessory_process._privpropdict = { -} -accessory_process._privelemdict = { -} -accessory_suitcase._superclassnames = [] -accessory_suitcase._privpropdict = { -} -accessory_suitcase._privelemdict = { -} -internet_location._superclassnames = [] -internet_location._privpropdict = { -} -internet_location._privelemdict = { -} -information_window._superclassnames = ['window'] -information_window._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'item' : item, - 'comment' : comment, - 'size' : size, - 'physical_size' : physical_size, - 'creation_date' : creation_date, - 'modification_date' : modification_date, - 'suggested_partition_size' : suggested_partition_size, - 'minimum_partition_size' : minimum_partition_size, - 'partition_size' : partition_size, - 'icon' : icon, - 'locked' : locked, - 'stationery' : stationery, - 'warn_before_emptying' : warn_before_emptying, - 'product_version' : product_version, - 'version' : version, -} -information_window._privelemdict = { -} -item._superclassnames = [] -item._privpropdict = { - 'properties' : properties, - 'name' : name, - 'index' : index, - 'id' : id, - 'container' : container, - 'disk' : disk, - 'folder' : folder, - 'position' : position, - 'bounds' : bounds, - 'label_index' : label_index, - 'kind' : kind, - 'description' : description, - 'comment' : comment, - 'size' : size, - 'physical_size' : physical_size, - 'creation_date' : creation_date, - 'modification_date' : modification_date, - 'icon' : icon, - 'selected' : selected, - 'content_space' : content_space, - 'window' : window, - 'information_window' : information_window, -} -item._privelemdict = { -} -process._superclassnames = [] -process._privpropdict = { - 'properties' : properties, - 'name' : name, - 'visible' : visible, - 'frontmost' : frontmost, - 'file' : file, - 'file_type' : file_type, - 'creator_type' : creator_type, - 'scriptable' : scriptable, - 'remote_events' : remote_events, - 'partition_size' : partition_size, - 'partition_space_used' : partition_space_used, -} -process._privelemdict = { -} -import Containers_and_folders -sharable_container._superclassnames = ['container'] -sharable_container._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'owner' : owner, - 'group' : group, - 'owner_privileges' : owner_privileges, - 'group_privileges' : group_privileges, - 'guest_privileges' : guest_privileges, - 'inherited_privileges' : inherited_privileges, - 'mounted' : mounted, - 'exported' : exported, - 'shared' : shared, - 'protected' : protected, -} -sharable_container._privelemdict = { -} -trash_2d_object._superclassnames = ['container'] -trash_2d_object._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'warn_before_emptying' : warn_before_emptying, -} -trash_2d_object._privelemdict = { -} -preferences._superclassnames = [] -preferences._privpropdict = { - 'window' : window, - 'calculate_folder_sizes' : calculate_folder_sizes, - 'delay_before_springing' : delay_before_springing, - 'show_comments' : show_comments, - 'show_creation_date' : show_creation_date, - 'show_kind' : show_kind, - 'show_label' : show_label, - 'show_modification_date' : show_modification_date, - 'show_size' : show_size, - 'show_version' : show_version, - 'spring_open_folders' : spring_open_folders, - 'use_relative_dates' : use_relative_dates, - 'use_simple_menus' : use_simple_menus, - 'use_wide_grid' : use_wide_grid, -} -preferences._privelemdict = { -} -window._superclassnames = [] -window._privpropdict = { - 'properties' : properties, - 'position' : position, - 'bounds' : bounds, - 'titled' : titled, - 'name' : name, - 'index' : index, - 'closeable' : closeable, - 'floating' : floating, - 'modal' : modal, - 'resizable' : resizable, - 'zoomable' : zoomable, - 'zoomed' : zoomed, - 'zoomed_full_size' : zoomed_full_size, - 'visible' : visible, - 'popup' : popup, - 'pulled_open' : pulled_open, - 'collapsed' : collapsed, -} -window._privelemdict = { -} - -# -# 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, - 'prcs' : process, - 'appf' : application_file, - 'inlf' : internet_location, - 'cwnd' : container_window, - 'cobj' : item, -} - -_propdeclarations = { - 'ver2' : product_version, - 'pbnd' : bounds, - 'asdr' : folder, - 'gppr' : group_privileges, - 'pidx' : index, - '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, - '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, - 'drwr' : popup, - 'iwnd' : information_window, - 'ownr' : owner_privileges, - 'pzum' : zoomed, - 'prsz' : resizable, - 'barr' : button_view_arrangement, - 'pfrp' : Finder_preferences, - 'zumf' : zoomed_full_size, - 'iprv' : inherited_privileges, - 'vers' : version, - 'c@#^' : _3c_Inheritance_3e_, - 'ID ' : id, - 'sfsz' : calculate_folder_sizes, - 'file' : file, - '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, - '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 = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Finder/Enumerations.py b/Mac/Lib/lib-scriptpackages/Finder/Enumerations.py deleted file mode 100644 index 97cfbfb..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/Enumerations.py +++ /dev/null @@ -1,117 +0,0 @@ -"""Suite Enumerations: Enumerations for the Finder -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Finder -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'tpnm' - -from StdSuites.Type_Names_Suite import * -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', # -} - -_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', # -} - -_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', # -} - -_Enum_sodr = { - 'normal' : 'snrm', # - 'reversed' : 'srvs', # -} - -_Enum_isiz = { - 'mini' : 'miic', # - 'small' : 'smic', # - 'large' : 'lgic', # -} - -_Enum_vwby = { - 'conflicts' : 'cflc', # - 'existing_items' : 'exsi', # - 'small_icon' : 'smic', # - 'icon' : 'iimg', # - 'name' : 'pnam', # - 'modification_date' : 'asmo', # - 'size' : 'ptsz', # - 'kind' : 'kind', # - 'comment' : 'comt', # - 'label' : 'labi', # - 'version' : 'vers', # - 'creation_date' : 'ascd', # - 'small_button' : 'smbu', # - 'large_button' : 'lgbu', # - 'grid' : 'grid', # - 'all' : 'kyal', # -} - -_Enum_gsen = { - 'CPU' : 'proc', # - 'FPU' : 'fpu ', # - 'MMU' : 'mmu ', # - 'hardware' : 'hdwr', # - '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', # -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { - 'sodr' : _Enum_sodr, - 'ipnl' : _Enum_ipnl, - 'ese0' : _Enum_ese0, - 'vwby' : _Enum_vwby, - 'gsen' : _Enum_gsen, - 'isiz' : _Enum_isiz, - 'earr' : _Enum_earr, - 'pple' : _Enum_pple, -} diff --git a/Mac/Lib/lib-scriptpackages/Finder/Files_and_suitcases.py b/Mac/Lib/lib-scriptpackages/Finder/Files_and_suitcases.py deleted file mode 100644 index 0e85539..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/Files_and_suitcases.py +++ /dev/null @@ -1,296 +0,0 @@ -"""Suite Files and suitcases: Classes representing files and suitcases -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Finder -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'fndr' - -class Files_and_suitcases_Events: - - pass - - -class file(aetools.ComponentItem): - """file - A file """ - want = 'file' -class _3c_Inheritance_3e_(aetools.NProperty): - """<Inheritance> - inherits some of its properties from the item class """ - which = 'c@#^' - want = 'cobj' -class file_type(aetools.NProperty): - """file type - the OSType identifying the type of data contained in the item """ - which = 'asty' - want = 'type' -class creator_type(aetools.NProperty): - """creator type - the OSType identifying the application that created the item """ - which = 'fcrt' - want = 'type' -class locked(aetools.NProperty): - """locked - Is the file locked? """ - which = 'aslk' - want = 'bool' -class stationery(aetools.NProperty): - """stationery - Is the file a stationery pad? """ - which = 'pspd' - want = 'bool' -class product_version(aetools.NProperty): - """product version - the version of the product (visible at the top of the \xd2Get Info\xd3 window) """ - which = 'ver2' - want = 'itxt' -class version(aetools.NProperty): - """version - the version of the file (visible at the bottom of the \xd2Get Info\xd3 window) """ - which = 'vers' - want = 'itxt' - -files = file - -class alias_file(aetools.ComponentItem): - """alias file - An alias file (created with \xd2Make Alias\xd3) """ - want = 'alia' -class original_item(aetools.NProperty): - """original item - the original item pointed to by the alias """ - which = 'orig' - want = 'obj ' - -alias_files = alias_file - -class application_file(aetools.ComponentItem): - """application file - An application's file on disk """ - want = 'appf' -class suggested_size(aetools.NProperty): - """suggested size - the memory size with which the developer recommends the application be launched """ - which = 'sprt' - want = 'long' -class minimum_size(aetools.NProperty): - """minimum size - the smallest memory size with which the application can be launched """ - which = 'mprt' - want = 'long' -class preferred_size(aetools.NProperty): - """preferred size - the memory size with which the application will be launched """ - which = 'appt' - want = 'long' -class accepts_high_level_events(aetools.NProperty): - """accepts high level events - Is the application high-level event aware? """ - which = 'isab' - want = 'bool' -class has_scripting_terminology(aetools.NProperty): - """has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """ - which = 'hscr' - want = 'bool' - -application_files = application_file - -class document_file(aetools.ComponentItem): - """document file - A document file """ - want = 'docf' - -document_files = document_file - -class font_file(aetools.ComponentItem): - """font file - A font file """ - want = 'fntf' - -font_files = font_file - -class desk_accessory_file(aetools.ComponentItem): - """desk accessory file - A desk accessory file """ - want = 'dafi' - -desk_accessory_files = desk_accessory_file - -class internet_location_file(aetools.ComponentItem): - """internet location file - An file containing an internet location """ - want = 'inlf' -class location(aetools.NProperty): - """location - the internet location """ - which = 'iloc' - want = 'itxt' - -internet_location_files = internet_location_file - -class sound_file(aetools.ComponentItem): - """sound file - A sound file """ - want = 'sndf' -class sound(aetools.NProperty): - """sound - the sound data """ - which = 'snd ' - want = 'snd ' - -sound_files = sound_file - -class clipping(aetools.ComponentItem): - """clipping - A clipping """ - want = 'clpf' - -clippings = clipping - -class package(aetools.ComponentItem): - """package - A package """ - want = 'pack' - -packages = package - -class suitcase(aetools.ComponentItem): - """suitcase - A font or desk accessory suitcase """ - want = 'stcs' -# element 'cobj' as ['indx', 'name'] - -suitcases = suitcase - -class font_suitcase(aetools.ComponentItem): - """font suitcase - A font suitcase """ - want = 'fsut' -# element 'cobj' as ['indx', 'name'] - -font_suitcases = font_suitcase - -class desk_accessory_suitcase(aetools.ComponentItem): - """desk accessory suitcase - A desk accessory suitcase """ - want = 'dsut' -# element 'cobj' as ['indx', 'name'] - -desk_accessory_suitcases = desk_accessory_suitcase -import Earlier_terms -file._superclassnames = ['item'] -file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'file_type' : file_type, - 'creator_type' : creator_type, - 'locked' : locked, - 'stationery' : stationery, - 'product_version' : product_version, - 'version' : version, -} -file._privelemdict = { -} -alias_file._superclassnames = ['file'] -alias_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'original_item' : original_item, -} -alias_file._privelemdict = { -} -application_file._superclassnames = ['file'] -application_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'suggested_size' : suggested_size, - 'minimum_size' : minimum_size, - 'preferred_size' : preferred_size, - 'accepts_high_level_events' : accepts_high_level_events, - 'has_scripting_terminology' : has_scripting_terminology, -} -application_file._privelemdict = { -} -document_file._superclassnames = ['file'] -document_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, -} -document_file._privelemdict = { -} -font_file._superclassnames = ['file'] -font_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, -} -font_file._privelemdict = { -} -desk_accessory_file._superclassnames = ['file'] -desk_accessory_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, -} -desk_accessory_file._privelemdict = { -} -internet_location_file._superclassnames = ['file'] -internet_location_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'location' : location, -} -internet_location_file._privelemdict = { -} -sound_file._superclassnames = ['file'] -sound_file._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'sound' : sound, -} -sound_file._privelemdict = { -} -clipping._superclassnames = ['file'] -clipping._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, -} -clipping._privelemdict = { -} -package._superclassnames = ['item'] -package._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, -} -package._privelemdict = { -} -suitcase._superclassnames = ['file'] -suitcase._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, -} -suitcase._privelemdict = { - 'item' : Earlier_terms.item, -} -font_suitcase._superclassnames = ['suitcase'] -font_suitcase._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, -} -font_suitcase._privelemdict = { - 'item' : Earlier_terms.item, -} -desk_accessory_suitcase._superclassnames = ['suitcase'] -desk_accessory_suitcase._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, -} -desk_accessory_suitcase._privelemdict = { - 'item' : Earlier_terms.item, -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'sndf' : sound_file, - 'fntf' : font_file, - 'inlf' : internet_location_file, - 'clpf' : clipping, - 'alia' : alias_file, - 'dafi' : desk_accessory_file, - 'dsut' : desk_accessory_suitcase, - 'fsut' : font_suitcase, - 'file' : file, - 'appf' : application_file, - 'stcs' : suitcase, - 'docf' : document_file, - 'pack' : package, -} - -_propdeclarations = { - 'vers' : version, - 'ver2' : product_version, - 'snd ' : sound, - 'appt' : preferred_size, - 'sprt' : suggested_size, - 'isab' : accepts_high_level_events, - '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 = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Finder/Finder_Basics.py b/Mac/Lib/lib-scriptpackages/Finder/Finder_Basics.py deleted file mode 100644 index 3589126..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/Finder_Basics.py +++ /dev/null @@ -1,380 +0,0 @@ -"""Suite Finder Basics: Commonly-used Finder commands and object classes -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Finder -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'fndr' - -class Finder_Basics_Events: - - _argmap_computer = { - 'has' : 'has ', - } - - def computer(self, _object, _attributes={}, **_arguments): - """computer: Test attributes of this computer - Required argument: the attribute to test - Keyword argument has: test specific bits of response - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the result of the query - """ - _code = 'fndr' - _subcode = 'gstl' - - aetools.keysubst(_arguments, self._argmap_computer) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def copy(self, _no_object=None, _attributes={}, **_arguments): - """copy: Copy the selected items to the clipboard (the Finder must be the front application) - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'misc' - _subcode = 'copy' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def restart(self, _no_object=None, _attributes={}, **_arguments): - """restart: Restart the computer - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'rest' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def shut_down(self, _no_object=None, _attributes={}, **_arguments): - """shut down: Shut Down the computer - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'shut' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def sleep(self, _no_object=None, _attributes={}, **_arguments): - """sleep: Put the computer to sleep - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'slep' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_sort = { - 'by' : 'by ', - } - - def sort(self, _object, _attributes={}, **_arguments): - """sort: Return the specified object(s) in a sorted list - Required argument: a list of finder objects to sort - Keyword argument by: the property to sort the items by (name, index, date, etc.) - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the sorted items in their new order - """ - _code = 'DATA' - _subcode = 'SORT' - - aetools.keysubst(_arguments, self._argmap_sort) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -class application(aetools.ComponentItem): - """application - The Finder """ - want = 'capp' -class clipboard(aetools.NProperty): - """clipboard - the Finder\xd5s clipboard window """ - which = 'pcli' - want = 'obj ' -class largest_free_block(aetools.NProperty): - """largest free block - the largest free block of process memory available to launch an application """ - which = 'mfre' - want = 'long' -class name(aetools.NProperty): - """name - the Finder\xd5s name """ - which = 'pnam' - want = 'itxt' -class visible(aetools.NProperty): - """visible - Is the Finder\xd5s layer visible? """ - which = 'pvis' - want = 'bool' -class frontmost(aetools.NProperty): - """frontmost - Is the Finder the frontmost process? """ - which = 'pisf' - want = 'bool' -class selection(aetools.NProperty): - """selection - the selection visible to the user """ - which = 'sele' - want = 'obj ' -class insertion_location(aetools.NProperty): - """insertion location - the container in which a new folder would appear if \xd2New Folder\xd3 was selected """ - which = 'pins' - want = 'obj ' -class file_sharing(aetools.NProperty): - """file sharing - Is file sharing on? """ - which = 'fshr' - want = 'bool' -class sharing_starting_up(aetools.NProperty): - """sharing starting up - Is file sharing in the process of starting up? """ - which = 'fsup' - want = 'bool' -class product_version(aetools.NProperty): - """product version - the version of the System software running on this computer """ - which = 'ver2' - want = 'itxt' -class version(aetools.NProperty): - """version - the version of the Finder """ - which = 'vers' - want = 'itxt' -class about_this_computer(aetools.NProperty): - """about this computer - the \xd2About this Computer\xd3 dialog and the list of running processes displayed in it """ - which = 'abbx' - want = 'obj ' -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' - want = 'cprf' -# element 'cobj' as ['indx', 'name'] -# element 'ctnr' as ['indx', 'name'] -# element 'sctr' as ['indx', 'name'] -# element 'cdis' as ['indx', 'name', 'ID '] -# element 'cfol' as ['indx', 'name', 'ID '] -# element 'file' as ['indx', 'name'] -# element 'alia' as ['indx', 'name'] -# element 'appf' as ['indx', 'name', 'ID '] -# element 'docf' as ['indx', 'name'] -# element 'fntf' as ['indx', 'name'] -# element 'dafi' as ['indx', 'name'] -# element 'inlf' as ['indx', 'name'] -# element 'sndf' as ['indx', 'name'] -# element 'clpf' as ['indx', 'name'] -# element 'pack' as ['indx', 'name'] -# element 'stcs' as ['indx', 'name'] -# element 'fsut' as ['indx', 'name'] -# element 'dsut' as ['indx', 'name'] -# element 'prcs' as ['indx', 'name'] -# element 'pcap' as ['indx', 'name'] -# element 'pcda' as ['indx', 'name'] -# 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'] - -class special_folders(aetools.ComponentItem): - """special folders - The special folders used by the Mac OS """ - want = 'spfl' -class system_folder(aetools.NProperty): - """system folder - the System folder """ - which = 'macs' - want = 'obj ' -class apple_menu_items_folder(aetools.NProperty): - """apple menu items folder - the special folder named \xd2Apple Menu Items,\xd3 the contents of which appear in the Apple menu """ - which = 'amnu' - want = 'obj ' -class control_panels_folder(aetools.NProperty): - """control panels folder - the special folder named \xd2Control Panels\xd3 """ - which = 'ctrl' - want = 'obj ' -class extensions_folder(aetools.NProperty): - """extensions folder - the special folder named \xd2Extensions\xd3 """ - which = 'extn' - want = 'obj ' -class fonts_folder(aetools.NProperty): - """fonts folder - the special folder named \xd2Fonts\xd3 """ - which = 'font' - want = 'obj ' -class preferences_folder(aetools.NProperty): - """preferences folder - the special folder named \xd2Preferences\xd3 """ - which = 'pref' - want = 'obj ' -class shutdown_items_folder(aetools.NProperty): - """shutdown items folder - the special folder named \xd2Shutdown Items\xd3 """ - which = 'shdf' - want = 'obj ' -class startup_items_folder(aetools.NProperty): - """startup items folder - the special folder named \xd2Startup Items\xd3 """ - which = 'strt' - want = 'obj ' -class temporary_items_folder(aetools.NProperty): - """temporary items folder - the special folder named \xd2Temporary Items\xd3 (invisible) """ - which = 'temp' - want = 'obj ' -application._superclassnames = [] -import Earlier_terms -import Containers_and_folders -import Files_and_suitcases -import Process_classes -import Window_classes -application._privpropdict = { - 'clipboard' : clipboard, - 'largest_free_block' : largest_free_block, - 'name' : name, - 'visible' : visible, - 'frontmost' : frontmost, - 'selection' : selection, - 'insertion_location' : insertion_location, - 'file_sharing' : file_sharing, - 'sharing_starting_up' : sharing_starting_up, - 'product_version' : product_version, - 'version' : version, - 'about_this_computer' : about_this_computer, - 'desktop' : desktop, - 'execution_state' : execution_state, - 'Finder_preferences' : Finder_preferences, -} -application._privelemdict = { - 'item' : Earlier_terms.item, - 'container' : Containers_and_folders.container, - 'sharable_container' : Earlier_terms.sharable_container, - 'disk' : Containers_and_folders.disk, - 'folder' : Containers_and_folders.folder, - 'file' : Files_and_suitcases.file, - 'alias_file' : Files_and_suitcases.alias_file, - 'application_file' : Earlier_terms.application_file, - 'document_file' : Files_and_suitcases.document_file, - 'font_file' : Files_and_suitcases.font_file, - 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file, - 'internet_location' : Earlier_terms.internet_location, - 'sound_file' : Files_and_suitcases.sound_file, - 'clipping' : Files_and_suitcases.clipping, - 'package' : Files_and_suitcases.package, - 'suitcase' : Files_and_suitcases.suitcase, - 'font_suitcase' : Files_and_suitcases.font_suitcase, - 'accessory_suitcase' : Earlier_terms.accessory_suitcase, - 'process' : Earlier_terms.process, - 'application_process' : Process_classes.application_process, - 'accessory_process' : Earlier_terms.accessory_process, - '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, -} -special_folders._superclassnames = [] -special_folders._privpropdict = { - 'system_folder' : system_folder, - 'apple_menu_items_folder' : apple_menu_items_folder, - 'control_panels_folder' : control_panels_folder, - 'extensions_folder' : extensions_folder, - 'fonts_folder' : fonts_folder, - 'preferences_folder' : preferences_folder, - 'shutdown_items_folder' : shutdown_items_folder, - 'startup_items_folder' : startup_items_folder, - 'temporary_items_folder' : temporary_items_folder, -} -special_folders._privelemdict = { -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'capp' : application, - 'spfl' : special_folders, -} - -_propdeclarations = { - 'vers' : version, - 'ver2' : product_version, - 'pfrp' : Finder_preferences, - 'exec' : execution_state, - 'pins' : insertion_location, - 'mfre' : largest_free_block, - 'fsup' : sharing_starting_up, - 'desk' : desktop, - 'ctrl' : control_panels_folder, - 'macs' : system_folder, - '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 = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py b/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py deleted file mode 100644 index 1475fa6..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py +++ /dev/null @@ -1,340 +0,0 @@ -"""Suite Finder items: Commands used with file system items, and basic item definition -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Finder -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'fndr' - -class Finder_items_Events: - - def add_to_favorites(self, _object, _attributes={}, **_arguments): - """add to favorites: Add the items to the Favorites menu in the Apple Menu and in Open and Save dialogs - Required argument: the items to add to the collection of Favorites - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'ffav' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_clean_up = { - 'by' : 'by ', - } - - def clean_up(self, _object, _attributes={}, **_arguments): - """clean up: Arrange items in window nicely (only applies to open windows in icon or button views that are not kept arranged) - Required argument: the window to clean up - Keyword argument by: the order in which to clean up the objects (name, index, date, etc.) - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'fclu' - - aetools.keysubst(_arguments, self._argmap_clean_up) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def eject(self, _object=None, _attributes={}, **_arguments): - """eject: Eject the specified disk(s), or every ejectable disk if no parameter is specified - Required argument: the items to eject - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'ejct' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def empty(self, _object=None, _attributes={}, **_arguments): - """empty: Empty the trash - Required argument: \xd2empty\xd3 and \xd2empty trash\xd3 both do the same thing - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'empt' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def erase(self, _object, _attributes={}, **_arguments): - """erase: Erase the specified disk(s) - Required argument: the items to erase - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'fera' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_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' - - 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.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def reveal(self, _object, _attributes={}, **_arguments): - """reveal: Bring the specified object(s) into view - Required argument: the object to be made visible - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'misc' - _subcode = 'mvis' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def update(self, _object, _attributes={}, **_arguments): - """update: Update the display of the specified object(s) to match their on-disk representation - Required argument: the item to update - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'fndr' - _subcode = 'fupd' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -class item(aetools.ComponentItem): - """item - An item """ - want = 'cobj' -class name(aetools.NProperty): - """name - the name of the item """ - which = 'pnam' - want = 'itxt' -class index(aetools.NProperty): - """index - the index in the front-to-back ordering within its container """ - which = 'pidx' - want = 'long' -class id(aetools.NProperty): - """id - an id that identifies the item """ - which = 'ID ' - want = 'long' -class container(aetools.NProperty): - """container - the container of the item """ - which = 'ctnr' - want = 'obj ' -class disk(aetools.NProperty): - """disk - the disk on which the item is stored """ - which = 'cdis' - want = 'obj ' -class folder(aetools.NProperty): - """folder - the folder in which the item is stored """ - which = 'asdr' - want = 'obj ' -class position(aetools.NProperty): - """position - the position of the item within its parent window (can only be set for an item in a window viewed as icons or buttons) """ - which = 'posn' - want = 'QDpt' -class bounds(aetools.NProperty): - """bounds - the bounding rectangle of the item (can only be set for an item in a window viewed as icons or buttons) """ - which = 'pbnd' - want = 'qdrt' -class label_index(aetools.NProperty): - """label index - the label of the item """ - which = 'labi' - want = 'long' -class kind(aetools.NProperty): - """kind - the kind of the item """ - which = 'kind' - want = 'itxt' -class description(aetools.NProperty): - """description - a description of the item """ - which = 'dscr' - want = 'itxt' -class comment(aetools.NProperty): - """comment - the comment of the item, displayed in the \xd2Get Info\xd3 window """ - which = 'comt' - want = 'itxt' -class size(aetools.NProperty): - """size - the logical size of the item """ - which = 'ptsz' - want = 'long' -class physical_size(aetools.NProperty): - """physical size - the actual space used by the item on disk """ - which = 'phys' - want = 'long' -class creation_date(aetools.NProperty): - """creation date - the date on which the item was created """ - which = 'ascd' - want = 'ldt ' -class modification_date(aetools.NProperty): - """modification date - the date on which the item was last modified """ - which = 'asmo' - want = 'ldt ' -class icon(aetools.NProperty): - """icon - the icon bitmap of the item """ - which = 'iimg' - want = 'ifam' -class selected(aetools.NProperty): - """selected - Is the item selected? """ - which = 'issl' - want = 'bool' -class content_space(aetools.NProperty): - """content space - the window that would open if the item was opened """ - which = 'dwnd' - want = 'obj ' -class window(aetools.NProperty): - """window - the window that would open if the item was opened """ - which = 'cwin' - want = 'obj ' -class information_window(aetools.NProperty): - """information window - the information window for the item """ - which = 'iwnd' - want = 'obj ' - -items = item -item._superclassnames = [] -item._privpropdict = { - 'name' : name, - 'index' : index, - 'id' : id, - 'container' : container, - 'disk' : disk, - 'folder' : folder, - 'position' : position, - 'bounds' : bounds, - 'label_index' : label_index, - 'kind' : kind, - 'description' : description, - 'comment' : comment, - 'size' : size, - 'physical_size' : physical_size, - 'creation_date' : creation_date, - 'modification_date' : modification_date, - 'icon' : icon, - 'selected' : selected, - 'content_space' : content_space, - 'window' : window, - 'information_window' : information_window, -} -item._privelemdict = { -} -_Enum_bool = None # XXXX enum bool not found!! - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'cobj' : item, -} - -_propdeclarations = { - 'posn' : position, - 'kind' : kind, - 'ptsz' : size, - 'phys' : physical_size, - 'dwnd' : content_space, - 'pbnd' : bounds, - 'issl' : selected, - 'labi' : label_index, - 'dscr' : description, - 'comt' : comment, - 'ctnr' : container, - 'pidx' : index, - 'iimg' : icon, - 'ID ' : id, - 'cwin' : window, - 'pnam' : name, - 'ascd' : creation_date, - 'cdis' : disk, - 'asmo' : modification_date, - 'asdr' : folder, - 'iwnd' : information_window, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Finder/Obsolete_terms.py b/Mac/Lib/lib-scriptpackages/Finder/Obsolete_terms.py deleted file mode 100644 index 58db611..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/Obsolete_terms.py +++ /dev/null @@ -1,220 +0,0 @@ -"""Suite Obsolete terms: Terms that have been deprecated -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Finder -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'tpnm' - -from StdSuites.Type_Names_Suite import * -class Obsolete_terms_Events(Type_Names_Suite_Events): - - pass - - -class application(aetools.ComponentItem): - """application - The Finder """ - want = 'capp' -class view_preferences(aetools.NProperty): - """view preferences - backwards compatibility with Finder Scripting Extension. DEPRECATED -- not supported after Finder 8.0 """ - which = 'pvwp' - want = 'obj ' - -class container(aetools.ComponentItem): - """container - An item that contains other items """ - want = 'ctnr' -class container_window(aetools.NProperty): - """container window - the main window for the container """ - which = 'cwnd' - want = 'obj ' - -class container_window(aetools.ComponentItem): - """container window - A window that contains items """ - want = 'cwnd' -class folder_obsolete(aetools.NProperty): - """folder obsolete - the folder from which the window was opened (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release.) """ - which = 'cfol' - want = 'obj ' - -class control_panel(aetools.ComponentItem): - """control panel - A control panel """ - want = 'ccdv' - -control_panels = control_panel - -class file(aetools.ComponentItem): - """file - A file """ - want = 'file' -class file_type_obsolete(aetools.NProperty): - """file type obsolete - the OSType identifying the type of data contained in the item (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release) """ - which = 'fitp' - want = 'type' -class locked_obsolete(aetools.NProperty): - """locked obsolete - Is the file locked? (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release) """ - which = 'islk' - want = 'bool' - -class information_window(aetools.ComponentItem): - """information window - An information window (opened by \xd2Get Info\xd3) """ - want = 'iwnd' -class creation_date_obsolete(aetools.NProperty): - """creation date obsolete - the date on which the item was created (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release) """ - which = 'crtd' - want = 'ldt ' -class modification_date_obsolete(aetools.NProperty): - """modification date obsolete - the date on which the item was last modified (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release) """ - which = 'modd' - want = 'ldt ' - -class item(aetools.ComponentItem): - """item - An item """ - want = 'cobj' - -class process(aetools.ComponentItem): - """process - A process running on this computer """ - want = 'prcs' - -class sharable_container(aetools.ComponentItem): - """sharable container - A container that may be shared (disks and folders) """ - want = 'sctr' -class sharing_window(aetools.NProperty): - """sharing window - the sharing window for the container (file sharing must be on to use this property) """ - which = 'swnd' - want = 'obj ' - -class sharing_window(aetools.ComponentItem): - """sharing window - A sharing window (opened by \xd2Sharing\xc9\xd3) """ - want = 'swnd' -class sharable_container(aetools.NProperty): - """sharable container - the sharable container from which the window was opened """ - which = 'sctr' - want = 'obj ' -class item(aetools.NProperty): - """item - the item from which this window was opened """ - which = 'cobj' - want = 'obj ' -class container(aetools.NProperty): - """container - the container from which this window was opened """ - which = 'ctnr' - want = 'obj ' - -sharing_windows = sharing_window - -class status_window(aetools.ComponentItem): - """status window - Progress dialogs (e.g., copy window, rebuild desktop database, empty trash) """ - want = 'qwnd' - -status_windows = status_window -application._superclassnames = [] -application._privpropdict = { - 'view_preferences' : view_preferences, -} -application._privelemdict = { -} -container._superclassnames = [] -container._privpropdict = { - 'container_window' : container_window, -} -container._privelemdict = { -} -container_window._superclassnames = [] -container_window._privpropdict = { - 'folder_obsolete' : folder_obsolete, -} -container_window._privelemdict = { -} -control_panel._superclassnames = [] -control_panel._privpropdict = { -} -control_panel._privelemdict = { -} -file._superclassnames = [] -file._privpropdict = { - 'file_type_obsolete' : file_type_obsolete, - 'locked_obsolete' : locked_obsolete, -} -file._privelemdict = { -} -information_window._superclassnames = [] -information_window._privpropdict = { - 'creation_date_obsolete' : creation_date_obsolete, - 'locked_obsolete' : locked_obsolete, - 'modification_date_obsolete' : modification_date_obsolete, -} -information_window._privelemdict = { -} -item._superclassnames = [] -item._privpropdict = { - 'creation_date_obsolete' : creation_date_obsolete, - 'folder_obsolete' : folder_obsolete, - 'modification_date_obsolete' : modification_date_obsolete, -} -item._privelemdict = { -} -process._superclassnames = [] -process._privpropdict = { - 'file_type_obsolete' : file_type_obsolete, -} -process._privelemdict = { -} -sharable_container._superclassnames = [] -sharable_container._privpropdict = { - 'sharing_window' : sharing_window, -} -sharable_container._privelemdict = { -} -sharing_window._superclassnames = [] -sharing_window._privpropdict = { - 'sharable_container' : sharable_container, - 'item' : item, - 'container' : container, - 'folder_obsolete' : folder_obsolete, -} -sharing_window._privelemdict = { -} -status_window._superclassnames = [] -status_window._privpropdict = { -} -status_window._privelemdict = { -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'qwnd' : status_window, - 'capp' : application, - 'swnd' : sharing_window, - 'ccdv' : control_panel, - 'prcs' : process, - 'cobj' : item, - 'file' : file, - 'sctr' : sharable_container, - 'cwnd' : container_window, - 'ctnr' : container, - 'iwnd' : information_window, -} - -_propdeclarations = { - '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, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Finder/Process_classes.py b/Mac/Lib/lib-scriptpackages/Finder/Process_classes.py deleted file mode 100644 index a54741c..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/Process_classes.py +++ /dev/null @@ -1,152 +0,0 @@ -"""Suite Process classes: Classes representing processes that are running -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Finder -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'fndr' - -class Process_classes_Events: - - pass - - -class process(aetools.ComponentItem): - """process - A process running on this computer """ - want = 'prcs' -class name(aetools.NProperty): - """name - the name of the process """ - which = 'pnam' - want = 'itxt' -class visible(aetools.NProperty): - """visible - Is the process' layer visible? """ - which = 'pvis' - want = 'bool' -class frontmost(aetools.NProperty): - """frontmost - Is the process the frontmost process? """ - which = 'pisf' - want = 'bool' -class file(aetools.NProperty): - """file - the file from which the process was launched """ - which = 'file' - want = 'obj ' -class file_type(aetools.NProperty): - """file type - the OSType of the file type of the process """ - which = 'asty' - want = 'type' -class creator_type(aetools.NProperty): - """creator type - the OSType of the creator of the process (the signature) """ - which = 'fcrt' - want = 'type' -class accepts_high_level_events(aetools.NProperty): - """accepts high level events - Is the process high-level event aware (accepts open application, open document, print document, and quit)? """ - which = 'isab' - want = 'bool' -class accepts_remote_events(aetools.NProperty): - """accepts remote events - Does the process accept remote events? """ - which = 'revt' - want = 'bool' -class has_scripting_terminology(aetools.NProperty): - """has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """ - which = 'hscr' - want = 'bool' -class total_partition_size(aetools.NProperty): - """total partition size - the size of the partition with which the process was launched """ - which = 'appt' - want = 'long' -class partition_space_used(aetools.NProperty): - """partition space used - the number of bytes currently used in the process' partition """ - which = 'pusd' - want = 'long' - -processes = process - -class application_process(aetools.ComponentItem): - """application process - A process launched from an application file """ - want = 'pcap' -class _3c_Inheritance_3e_(aetools.NProperty): - """<Inheritance> - inherits some of its properties from the process class """ - which = 'c@#^' - want = 'prcs' -class application_file(aetools.NProperty): - """application file - the application file from which this process was launched """ - which = 'appf' - want = 'appf' - -application_processes = application_process - -class desk_accessory_process(aetools.ComponentItem): - """desk accessory process - A process launched from a desk accessory file """ - want = 'pcda' -class desk_accessory_file(aetools.NProperty): - """desk accessory file - the desk accessory file from which this process was launched """ - which = 'dafi' - want = 'obj ' - -desk_accessory_processes = desk_accessory_process -process._superclassnames = [] -process._privpropdict = { - 'name' : name, - 'visible' : visible, - 'frontmost' : frontmost, - 'file' : file, - 'file_type' : file_type, - 'creator_type' : creator_type, - 'accepts_high_level_events' : accepts_high_level_events, - 'accepts_remote_events' : accepts_remote_events, - 'has_scripting_terminology' : has_scripting_terminology, - 'total_partition_size' : total_partition_size, - 'partition_space_used' : partition_space_used, -} -process._privelemdict = { -} -application_process._superclassnames = ['process'] -application_process._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'application_file' : application_file, -} -application_process._privelemdict = { -} -desk_accessory_process._superclassnames = ['process'] -desk_accessory_process._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'desk_accessory_file' : desk_accessory_file, -} -desk_accessory_process._privelemdict = { -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'prcs' : process, - 'pcda' : desk_accessory_process, - 'pcap' : application_process, -} - -_propdeclarations = { - '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 = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py b/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py deleted file mode 100644 index df23487..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py +++ /dev/null @@ -1,335 +0,0 @@ -"""Suite Standard Suite: Common terms that most applications should support -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Finder -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'CoRe' - -from StdSuites.Standard_Suite import * -class Standard_Suite_Events(Standard_Suite_Events): - - _argmap_open = { - 'using' : 'usin', - 'with_properties' : 'prdt', - } - - def open(self, _object, _attributes={}, **_arguments): - """open: Open the specified object(s) - Required argument: list of objects to open - Keyword argument using: the application file to open the object with - Keyword argument with_properties: the initial values for the properties, to be included with the open command sent to the application that opens the direct object - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'odoc' - - aetools.keysubst(_arguments, self._argmap_open) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_print_ = { - 'with_properties' : 'prdt', - } - - def print_(self, _object, _attributes={}, **_arguments): - """print: Print the specified object(s) - Required argument: list of objects to print - Keyword argument with_properties: optional properties to be included with the print command sent to the application that prints the direct object - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'pdoc' - - aetools.keysubst(_arguments, self._argmap_print_) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def quit(self, _no_object=None, _attributes={}, **_arguments): - """quit: Quit the Finder - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'quit' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def close(self, _object, _attributes={}, **_arguments): - """close: Close an object - Required argument: the object to close - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'core' - _subcode = 'clos' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_count = { - 'each' : 'kocl', - } - - def count(self, _object, _attributes={}, **_arguments): - """count: Return the number of elements of a particular class within an object - Required argument: the object whose elements are to be counted - Keyword argument each: the class of the elements to be counted - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the number of elements - """ - _code = 'core' - _subcode = 'cnte' - - aetools.keysubst(_arguments, self._argmap_count) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_data_size = { - 'as' : 'rtyp', - } - - def data_size(self, _object, _attributes={}, **_arguments): - """data size: Return the size in bytes of an object - Required argument: the object whose data size is to be returned - Keyword argument as: the data type for which the size is calculated - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the size of the object in bytes - """ - _code = 'core' - _subcode = 'dsiz' - - aetools.keysubst(_arguments, self._argmap_data_size) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def delete(self, _object, _attributes={}, **_arguments): - """delete: Move an item from its container to the trash - Required argument: the item to delete - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: to the item that was just deleted - """ - _code = 'core' - _subcode = 'delo' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_duplicate = { - 'to' : 'insh', - 'replacing' : 'alrp', - 'routing_suppressed' : 'rout', - } - - def duplicate(self, _object, _attributes={}, **_arguments): - """duplicate: Duplicate one or more object(s) - Required argument: the object(s) to duplicate - Keyword argument to: the new location for the object(s) - Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being duplicated - Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when copying to the system folder. - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: to the duplicated object(s) - """ - _code = 'core' - _subcode = 'clon' - - aetools.keysubst(_arguments, self._argmap_duplicate) - _arguments['----'] = _object - - aetools.enumsubst(_arguments, 'alrp', _Enum_bool) - aetools.enumsubst(_arguments, 'rout', _Enum_bool) - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def exists(self, _object, _attributes={}, **_arguments): - """exists: Verify if an object exists - Required argument: the object in question - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: true if it exists, false if not - """ - _code = 'core' - _subcode = 'doex' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_make = { - 'new' : 'kocl', - 'at' : 'insh', - 'to' : 'to ', - 'with_properties' : 'prdt', - } - - def make(self, _no_object=None, _attributes={}, **_arguments): - """make: Make a new element - Keyword argument new: the class of the new element - Keyword argument at: the location at which to insert the element - Keyword argument to: when creating an alias file, the original item to create an alias to - Keyword argument with_properties: the initial values for the properties of the element - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: to the new object(s) - """ - _code = 'core' - _subcode = 'crel' - - aetools.keysubst(_arguments, self._argmap_make) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_move = { - 'to' : 'insh', - 'replacing' : 'alrp', - 'positioned_at' : 'mvpl', - 'routing_suppressed' : 'rout', - } - - def move(self, _object, _attributes={}, **_arguments): - """move: Move object(s) to a new location - Required argument: the object(s) to move - Keyword argument to: the new location for the object(s) - Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being moved - Keyword argument positioned_at: Gives a list (in local window coordinates) of positions for the destination items - Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when moving to the system folder. - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: to the object(s) after they have been moved - """ - _code = 'core' - _subcode = 'move' - - aetools.keysubst(_arguments, self._argmap_move) - _arguments['----'] = _object - - aetools.enumsubst(_arguments, 'alrp', _Enum_bool) - aetools.enumsubst(_arguments, 'mvpl', _Enum_list) - aetools.enumsubst(_arguments, 'rout', _Enum_bool) - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def select(self, _object, _attributes={}, **_arguments): - """select: Select the specified object(s) - Required argument: the object to select - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'misc' - _subcode = 'slct' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - -_Enum_list = None # XXXX enum list not found!! -_Enum_bool = None # XXXX enum bool not found!! - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Finder/Type_Definitions.py b/Mac/Lib/lib-scriptpackages/Finder/Type_Definitions.py deleted file mode 100644 index 0445c2c..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/Type_Definitions.py +++ /dev/null @@ -1,274 +0,0 @@ -"""Suite Type Definitions: Definitions of records used in scripting the Finder -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Finder -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'tpdf' - -class Type_Definitions_Events: - - pass - - -class preferences(aetools.ComponentItem): - """preferences - The Finder Preferences """ - want = 'cprf' -class window(aetools.NProperty): - """window - the window that would open if Finder preferences was opened """ - which = 'cwin' - want = 'pwnd' -class button_view_arrangement(aetools.NProperty): - """button view arrangement - the method of arrangement of icons in default Finder button view windows """ - which = 'barr' - want = 'earr' -class button_view_icon_size(aetools.NProperty): - """button view icon size - the size of icons displayed in Finder button view windows. """ - which = 'bisz' - want = 'long' -class spatial_view_arrangement(aetools.NProperty): - """spatial view arrangement - the method of arrangement of icons in default Finder spatial view windows """ - which = 'iarr' - want = 'earr' -class spatial_view_icon_size(aetools.NProperty): - """spatial view icon size - the size of icons displayed in Finder spatial view windows. """ - which = 'iisz' - want = 'long' -class calculates_folder_sizes(aetools.NProperty): - """calculates folder sizes - Are folder sizes calculated and displayed in Finder list view windows? """ - which = 'sfsz' - want = 'bool' -class list_view_icon_size(aetools.NProperty): - """list view icon size - the size of icons displayed in Finder list view windows. """ - which = 'lisz' - want = 'long' -class shows_comments(aetools.NProperty): - """shows comments - Are comments displayed in default Finder list view windows? """ - which = 'scom' - want = 'bool' -class shows_creation_date(aetools.NProperty): - """shows creation date - Are creation dates displayed in default Finder list view windows? """ - which = 'scda' - want = 'bool' -class shows_kind(aetools.NProperty): - """shows kind - Are document kinds displayed in default Finder list view windows? """ - which = 'sknd' - want = 'bool' -class shows_label(aetools.NProperty): - """shows label - Are labels displayed in default Finder list view windows? """ - which = 'slbl' - want = 'bool' -class shows_modification_date(aetools.NProperty): - """shows modification date - Are modification dates displayed in default Finder list view windows? """ - which = 'sdat' - want = 'bool' -class shows_size(aetools.NProperty): - """shows size - Are file sizes displayed in default Finder list view windows? """ - which = 'ssiz' - want = 'bool' -class shows_version(aetools.NProperty): - """shows version - Are file versions displayed in default Finder list view windows? """ - which = 'svrs' - want = 'bool' -class uses_relative_dates(aetools.NProperty): - """uses relative dates - Are relative dates (e.g., today, yesterday) shown in Finder list view windows? """ - which = 'urdt' - want = 'bool' -class uses_simple_menus(aetools.NProperty): - """uses simple menus - Use simplified Finder menus? """ - which = 'usme' - want = 'bool' -class uses_wide_grid(aetools.NProperty): - """uses wide grid - Space icons on a wide grid? """ - which = 'uswg' - want = 'bool' -class spring_open_folders(aetools.NProperty): - """spring open folders - Spring open folders after the specified delay? """ - which = 'sprg' - want = 'bool' -class delay_before_springing(aetools.NProperty): - """delay before springing - the delay before springing open a container in ticks (1/60th of a second) (12 is shortest delay, 60 is longest delay) """ - which = 'dela' - want = 'shor' -class view_font(aetools.NProperty): - """view font - the id of the font used in Finder views. """ - which = 'vfnt' - want = 'long' -class view_font_size(aetools.NProperty): - """view font size - the size of the font used in Finder views """ - which = 'vfsz' - want = 'long' -# element 'clbl' as ['indx', 'name'] - -class label(aetools.ComponentItem): - """label - A Finder label (name and color) """ - want = 'clbl' -class name(aetools.NProperty): - """name - the name associated with the label """ - which = 'pnam' - want = 'itxt' -class index(aetools.NProperty): - """index - the index in the front-to-back ordering within its container """ - which = 'pidx' - want = 'long' -class color(aetools.NProperty): - """color - the color associated with the label """ - which = 'colr' - want = 'cRGB' - -class icon_family(aetools.ComponentItem): - """icon family - A family of icons """ - want = 'ifam' -class large_monochrome_icon_and_mask(aetools.NProperty): - """large monochrome icon and mask - the large black-and-white icon and the mask for large icons """ - which = 'ICN#' - want = 'ICN#' -class large_8_bit_mask(aetools.NProperty): - """large 8 bit mask - the large 8-bit mask for large 32-bit icons """ - which = 'l8mk' - want = 'l8mk' -class large_32_bit_icon(aetools.NProperty): - """large 32 bit icon - the large 32-bit color icon """ - which = 'il32' - want = 'il32' -class large_8_bit_icon(aetools.NProperty): - """large 8 bit icon - the large 8-bit color icon """ - which = 'icl8' - want = 'icl8' -class large_4_bit_icon(aetools.NProperty): - """large 4 bit icon - the large 4-bit color icon """ - which = 'icl4' - want = 'icl4' -class small_monochrome_icon_and_mask(aetools.NProperty): - """small monochrome icon and mask - the small black-and-white icon and the mask for small icons """ - which = 'ics#' - want = 'ics#' -class small_8_bit_mask(aetools.NProperty): - """small 8 bit mask - the small 8-bit mask for small 32-bit icons """ - which = 'ics8' - want = 's8mk' -class small_32_bit_icon(aetools.NProperty): - """small 32 bit icon - the small 32-bit color icon """ - which = 'is32' - want = 'is32' - -small_8_bit_icon = small_8_bit_mask -class small_4_bit_icon(aetools.NProperty): - """small 4 bit icon - the small 4-bit color icon """ - which = 'ics4' - want = 'ics4' - -class alias_list(aetools.ComponentItem): - """alias list - A list of aliases. Use \xd4as alias list\xd5 when a list of aliases is needed (instead of a list of file system item references). """ - want = 'alst' -preferences._superclassnames = [] -preferences._privpropdict = { - 'window' : window, - 'button_view_arrangement' : button_view_arrangement, - 'button_view_icon_size' : button_view_icon_size, - 'spatial_view_arrangement' : spatial_view_arrangement, - 'spatial_view_icon_size' : spatial_view_icon_size, - 'calculates_folder_sizes' : calculates_folder_sizes, - 'list_view_icon_size' : list_view_icon_size, - 'shows_comments' : shows_comments, - 'shows_creation_date' : shows_creation_date, - 'shows_kind' : shows_kind, - 'shows_label' : shows_label, - 'shows_modification_date' : shows_modification_date, - 'shows_size' : shows_size, - 'shows_version' : shows_version, - 'uses_relative_dates' : uses_relative_dates, - 'uses_simple_menus' : uses_simple_menus, - 'uses_wide_grid' : uses_wide_grid, - 'spring_open_folders' : spring_open_folders, - 'delay_before_springing' : delay_before_springing, - 'view_font' : view_font, - 'view_font_size' : view_font_size, -} -preferences._privelemdict = { - 'label' : label, -} -label._superclassnames = [] -label._privpropdict = { - 'name' : name, - 'index' : index, - 'color' : color, -} -label._privelemdict = { -} -icon_family._superclassnames = [] -icon_family._privpropdict = { - 'large_monochrome_icon_and_mask' : large_monochrome_icon_and_mask, - 'large_8_bit_mask' : large_8_bit_mask, - 'large_32_bit_icon' : large_32_bit_icon, - 'large_8_bit_icon' : large_8_bit_icon, - 'large_4_bit_icon' : large_4_bit_icon, - 'small_monochrome_icon_and_mask' : small_monochrome_icon_and_mask, - 'small_8_bit_mask' : small_8_bit_mask, - 'small_32_bit_icon' : small_32_bit_icon, - 'small_8_bit_icon' : small_8_bit_icon, - 'small_4_bit_icon' : small_4_bit_icon, -} -icon_family._privelemdict = { -} -alias_list._superclassnames = [] -alias_list._privpropdict = { -} -alias_list._privelemdict = { -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - '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, - 'sknd' : shows_kind, - 'svrs' : shows_version, - 'colr' : color, - 'ics8' : small_8_bit_mask, - 'icl8' : large_8_bit_icon, - 'sprg' : spring_open_folders, - 'vfsz' : view_font_size, - 'sfsz' : calculates_folder_sizes, - 'l8mk' : large_8_bit_mask, - 'vfnt' : view_font, - '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, - '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, - 'il32' : large_32_bit_icon, - 'uswg' : uses_wide_grid, - 'ssiz' : shows_size, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Finder/Window_classes.py b/Mac/Lib/lib-scriptpackages/Finder/Window_classes.py deleted file mode 100644 index bbfc46e..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/Window_classes.py +++ /dev/null @@ -1,414 +0,0 @@ -"""Suite Window classes: Classes representing windows -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Finder -AETE/AEUT resource version 0/144, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'fndr' - -class Window_classes_Events: - - pass - - -class window(aetools.ComponentItem): - """window - A window """ - want = 'cwin' -class position(aetools.NProperty): - """position - the upper left position of the window """ - which = 'posn' - want = 'QDpt' -class bounds(aetools.NProperty): - """bounds - the boundary rectangle for the window """ - which = 'pbnd' - want = 'qdrt' -class titled(aetools.NProperty): - """titled - Does the window have a title bar? """ - which = 'ptit' - want = 'bool' -class name(aetools.NProperty): - """name - the name of the window """ - which = 'pnam' - want = 'itxt' -class index(aetools.NProperty): - """index - the number of the window in the front-to-back layer ordering """ - which = 'pidx' - want = 'long' -class closeable(aetools.NProperty): - """closeable - Does the window have a close box? """ - which = 'hclb' - want = 'bool' -class floating(aetools.NProperty): - """floating - Does the window have a title bar? """ - which = 'isfl' - want = 'bool' -class modal(aetools.NProperty): - """modal - Is the window modal? """ - which = 'pmod' - want = 'bool' -class resizable(aetools.NProperty): - """resizable - Is the window resizable? """ - which = 'prsz' - want = 'bool' -class zoomable(aetools.NProperty): - """zoomable - Is the window zoomable? """ - which = 'iszm' - want = 'bool' -class zoomed(aetools.NProperty): - """zoomed - Is the window zoomed? """ - which = 'pzum' - want = 'bool' -class zoomed_full_size(aetools.NProperty): - """zoomed full size - Is the window zoomed to the full size of the screen? (can only be set, not read, and only applies to open non-pop-up windows) """ - which = 'zumf' - want = 'bool' -class visible(aetools.NProperty): - """visible - Is the window visible (always true for open Finder windows)? """ - which = 'pvis' - want = 'bool' -class popup(aetools.NProperty): - """popup - Is the window is a pop-up window? (only applies to open container windows in the Finder and can only be set when the Finder is the front application) """ - which = 'drwr' - want = 'bool' -class pulled_open(aetools.NProperty): - """pulled open - Is the window pulled open (only applies to pop-up windows and can only be set when the Finder is the front application)? """ - which = 'pull' - want = 'bool' -class collapsed(aetools.NProperty): - """collapsed - Is the window collapsed (only applies to open non-pop-up windows)? """ - which = 'wshd' - want = 'bool' - -windows = window - -class container_window(aetools.ComponentItem): - """container window - A window that contains items """ - want = 'cwnd' -class _3c_Inheritance_3e_(aetools.NProperty): - """<Inheritance> - inherits some of its properties from the window class """ - which = 'c@#^' - want = 'cwin' -class container(aetools.NProperty): - """container - the container from which the window was opened """ - which = 'ctnr' - want = 'obj ' -class item(aetools.NProperty): - """item - the item from which the window was opened (always returns something) """ - which = 'cobj' - want = 'obj ' -class has_custom_view_settings(aetools.NProperty): - """has custom view settings - Does the folder have custom view settings or is it using the default global settings? """ - which = 'cuss' - want = 'bool' -class view(aetools.NProperty): - """view - the current view for the window (icon, name, date, etc.) """ - which = 'pvew' - want = 'long' -class previous_list_view(aetools.NProperty): - """previous list view - the last non-icon view (by name, by date, etc.) selected for the container (forgotten as soon as the window is closed and only available when the window is open) """ - which = 'svew' - want = 'enum' -class button_view_arrangement(aetools.NProperty): - """button view arrangement - the property by which to keep icons arranged within a button view window """ - which = 'barr' - want = 'earr' -class spatial_view_arrangement(aetools.NProperty): - """spatial view arrangement - the property by which to keep icons arranged within a spatial view window """ - which = 'iarr' - want = 'earr' -class sort_direction(aetools.NProperty): - """sort direction - The direction in which the window is sorted """ - which = 'sord' - want = 'sodr' -class calculates_folder_sizes(aetools.NProperty): - """calculates folder sizes - Are folder sizes calculated and displayed in the window? (does not apply to suitcase windows) """ - which = 'sfsz' - want = 'bool' -class shows_comments(aetools.NProperty): - """shows comments - Are comments displayed in the window? (does not apply to suitcases) """ - which = 'scom' - want = 'bool' -class shows_creation_date(aetools.NProperty): - """shows creation date - Are creation dates displayed in the window? """ - which = 'scda' - want = 'bool' -class shows_kind(aetools.NProperty): - """shows kind - Are document kinds displayed in the window? """ - which = 'sknd' - want = 'bool' -class shows_label(aetools.NProperty): - """shows label - Are labels displayed in the window? """ - which = 'slbl' - want = 'bool' -class shows_modification_date(aetools.NProperty): - """shows modification date - Are modification dates displayed in the window? """ - which = 'sdat' - want = 'bool' -class shows_size(aetools.NProperty): - """shows size - Are file sizes displayed in the window? """ - which = 'ssiz' - want = 'bool' -class shows_version(aetools.NProperty): - """shows version - Are file versions displayed in the window? (does not apply to suitcase windows) """ - which = 'svrs' - want = 'bool' -class uses_relative_dates(aetools.NProperty): - """uses relative dates - Are relative dates (e.g., today, yesterday) shown in the window? """ - which = 'urdt' - want = 'bool' - -container_windows = container_window - -class information_window(aetools.ComponentItem): - """information window - An information window (opened by \xd2Get Info\xd3) """ - want = 'iwnd' -class current_panel(aetools.NProperty): - """current panel - the current panel in the information window """ - which = 'panl' - want = 'ipnl' -class comment(aetools.NProperty): - """comment - the comment """ - which = 'comt' - want = 'itxt' -class size(aetools.NProperty): - """size - the logical size of the item """ - which = 'ptsz' - want = 'long' -class physical_size(aetools.NProperty): - """physical size - the actual space used by the item on disk """ - which = 'phys' - want = 'long' -class creation_date(aetools.NProperty): - """creation date - the date on which the item was created """ - which = 'ascd' - want = 'ldt ' -class modification_date(aetools.NProperty): - """modification date - the date on which the item was last modified """ - which = 'asmo' - want = 'ldt ' -class suggested_size(aetools.NProperty): - """suggested size - the memory size with which the developer recommends the application be launched """ - which = 'sprt' - want = 'long' -class minimum_size(aetools.NProperty): - """minimum size - the smallest memory size with which the application can be launched (only applies to information windows for applications) """ - which = 'mprt' - want = 'long' -class preferred_size(aetools.NProperty): - """preferred size - the memory size with which the application will be launched (only applies to information windows for applications) """ - which = 'appt' - want = 'long' -class icon(aetools.NProperty): - """icon - the icon bitmap of the item """ - which = 'iimg' - want = 'ifam' -class locked(aetools.NProperty): - """locked - Is the item locked (applies only to file and application information windows)? """ - which = 'aslk' - want = 'bool' -class stationery(aetools.NProperty): - """stationery - Is the item a stationery pad? """ - which = 'pspd' - want = 'bool' -class warns_before_emptying(aetools.NProperty): - """warns before emptying - Display a dialog when emptying the trash (only valid for trash info window)? """ - which = 'warn' - want = 'bool' -class product_version(aetools.NProperty): - """product version - the version of the product (visible at the top of the \xd2Get Info\xd3 window) """ - which = 'ver2' - want = 'itxt' -class version(aetools.NProperty): - """version - the version of the file (visible at the bottom of the \xd2Get Info\xd3 window) """ - which = 'vers' - want = 'itxt' - -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' - -class clipping_window(aetools.ComponentItem): - """clipping window - The window containing a clipping """ - want = 'lwnd' - -clipping_windows = clipping_window - -class content_space(aetools.ComponentItem): - """content space - All windows, including the desktop window (\xd2Window\xd3 does not include the desktop window) """ - want = 'dwnd' - -content_spaces = content_space -window._superclassnames = [] -window._privpropdict = { - 'position' : position, - 'bounds' : bounds, - 'titled' : titled, - 'name' : name, - 'index' : index, - 'closeable' : closeable, - 'floating' : floating, - 'modal' : modal, - 'resizable' : resizable, - 'zoomable' : zoomable, - 'zoomed' : zoomed, - 'zoomed_full_size' : zoomed_full_size, - 'visible' : visible, - 'popup' : popup, - 'pulled_open' : pulled_open, - 'collapsed' : collapsed, -} -window._privelemdict = { -} -container_window._superclassnames = ['window'] -container_window._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'container' : container, - 'item' : item, - 'has_custom_view_settings' : has_custom_view_settings, - 'view' : view, - 'previous_list_view' : previous_list_view, - 'button_view_arrangement' : button_view_arrangement, - 'spatial_view_arrangement' : spatial_view_arrangement, - 'sort_direction' : sort_direction, - 'calculates_folder_sizes' : calculates_folder_sizes, - 'shows_comments' : shows_comments, - 'shows_creation_date' : shows_creation_date, - 'shows_kind' : shows_kind, - 'shows_label' : shows_label, - 'shows_modification_date' : shows_modification_date, - 'shows_size' : shows_size, - 'shows_version' : shows_version, - 'uses_relative_dates' : uses_relative_dates, -} -container_window._privelemdict = { -} -information_window._superclassnames = ['window'] -information_window._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'item' : item, - 'current_panel' : current_panel, - 'comment' : comment, - 'size' : size, - 'physical_size' : physical_size, - 'creation_date' : creation_date, - 'modification_date' : modification_date, - 'suggested_size' : suggested_size, - 'minimum_size' : minimum_size, - 'preferred_size' : preferred_size, - 'icon' : icon, - 'locked' : locked, - 'stationery' : stationery, - 'warns_before_emptying' : warns_before_emptying, - 'product_version' : product_version, - 'version' : version, -} -information_window._privelemdict = { -} -view_options_window._superclassnames = ['window'] -view_options_window._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'item' : item, -} -view_options_window._privelemdict = { -} -preferences_window._superclassnames = ['window'] -preferences_window._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, - 'current_panel' : current_panel, -} -preferences_window._privelemdict = { -} -clipping_window._superclassnames = ['window'] -clipping_window._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, -} -clipping_window._privelemdict = { -} -content_space._superclassnames = [] -content_space._privpropdict = { -} -content_space._privelemdict = { -} - -# -# 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, -} - -_propdeclarations = { - 'prsz' : resizable, - 'barr' : button_view_arrangement, - 'pzum' : zoomed, - 'iarr' : spatial_view_arrangement, - '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, - 'iimg' : icon, - 'mprt' : minimum_size, - 'pnam' : name, - 'ssiz' : shows_size, - 'asmo' : modification_date, - 'cobj' : item, - 'ptit' : titled, - 'posn' : position, - 'cuss' : has_custom_view_settings, - '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, - 'warn' : warns_before_emptying, - 'drwr' : popup, - 'sdat' : shows_modification_date, - 'pvew' : view, - 'scda' : shows_creation_date, - 'vers' : version, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Finder/__init__.py b/Mac/Lib/lib-scriptpackages/Finder/__init__.py deleted file mode 100644 index 8ea742f..0000000 --- a/Mac/Lib/lib-scriptpackages/Finder/__init__.py +++ /dev/null @@ -1,461 +0,0 @@ -""" -Package generated from /Volumes/Sap/System Folder/Finder -Resource aete resid 0 -""" -import aetools -Error = aetools.Error -import Standard_Suite -import Earlier_terms -import Finder_Basics -import Finder_items -import Containers_and_folders -import Files_and_suitcases -import Window_classes -import Process_classes -import Type_Definitions -import Enumerations -import Obsolete_terms - - -_code_to_module = { - 'CoRe' : Standard_Suite, - 'tpnm' : Earlier_terms, - 'fndr' : Finder_Basics, - 'fndr' : Finder_items, - 'fndr' : Containers_and_folders, - 'fndr' : Files_and_suitcases, - 'fndr' : Window_classes, - 'fndr' : Process_classes, - 'tpdf' : Type_Definitions, - 'tpnm' : Enumerations, - 'tpnm' : Obsolete_terms, -} - - - -_code_to_fullname = { - 'CoRe' : ('Finder.Standard_Suite', 'Standard_Suite'), - 'tpnm' : ('Finder.Earlier_terms', 'Earlier_terms'), - 'fndr' : ('Finder.Finder_Basics', 'Finder_Basics'), - 'fndr' : ('Finder.Finder_items', 'Finder_items'), - 'fndr' : ('Finder.Containers_and_folders', 'Containers_and_folders'), - 'fndr' : ('Finder.Files_and_suitcases', 'Files_and_suitcases'), - 'fndr' : ('Finder.Window_classes', 'Window_classes'), - 'fndr' : ('Finder.Process_classes', 'Process_classes'), - 'tpdf' : ('Finder.Type_Definitions', 'Type_Definitions'), - 'tpnm' : ('Finder.Enumerations', 'Enumerations'), - 'tpnm' : ('Finder.Obsolete_terms', 'Obsolete_terms'), -} - -from Standard_Suite import * -from Earlier_terms import * -from Finder_Basics import * -from Finder_items import * -from Containers_and_folders import * -from Files_and_suitcases import * -from Window_classes import * -from Process_classes import * -from Type_Definitions import * -from Enumerations import * -from Obsolete_terms import * -def getbaseclasses(v): - if hasattr(v, '_superclassnames') and not hasattr(v, '_propdict'): - v._propdict = {} - v._elemdict = {} - for superclass in v._superclassnames: - v._propdict.update(getattr(eval(superclass), '_privpropdict', {})) - v._elemdict.update(getattr(eval(superclass), '_privelemdict', {})) - v._propdict.update(v._privpropdict) - v._elemdict.update(v._privelemdict) - -import StdSuites - -# -# Set property and element dictionaries now that all classes have been defined -# -getbaseclasses(accessory_suitcase) -getbaseclasses(preferences) -getbaseclasses(sharable_container) -getbaseclasses(application) -getbaseclasses(trash_2d_object) -getbaseclasses(accessory_process) -getbaseclasses(window) -getbaseclasses(information_window) -getbaseclasses(process) -getbaseclasses(application_file) -getbaseclasses(internet_location) -getbaseclasses(container_window) -getbaseclasses(item) -getbaseclasses(StdSuites.Type_Names_Suite.small_integer) -getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color) -getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary) -getbaseclasses(StdSuites.Type_Names_Suite.color_table) -getbaseclasses(StdSuites.Type_Names_Suite.fixed_point) -getbaseclasses(StdSuites.Type_Names_Suite.plain_text) -getbaseclasses(StdSuites.Type_Names_Suite.type_element_info) -getbaseclasses(StdSuites.Type_Names_Suite.location_reference) -getbaseclasses(StdSuites.Type_Names_Suite.version) -getbaseclasses(StdSuites.Type_Names_Suite.PostScript_picture) -getbaseclasses(StdSuites.Type_Names_Suite.machine_location) -getbaseclasses(StdSuites.Type_Names_Suite.menu_item) -getbaseclasses(StdSuites.Type_Names_Suite.pixel_map_record) -getbaseclasses(StdSuites.Type_Names_Suite.application_dictionary) -getbaseclasses(StdSuites.Type_Names_Suite.unsigned_integer) -getbaseclasses(StdSuites.Type_Names_Suite.menu) -getbaseclasses(StdSuites.Type_Names_Suite.fixed_rectangle) -getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_rectangle) -getbaseclasses(StdSuites.Type_Names_Suite.type_event_info) -getbaseclasses(StdSuites.Type_Names_Suite.small_real) -getbaseclasses(StdSuites.Type_Names_Suite.type_suite_info) -getbaseclasses(StdSuites.Type_Names_Suite.rotation) -getbaseclasses(StdSuites.Type_Names_Suite.fixed) -getbaseclasses(StdSuites.Type_Names_Suite.scrap_styles) -getbaseclasses(StdSuites.Type_Names_Suite.long_point) -getbaseclasses(StdSuites.Type_Names_Suite.type_class_info) -getbaseclasses(StdSuites.Type_Names_Suite.TIFF_picture) -getbaseclasses(StdSuites.Type_Names_Suite.RGB96_color) -getbaseclasses(StdSuites.Type_Names_Suite.dash_style) -getbaseclasses(StdSuites.Type_Names_Suite.type_property_info) -getbaseclasses(StdSuites.Type_Names_Suite.type_parameter_info) -getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_point) -getbaseclasses(StdSuites.Type_Names_Suite.long_rectangle) -getbaseclasses(StdSuites.Type_Names_Suite.extended_real) -getbaseclasses(StdSuites.Type_Names_Suite.double_integer) -getbaseclasses(StdSuites.Type_Names_Suite.long_fixed) -getbaseclasses(StdSuites.Type_Names_Suite.null) -getbaseclasses(StdSuites.Type_Names_Suite.target_id) -getbaseclasses(StdSuites.Type_Names_Suite.point) -getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle) -getbaseclasses(application) -getbaseclasses(special_folders) -getbaseclasses(item) -getbaseclasses(trash_2d_object) -getbaseclasses(desktop_2d_object) -getbaseclasses(sharable_container) -getbaseclasses(sharing_privileges) -getbaseclasses(disk) -getbaseclasses(folder) -getbaseclasses(container) -getbaseclasses(sound_file) -getbaseclasses(font_file) -getbaseclasses(internet_location_file) -getbaseclasses(clipping) -getbaseclasses(alias_file) -getbaseclasses(desk_accessory_file) -getbaseclasses(desk_accessory_suitcase) -getbaseclasses(font_suitcase) -getbaseclasses(file) -getbaseclasses(application_file) -getbaseclasses(suitcase) -getbaseclasses(document_file) -getbaseclasses(package) -getbaseclasses(preferences_window) -getbaseclasses(view_options_window) -getbaseclasses(window) -getbaseclasses(container_window) -getbaseclasses(content_space) -getbaseclasses(information_window) -getbaseclasses(clipping_window) -getbaseclasses(process) -getbaseclasses(desk_accessory_process) -getbaseclasses(application_process) -getbaseclasses(preferences) -getbaseclasses(alias_list) -getbaseclasses(icon_family) -getbaseclasses(label) -getbaseclasses(StdSuites.Type_Names_Suite.small_integer) -getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color) -getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary) -getbaseclasses(StdSuites.Type_Names_Suite.color_table) -getbaseclasses(StdSuites.Type_Names_Suite.fixed_point) -getbaseclasses(StdSuites.Type_Names_Suite.plain_text) -getbaseclasses(StdSuites.Type_Names_Suite.type_element_info) -getbaseclasses(StdSuites.Type_Names_Suite.location_reference) -getbaseclasses(StdSuites.Type_Names_Suite.version) -getbaseclasses(StdSuites.Type_Names_Suite.PostScript_picture) -getbaseclasses(StdSuites.Type_Names_Suite.machine_location) -getbaseclasses(StdSuites.Type_Names_Suite.menu_item) -getbaseclasses(StdSuites.Type_Names_Suite.pixel_map_record) -getbaseclasses(StdSuites.Type_Names_Suite.application_dictionary) -getbaseclasses(StdSuites.Type_Names_Suite.unsigned_integer) -getbaseclasses(StdSuites.Type_Names_Suite.menu) -getbaseclasses(StdSuites.Type_Names_Suite.fixed_rectangle) -getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_rectangle) -getbaseclasses(StdSuites.Type_Names_Suite.type_event_info) -getbaseclasses(StdSuites.Type_Names_Suite.small_real) -getbaseclasses(StdSuites.Type_Names_Suite.type_suite_info) -getbaseclasses(StdSuites.Type_Names_Suite.rotation) -getbaseclasses(StdSuites.Type_Names_Suite.fixed) -getbaseclasses(StdSuites.Type_Names_Suite.scrap_styles) -getbaseclasses(StdSuites.Type_Names_Suite.long_point) -getbaseclasses(StdSuites.Type_Names_Suite.type_class_info) -getbaseclasses(StdSuites.Type_Names_Suite.TIFF_picture) -getbaseclasses(StdSuites.Type_Names_Suite.RGB96_color) -getbaseclasses(StdSuites.Type_Names_Suite.dash_style) -getbaseclasses(StdSuites.Type_Names_Suite.type_property_info) -getbaseclasses(StdSuites.Type_Names_Suite.type_parameter_info) -getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_point) -getbaseclasses(StdSuites.Type_Names_Suite.long_rectangle) -getbaseclasses(StdSuites.Type_Names_Suite.extended_real) -getbaseclasses(StdSuites.Type_Names_Suite.double_integer) -getbaseclasses(StdSuites.Type_Names_Suite.long_fixed) -getbaseclasses(StdSuites.Type_Names_Suite.null) -getbaseclasses(StdSuites.Type_Names_Suite.target_id) -getbaseclasses(StdSuites.Type_Names_Suite.point) -getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle) -getbaseclasses(status_window) -getbaseclasses(application) -getbaseclasses(sharing_window) -getbaseclasses(control_panel) -getbaseclasses(process) -getbaseclasses(item) -getbaseclasses(file) -getbaseclasses(sharable_container) -getbaseclasses(container_window) -getbaseclasses(container) -getbaseclasses(information_window) -getbaseclasses(StdSuites.Type_Names_Suite.small_integer) -getbaseclasses(StdSuites.Type_Names_Suite.RGB16_color) -getbaseclasses(StdSuites.Type_Names_Suite.system_dictionary) -getbaseclasses(StdSuites.Type_Names_Suite.color_table) -getbaseclasses(StdSuites.Type_Names_Suite.fixed_point) -getbaseclasses(StdSuites.Type_Names_Suite.plain_text) -getbaseclasses(StdSuites.Type_Names_Suite.type_element_info) -getbaseclasses(StdSuites.Type_Names_Suite.location_reference) -getbaseclasses(StdSuites.Type_Names_Suite.version) -getbaseclasses(StdSuites.Type_Names_Suite.PostScript_picture) -getbaseclasses(StdSuites.Type_Names_Suite.machine_location) -getbaseclasses(StdSuites.Type_Names_Suite.menu_item) -getbaseclasses(StdSuites.Type_Names_Suite.pixel_map_record) -getbaseclasses(StdSuites.Type_Names_Suite.application_dictionary) -getbaseclasses(StdSuites.Type_Names_Suite.unsigned_integer) -getbaseclasses(StdSuites.Type_Names_Suite.menu) -getbaseclasses(StdSuites.Type_Names_Suite.fixed_rectangle) -getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_rectangle) -getbaseclasses(StdSuites.Type_Names_Suite.type_event_info) -getbaseclasses(StdSuites.Type_Names_Suite.small_real) -getbaseclasses(StdSuites.Type_Names_Suite.type_suite_info) -getbaseclasses(StdSuites.Type_Names_Suite.rotation) -getbaseclasses(StdSuites.Type_Names_Suite.fixed) -getbaseclasses(StdSuites.Type_Names_Suite.scrap_styles) -getbaseclasses(StdSuites.Type_Names_Suite.long_point) -getbaseclasses(StdSuites.Type_Names_Suite.type_class_info) -getbaseclasses(StdSuites.Type_Names_Suite.TIFF_picture) -getbaseclasses(StdSuites.Type_Names_Suite.RGB96_color) -getbaseclasses(StdSuites.Type_Names_Suite.dash_style) -getbaseclasses(StdSuites.Type_Names_Suite.type_property_info) -getbaseclasses(StdSuites.Type_Names_Suite.type_parameter_info) -getbaseclasses(StdSuites.Type_Names_Suite.long_fixed_point) -getbaseclasses(StdSuites.Type_Names_Suite.long_rectangle) -getbaseclasses(StdSuites.Type_Names_Suite.extended_real) -getbaseclasses(StdSuites.Type_Names_Suite.double_integer) -getbaseclasses(StdSuites.Type_Names_Suite.long_fixed) -getbaseclasses(StdSuites.Type_Names_Suite.null) -getbaseclasses(StdSuites.Type_Names_Suite.target_id) -getbaseclasses(StdSuites.Type_Names_Suite.point) -getbaseclasses(StdSuites.Type_Names_Suite.bounding_rectangle) - -# -# 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, - 'prcs' : process, - 'appf' : application_file, - 'inlf' : internet_location, - 'cwnd' : container_window, - 'cobj' : item, - 'shor' : StdSuites.Type_Names_Suite.small_integer, - 'tr16' : StdSuites.Type_Names_Suite.RGB16_color, - 'aeut' : StdSuites.Type_Names_Suite.system_dictionary, - 'clrt' : StdSuites.Type_Names_Suite.color_table, - 'fpnt' : StdSuites.Type_Names_Suite.fixed_point, - 'TEXT' : StdSuites.Type_Names_Suite.plain_text, - 'elin' : StdSuites.Type_Names_Suite.type_element_info, - 'insl' : StdSuites.Type_Names_Suite.location_reference, - 'vers' : StdSuites.Type_Names_Suite.version, - 'EPS ' : StdSuites.Type_Names_Suite.PostScript_picture, - 'mLoc' : StdSuites.Type_Names_Suite.machine_location, - 'cmen' : StdSuites.Type_Names_Suite.menu_item, - 'tpmm' : StdSuites.Type_Names_Suite.pixel_map_record, - 'aete' : StdSuites.Type_Names_Suite.application_dictionary, - 'magn' : StdSuites.Type_Names_Suite.unsigned_integer, - 'cmnu' : StdSuites.Type_Names_Suite.menu, - 'frct' : StdSuites.Type_Names_Suite.fixed_rectangle, - 'lfrc' : StdSuites.Type_Names_Suite.long_fixed_rectangle, - 'evin' : StdSuites.Type_Names_Suite.type_event_info, - 'sing' : StdSuites.Type_Names_Suite.small_real, - 'suin' : StdSuites.Type_Names_Suite.type_suite_info, - 'trot' : StdSuites.Type_Names_Suite.rotation, - 'fixd' : StdSuites.Type_Names_Suite.fixed, - 'styl' : StdSuites.Type_Names_Suite.scrap_styles, - 'lpnt' : StdSuites.Type_Names_Suite.long_point, - 'gcli' : StdSuites.Type_Names_Suite.type_class_info, - 'TIFF' : StdSuites.Type_Names_Suite.TIFF_picture, - 'tr96' : StdSuites.Type_Names_Suite.RGB96_color, - 'tdas' : StdSuites.Type_Names_Suite.dash_style, - 'pinf' : StdSuites.Type_Names_Suite.type_property_info, - 'pmin' : StdSuites.Type_Names_Suite.type_parameter_info, - 'lfpt' : StdSuites.Type_Names_Suite.long_fixed_point, - 'lrct' : StdSuites.Type_Names_Suite.long_rectangle, - 'exte' : StdSuites.Type_Names_Suite.extended_real, - 'comp' : StdSuites.Type_Names_Suite.double_integer, - 'lfxd' : StdSuites.Type_Names_Suite.long_fixed, - 'null' : StdSuites.Type_Names_Suite.null, - 'targ' : StdSuites.Type_Names_Suite.target_id, - 'QDpt' : StdSuites.Type_Names_Suite.point, - 'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle, - 'capp' : application, - 'spfl' : special_folders, - 'cobj' : item, - 'ctrs' : trash_2d_object, - 'cdsk' : desktop_2d_object, - 'sctr' : sharable_container, - 'priv' : sharing_privileges, - 'cdis' : disk, - 'cfol' : folder, - 'ctnr' : container, - 'sndf' : sound_file, - 'fntf' : font_file, - 'inlf' : internet_location_file, - 'clpf' : clipping, - 'alia' : alias_file, - 'dafi' : desk_accessory_file, - 'dsut' : desk_accessory_suitcase, - 'fsut' : font_suitcase, - 'file' : file, - 'appf' : application_file, - 'stcs' : suitcase, - 'docf' : document_file, - 'pack' : package, - 'pwnd' : preferences_window, - 'vwnd' : view_options_window, - 'cwin' : window, - 'cwnd' : container_window, - 'dwnd' : content_space, - 'iwnd' : information_window, - 'lwnd' : clipping_window, - 'prcs' : process, - 'pcda' : desk_accessory_process, - 'pcap' : application_process, - 'cprf' : preferences, - 'alst' : alias_list, - 'ifam' : icon_family, - 'clbl' : label, - 'shor' : StdSuites.Type_Names_Suite.small_integer, - 'tr16' : StdSuites.Type_Names_Suite.RGB16_color, - 'aeut' : StdSuites.Type_Names_Suite.system_dictionary, - 'clrt' : StdSuites.Type_Names_Suite.color_table, - 'fpnt' : StdSuites.Type_Names_Suite.fixed_point, - 'TEXT' : StdSuites.Type_Names_Suite.plain_text, - 'elin' : StdSuites.Type_Names_Suite.type_element_info, - 'insl' : StdSuites.Type_Names_Suite.location_reference, - 'vers' : StdSuites.Type_Names_Suite.version, - 'EPS ' : StdSuites.Type_Names_Suite.PostScript_picture, - 'mLoc' : StdSuites.Type_Names_Suite.machine_location, - 'cmen' : StdSuites.Type_Names_Suite.menu_item, - 'tpmm' : StdSuites.Type_Names_Suite.pixel_map_record, - 'aete' : StdSuites.Type_Names_Suite.application_dictionary, - 'magn' : StdSuites.Type_Names_Suite.unsigned_integer, - 'cmnu' : StdSuites.Type_Names_Suite.menu, - 'frct' : StdSuites.Type_Names_Suite.fixed_rectangle, - 'lfrc' : StdSuites.Type_Names_Suite.long_fixed_rectangle, - 'evin' : StdSuites.Type_Names_Suite.type_event_info, - 'sing' : StdSuites.Type_Names_Suite.small_real, - 'suin' : StdSuites.Type_Names_Suite.type_suite_info, - 'trot' : StdSuites.Type_Names_Suite.rotation, - 'fixd' : StdSuites.Type_Names_Suite.fixed, - 'styl' : StdSuites.Type_Names_Suite.scrap_styles, - 'lpnt' : StdSuites.Type_Names_Suite.long_point, - 'gcli' : StdSuites.Type_Names_Suite.type_class_info, - 'TIFF' : StdSuites.Type_Names_Suite.TIFF_picture, - 'tr96' : StdSuites.Type_Names_Suite.RGB96_color, - 'tdas' : StdSuites.Type_Names_Suite.dash_style, - 'pinf' : StdSuites.Type_Names_Suite.type_property_info, - 'pmin' : StdSuites.Type_Names_Suite.type_parameter_info, - 'lfpt' : StdSuites.Type_Names_Suite.long_fixed_point, - 'lrct' : StdSuites.Type_Names_Suite.long_rectangle, - 'exte' : StdSuites.Type_Names_Suite.extended_real, - 'comp' : StdSuites.Type_Names_Suite.double_integer, - 'lfxd' : StdSuites.Type_Names_Suite.long_fixed, - 'null' : StdSuites.Type_Names_Suite.null, - 'targ' : StdSuites.Type_Names_Suite.target_id, - 'QDpt' : StdSuites.Type_Names_Suite.point, - 'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle, - 'qwnd' : status_window, - 'capp' : application, - 'swnd' : sharing_window, - 'ccdv' : control_panel, - 'prcs' : process, - 'cobj' : item, - 'file' : file, - 'sctr' : sharable_container, - 'cwnd' : container_window, - 'ctnr' : container, - 'iwnd' : information_window, - 'shor' : StdSuites.Type_Names_Suite.small_integer, - 'tr16' : StdSuites.Type_Names_Suite.RGB16_color, - 'aeut' : StdSuites.Type_Names_Suite.system_dictionary, - 'clrt' : StdSuites.Type_Names_Suite.color_table, - 'fpnt' : StdSuites.Type_Names_Suite.fixed_point, - 'TEXT' : StdSuites.Type_Names_Suite.plain_text, - 'elin' : StdSuites.Type_Names_Suite.type_element_info, - 'insl' : StdSuites.Type_Names_Suite.location_reference, - 'vers' : StdSuites.Type_Names_Suite.version, - 'EPS ' : StdSuites.Type_Names_Suite.PostScript_picture, - 'mLoc' : StdSuites.Type_Names_Suite.machine_location, - 'cmen' : StdSuites.Type_Names_Suite.menu_item, - 'tpmm' : StdSuites.Type_Names_Suite.pixel_map_record, - 'aete' : StdSuites.Type_Names_Suite.application_dictionary, - 'magn' : StdSuites.Type_Names_Suite.unsigned_integer, - 'cmnu' : StdSuites.Type_Names_Suite.menu, - 'frct' : StdSuites.Type_Names_Suite.fixed_rectangle, - 'lfrc' : StdSuites.Type_Names_Suite.long_fixed_rectangle, - 'evin' : StdSuites.Type_Names_Suite.type_event_info, - 'sing' : StdSuites.Type_Names_Suite.small_real, - 'suin' : StdSuites.Type_Names_Suite.type_suite_info, - 'trot' : StdSuites.Type_Names_Suite.rotation, - 'fixd' : StdSuites.Type_Names_Suite.fixed, - 'styl' : StdSuites.Type_Names_Suite.scrap_styles, - 'lpnt' : StdSuites.Type_Names_Suite.long_point, - 'gcli' : StdSuites.Type_Names_Suite.type_class_info, - 'TIFF' : StdSuites.Type_Names_Suite.TIFF_picture, - 'tr96' : StdSuites.Type_Names_Suite.RGB96_color, - 'tdas' : StdSuites.Type_Names_Suite.dash_style, - 'pinf' : StdSuites.Type_Names_Suite.type_property_info, - 'pmin' : StdSuites.Type_Names_Suite.type_parameter_info, - 'lfpt' : StdSuites.Type_Names_Suite.long_fixed_point, - 'lrct' : StdSuites.Type_Names_Suite.long_rectangle, - 'exte' : StdSuites.Type_Names_Suite.extended_real, - 'comp' : StdSuites.Type_Names_Suite.double_integer, - 'lfxd' : StdSuites.Type_Names_Suite.long_fixed, - 'null' : StdSuites.Type_Names_Suite.null, - 'targ' : StdSuites.Type_Names_Suite.target_id, - 'QDpt' : StdSuites.Type_Names_Suite.point, - 'qdrt' : StdSuites.Type_Names_Suite.bounding_rectangle, -} - - -class Finder(Standard_Suite_Events, - Earlier_terms_Events, - Finder_Basics_Events, - Finder_items_Events, - Containers_and_folders_Events, - Files_and_suitcases_Events, - Window_classes_Events, - Process_classes_Events, - Type_Definitions_Events, - Enumerations_Events, - Obsolete_terms_Events, - aetools.TalkTo): - _signature = 'MACS' - - _moduleName = 'Finder' - diff --git a/Mac/Lib/lib-scriptpackages/Netscape/Mozilla_suite.py b/Mac/Lib/lib-scriptpackages/Netscape/Mozilla_suite.py deleted file mode 100644 index 45f8ffd..0000000 --- a/Mac/Lib/lib-scriptpackages/Netscape/Mozilla_suite.py +++ /dev/null @@ -1,269 +0,0 @@ -"""Suite Mozilla suite: Experimental Mozilla suite -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'MOSS' - -class Mozilla_suite_Events: - - _argmap_Read_help_file = { - 'with_index' : 'idid', - 'search_text' : 'sear', - } - - def Read_help_file(self, _object, _attributes={}, **_arguments): - """Read help file: Reads in the help file (file should be in the help file format) - Required argument: undocumented, typecode 'alis' - Keyword argument with_index: Index to the help file. Defaults to \xd4DEFAULT\xd5) - Keyword argument search_text: Optional text to search for - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MOSS' - _subcode = 'help' - - aetools.keysubst(_arguments, self._argmap_Read_help_file) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Open_bookmark(self, _object=None, _attributes={}, **_arguments): - """Open bookmark: Reads in a bookmark file - Required argument: If not available, reloads the current bookmark file - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MOSS' - _subcode = 'book' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Go = { - 'direction' : 'dire', - } - - def Go(self, _object, _attributes={}, **_arguments): - """Go: navigate a window: back, forward, again(reload), home) - Required argument: window - Keyword argument direction: undocumented, typecode 'dire' - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MOSS' - _subcode = 'gogo' - - aetools.keysubst(_arguments, self._argmap_Go) - _arguments['----'] = _object - - aetools.enumsubst(_arguments, 'dire', _Enum_dire) - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_workingURL(self, _no_object=None, _attributes={}, **_arguments): - """Get workingURL: Get the path to the running application in URL format. This will allow a script to construct a relative URL - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Will return text of the from \xd2FILE://foo/applicationname\xd3 - """ - _code = 'MOSS' - _subcode = 'wurl' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Open_Profile_Manager(self, _no_object=None, _attributes={}, **_arguments): - """Open Profile Manager: Open the user profile manager (obsolete) - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MOSS' - _subcode = 'prfl' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_Import_Data(self, _no_object=None, _attributes={}, **_arguments): - """Get Import Data: Returns a structure containing information that is of use to an external module in importing data from an external mail application into Communicator. - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: vRefNum and dirID of profile folder (2+4 bytes), vRefNum and DirID of the local mail folder (2+4 bytes), window type of front window (0 if none, \xd4Brwz\xd5 browser, \xd4Addr\xd5 addressbook, \xd4Mesg\xd5 messenger, etc., 4 bytes) - """ - _code = 'MOSS' - _subcode = 'Impt' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Get_Profile_Name(self, _no_object=None, _attributes={}, **_arguments): - """Get Profile Name: Get the current User Profile - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Name of the current profile, like \xd2Joe Bloggs\xd3. This is the name of the profile folder in the Netscape Users folder. - """ - _code = 'MOSS' - _subcode = 'upro' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Open_Address_Book(self, _no_object=None, _attributes={}, **_arguments): - """Open Address Book: Opens the address book - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MOSS' - _subcode = 'addr' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Open_Component(self, _object, _attributes={}, **_arguments): - """Open Component: Open a Communicator component - Required argument: The component to open - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MOSS' - _subcode = 'cpnt' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def Handle_command(self, _object, _attributes={}, **_arguments): - """Handle command: Handle a command - Required argument: The command to handle - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'MOSS' - _subcode = 'hcmd' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - -_Enum_dire = { - 'again' : 'agai', # Again (reload) - 'home' : 'home', # Home - 'backward' : 'prev', # Previous page - 'forward' : 'next', # Next page -} - -_Enum_comp = { - 'Navigator' : 'navg', # The Navigator component - 'InBox' : 'inbx', # The InBox component - 'Newsgroups' : 'colb', # The Newsgroups component - 'Composer' : 'cpsr', # The Page Composer component - 'Conference' : 'conf', # The Conference Component - 'Calendar' : 'cald', # The Calendar Component -} - -_Enum_ncmd = { - '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', # -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { - '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 deleted file mode 100644 index e21242b..0000000 --- a/Mac/Lib/lib-scriptpackages/Netscape/PowerPlant.py +++ /dev/null @@ -1,86 +0,0 @@ -"""Suite PowerPlant: -Level 0, version 0 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'ppnt' - -class PowerPlant_Events: - - _argmap_select = { - 'data' : 'data', - } - - def select(self, _object, _attributes={}, **_arguments): - """select: Sets the present selection - Required argument: object to select or container of sub-objects to select - Keyword argument data: sub-object(s) to select - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'misc' - _subcode = 'slct' - - aetools.keysubst(_arguments, self._argmap_select) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_SwitchTellTarget = { - 'to' : 'data', - } - - def SwitchTellTarget(self, _no_object=None, _attributes={}, **_arguments): - """SwitchTellTarget: Makes an object the \xd2focus\xd3 of AppleEvents - Keyword argument to: reference to new focus of AppleEvents - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'ppnt' - _subcode = 'sttg' - - aetools.keysubst(_arguments, self._argmap_SwitchTellTarget) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - -_Enum_dbac = { - '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). -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { - 'dbac' : _Enum_dbac, -} diff --git a/Mac/Lib/lib-scriptpackages/Netscape/Required_suite.py b/Mac/Lib/lib-scriptpackages/Netscape/Required_suite.py deleted file mode 100644 index 8da57b6..0000000 --- a/Mac/Lib/lib-scriptpackages/Netscape/Required_suite.py +++ /dev/null @@ -1,108 +0,0 @@ -"""Suite Required suite: -Level 0, version 0 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'reqd' - -from StdSuites.Required_Suite import * -class Required_suite_Events(Required_Suite_Events): - - def open(self, _object, _attributes={}, **_arguments): - """open: Open the specified object(s) - Required argument: list of objects to open - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'odoc' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def print_(self, _object, _attributes={}, **_arguments): - """print: Print the specified object(s) - Required argument: list of objects to print - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'pdoc' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def quit(self, _no_object=None, _attributes={}, **_arguments): - """quit: Quit Navigator - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'quit' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def run(self, _no_object=None, _attributes={}, **_arguments): - """run: Sent to an application when it is double-clicked - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'oapp' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Netscape/Standard_Suite.py b/Mac/Lib/lib-scriptpackages/Netscape/Standard_Suite.py deleted file mode 100644 index 5bf2d18..0000000 --- a/Mac/Lib/lib-scriptpackages/Netscape/Standard_Suite.py +++ /dev/null @@ -1,241 +0,0 @@ -"""Suite Standard Suite: Common terms for most applications -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'CoRe' - -from StdSuites.Standard_Suite import * -class Standard_Suite_Events(Standard_Suite_Events): - - def close(self, _object, _attributes={}, **_arguments): - """close: Close an object - Required argument: the objects to close - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'core' - _subcode = 'clos' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def data_size(self, _object, _attributes={}, **_arguments): - """data size: Return the size in bytes of an object - Required argument: the object whose data size is to be returned - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the size of the object in bytes - """ - _code = 'core' - _subcode = 'dsiz' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def get(self, _object, _attributes={}, **_arguments): - """get: Get the data for an object - Required argument: the object whose data is to be returned - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: The data from the object - """ - _code = 'core' - _subcode = 'getd' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_set = { - 'to' : 'data', - } - - def set(self, _object, _attributes={}, **_arguments): - """set: Set an object\xd5s data - Required argument: the object to change - Keyword argument to: the new value - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'core' - _subcode = 'setd' - - aetools.keysubst(_arguments, self._argmap_set) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -class application(aetools.ComponentItem): - """application - An application program """ - want = 'capp' -class alert_application(aetools.NProperty): - """alert application - Most of the alerts will be sent to this application using yet unspecified AE interface. We need a few alert boxes: alert, confirm and notify. Any ideas on how to design this event? mailto:atotic@netscape.com. I\xd5d like to conform to the standard. """ - which = 'ALAP' - want = 'type' -class kiosk_mode(aetools.NProperty): - """kiosk mode - Kiosk mode leaves very few menus enabled """ - which = 'KOSK' - want = 'long' -# element 'cwin' as ['indx', 'name', 'ID '] - -class window(aetools.ComponentItem): - """window - A Window """ - want = 'cwin' -class bounds(aetools.NProperty): - """bounds - the boundary rectangle for the window """ - which = 'pbnd' - want = 'qdrt' -class closeable(aetools.NProperty): - """closeable - Does the window have a close box? """ - which = 'hclb' - want = 'bool' -class titled(aetools.NProperty): - """titled - Does the window have a title bar? """ - which = 'ptit' - want = 'bool' -class index(aetools.NProperty): - """index - the number of the window """ - which = 'pidx' - want = 'long' -class floating(aetools.NProperty): - """floating - Does the window float? """ - which = 'isfl' - want = 'bool' -class modal(aetools.NProperty): - """modal - Is the window modal? """ - which = 'pmod' - want = 'bool' -class resizable(aetools.NProperty): - """resizable - Is the window resizable? """ - which = 'prsz' - want = 'bool' -class zoomable(aetools.NProperty): - """zoomable - Is the window zoomable? """ - which = 'iszm' - want = 'bool' -class zoomed(aetools.NProperty): - """zoomed - Is the window zoomed? """ - which = 'pzum' - want = 'bool' -class name(aetools.NProperty): - """name - the title of the window """ - which = 'pnam' - want = 'itxt' -class visible(aetools.NProperty): - """visible - is the window visible? """ - which = 'pvis' - want = 'bool' -class position(aetools.NProperty): - """position - upper left coordinates of window """ - which = 'ppos' - want = 'QDpt' -class URL(aetools.NProperty): - """URL - Current URL """ - which = 'curl' - want = 'TEXT' -class unique_ID(aetools.NProperty): - """unique ID - Window\xd5s unique ID (a bridge between WWW! suite window id\xd5s and standard AE windows) """ - which = 'wiid' - want = 'long' -class busy(aetools.NProperty): - """busy - Is window loading something right now. 2, window is busy and will reject load requests. 1, window is busy, but will interrupt outstanding loads """ - which = 'busy' - want = 'long' -application._superclassnames = [] -application._privpropdict = { - 'alert_application' : alert_application, - 'kiosk_mode' : kiosk_mode, -} -application._privelemdict = { - 'window' : window, -} -window._superclassnames = [] -window._privpropdict = { - 'bounds' : bounds, - 'closeable' : closeable, - 'titled' : titled, - 'index' : index, - 'floating' : floating, - 'modal' : modal, - 'resizable' : resizable, - 'zoomable' : zoomable, - 'zoomed' : zoomed, - 'name' : name, - 'visible' : visible, - 'position' : position, - 'URL' : URL, - 'unique_ID' : unique_ID, - 'busy' : busy, -} -window._privelemdict = { -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'cwin' : window, - 'capp' : application, -} - -_propdeclarations = { - '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, - 'pzum' : zoomed, - 'ptit' : titled, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Netscape/Standard_URL_suite.py b/Mac/Lib/lib-scriptpackages/Netscape/Standard_URL_suite.py deleted file mode 100644 index 66d359e..0000000 --- a/Mac/Lib/lib-scriptpackages/Netscape/Standard_URL_suite.py +++ /dev/null @@ -1,60 +0,0 @@ -"""Suite Standard URL suite: Mac URL standard, supported by many apps - - -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'GURL' - -class Standard_URL_suite_Events: - - _argmap_GetURL = { - 'to' : 'dest', - 'inside' : 'HWIN', - 'from_' : 'refe', - } - - def GetURL(self, _object, _attributes={}, **_arguments): - """GetURL: Loads the URL (optionally to disk) - Required argument: The url - Keyword argument to: file the URL should be loaded into - Keyword argument inside: Window the URL should be loaded to - Keyword argument from_: Referrer, to be sent with the HTTP request - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'GURL' - _subcode = 'GURL' - - aetools.keysubst(_arguments, self._argmap_GetURL) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Netscape/Text.py b/Mac/Lib/lib-scriptpackages/Netscape/Text.py deleted file mode 100644 index 1620c8c..0000000 --- a/Mac/Lib/lib-scriptpackages/Netscape/Text.py +++ /dev/null @@ -1,122 +0,0 @@ -"""Suite Text: -Level 0, version 0 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'TEXT' - -from StdSuites.Text_Suite import * -class Text_Events(Text_Suite_Events): - - pass - - -class text(aetools.ComponentItem): - """text - independent text view objects """ - want = 'ctxt' -class updateLevel(aetools.NProperty): - """updateLevel - updating level. Can only be incremented or decremented. Do so only in a try block -- if the level is greater than zero, visual text updating will cease. """ - which = 'pUpL' - want = 'long' -class beginning(aetools.NProperty): - """beginning - Beginning of element """ - which = 'bgng' - want = 'obj ' -class end(aetools.NProperty): - """end - Ending of element """ - which = 'end ' - want = 'obj ' -class infront(aetools.NProperty): - """infront - Immediately before element """ - which = 'pBef' - want = 'obj ' -class justbehind(aetools.NProperty): - """justbehind - Immediately after element """ - which = 'pAft' - want = 'obj ' -# element 'stys' as ['indx', 'name'] - -class styleset(aetools.ComponentItem): - """styleset - A style \xd2set\xd3 that may be used repeatedly in text objects. """ - want = 'stys' -class name(aetools.NProperty): - """name - style name """ - which = 'pnam' - want = 'TEXT' -class color(aetools.NProperty): - """color - the color """ - which = 'colr' - want = 'RGB ' -class font(aetools.NProperty): - """font - font name """ - which = 'font' - want = 'TEXT' -class size(aetools.NProperty): - """size - the size in points """ - which = 'ptsz' - want = 'long' -class writing_code(aetools.NProperty): - """writing code - the script system and language """ - which = 'psct' - want = 'tsty' -class style(aetools.NProperty): - """style - the text styles or face attributes """ - which = 'txst' - want = 'tsty' - -stylesets = styleset -text._superclassnames = [] -text._privpropdict = { - 'updateLevel' : updateLevel, - 'beginning' : beginning, - 'end' : end, - 'infront' : infront, - 'justbehind' : justbehind, -} -text._privelemdict = { - 'styleset' : styleset, -} -styleset._superclassnames = [] -styleset._privpropdict = { - 'name' : name, - 'color' : color, - 'font' : font, - 'size' : size, - 'writing_code' : writing_code, - 'style' : style, -} -styleset._privelemdict = { -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'ctxt' : text, - 'stys' : styleset, -} - -_propdeclarations = { - 'pBef' : infront, - 'bgng' : beginning, - 'colr' : color, - 'txst' : style, - 'psct' : writing_code, - 'pAft' : justbehind, - 'end ' : end, - 'ptsz' : size, - 'pUpL' : updateLevel, - 'pnam' : name, - 'font' : font, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Netscape/WorldWideWeb_suite.py b/Mac/Lib/lib-scriptpackages/Netscape/WorldWideWeb_suite.py deleted file mode 100644 index c9c4fde..0000000 --- a/Mac/Lib/lib-scriptpackages/Netscape/WorldWideWeb_suite.py +++ /dev/null @@ -1,426 +0,0 @@ -"""Suite WorldWideWeb suite, as defined in Spyglass spec.: -Level 1, version 1 - -Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2 -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'WWW!' - -class WorldWideWeb_suite_Events: - - _argmap_OpenURL = { - 'to' : 'INTO', - 'toWindow' : 'WIND', - 'flags' : 'FLGS', - 'post_data' : 'POST', - 'post_type' : 'MIME', - 'progressApp' : 'PROG', - } - - def OpenURL(self, _object, _attributes={}, **_arguments): - """OpenURL: Opens a URL. Allows for more options than GetURL event - Required argument: URL - Keyword argument to: file destination - Keyword argument toWindow: window iD - Keyword argument flags: Binary: any combination of 1, 2 and 4 is allowed: 1 and 2 mean force reload the document. 4 is ignored - Keyword argument post_data: Form posting data - Keyword argument post_type: MIME type of the posting data. Defaults to application/x-www-form-urlencoded - Keyword argument progressApp: Application that will display progress - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: ID of the loading window - """ - _code = 'WWW!' - _subcode = 'OURL' - - aetools.keysubst(_arguments, self._argmap_OpenURL) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_ShowFile = { - 'MIME_type' : 'MIME', - 'Window_ID' : 'WIND', - 'URL' : 'URL ', - } - - def ShowFile(self, _object, _attributes={}, **_arguments): - """ShowFile: Similar to OpenDocuments, except that it specifies the parent URL, and MIME type of the file - Required argument: File to open - Keyword argument MIME_type: MIME type - Keyword argument Window_ID: Window to open the file in - Keyword argument URL: Use this as a base URL - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Window ID of the loaded window. 0 means ShowFile failed, FFFFFFF means that data was not appropriate type to display in the browser. - """ - _code = 'WWW!' - _subcode = 'SHWF' - - aetools.keysubst(_arguments, self._argmap_ShowFile) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_parse_anchor = { - 'relative_to' : 'RELA', - } - - def parse_anchor(self, _object, _attributes={}, **_arguments): - """parse anchor: Resolves the relative URL - Required argument: Main URL - Keyword argument relative_to: Relative URL - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: Parsed URL - """ - _code = 'WWW!' - _subcode = 'PRSA' - - aetools.keysubst(_arguments, self._argmap_parse_anchor) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_cancel_progress = { - 'in_window' : 'WIND', - } - - def cancel_progress(self, _object=None, _attributes={}, **_arguments): - """cancel progress: Interrupts the download of the document in the given window - Required argument: progress ID, obtained from the progress app - Keyword argument in_window: window ID of the progress to cancel - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'CNCL' - - aetools.keysubst(_arguments, self._argmap_cancel_progress) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def find_URL(self, _object, _attributes={}, **_arguments): - """find URL: If the file was downloaded by Netscape, you can call FindURL to find out the URL used to download the file. - Required argument: File spec - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: The URL - """ - _code = 'WWW!' - _subcode = 'FURL' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def webActivate(self, _object=None, _attributes={}, **_arguments): - """webActivate: Makes Netscape the frontmost application, and selects a given window. This event is here for suite completeness/ cross-platform compatibility only, you should use standard AppleEvents instead. - Required argument: window to bring to front - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'WWW!' - _subcode = 'ACTV' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def list_windows(self, _no_object=None, _attributes={}, **_arguments): - """list windows: Lists the IDs of all the hypertext windows - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: List of unique IDs of all the hypertext windows - """ - _code = 'WWW!' - _subcode = 'LSTW' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def get_window_info(self, _object=None, _attributes={}, **_arguments): - """get window info: Returns the information about the window as a list. Currently the list contains the window title and the URL. You can get the same information using standard Apple Event GetProperty. - Required argument: window ID - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: undocumented, typecode 'list' - """ - _code = 'WWW!' - _subcode = 'WNFO' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def register_URL_echo(self, _object=None, _attributes={}, **_arguments): - """register URL echo: Registers the \xd2echo\xd3 application. Each download from now on will be echoed to this application. - Required argument: Application signature - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _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.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def unregister_URL_echo(self, _object, _attributes={}, **_arguments): - """unregister URL echo: cancels URL echo - Required argument: application signature - 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.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_register_viewer = { - 'MIME_type' : 'MIME', - 'with_file_type' : 'FTYP', - } - - def register_viewer(self, _object, _attributes={}, **_arguments): - """register viewer: Registers an application as a \xd4special\xd5 viewer for this MIME type. The application will be launched with ViewDoc events - Required argument: Application sig - Keyword argument MIME_type: MIME type viewer is registering for - Keyword argument with_file_type: Mac file type for the downloaded files - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: TRUE if registration has been successful - """ - _code = 'WWW!' - _subcode = 'RGVW' - - aetools.keysubst(_arguments, self._argmap_register_viewer) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_unregister_viewer = { - 'MIME_type' : 'MIME', - } - - def unregister_viewer(self, _object, _attributes={}, **_arguments): - """unregister viewer: Revert to the old way of handling this MIME type - Required argument: Application sig - Keyword argument MIME_type: MIME type to be unregistered - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: TRUE if the event was successful - """ - _code = 'WWW!' - _subcode = 'UNRV' - - aetools.keysubst(_arguments, self._argmap_unregister_viewer) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_register_protocol = { - 'for_protocol' : 'PROT', - } - - def register_protocol(self, _object=None, _attributes={}, **_arguments): - """register protocol: Registers application as a \xd2handler\xd3 for this protocol with a given prefix. The handler will receive \xd2OpenURL\xd3, or if that fails, \xd2GetURL\xd3 event. - Required argument: Application sig - Keyword argument for_protocol: protocol prefix: \xd2finger:\xd3, \xd2file\xd3, - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: TRUE if registration has been successful - """ - _code = 'WWW!' - _subcode = 'RGPR' - - aetools.keysubst(_arguments, self._argmap_register_protocol) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_unregister_protocol = { - 'for_protocol' : 'PROT', - } - - def unregister_protocol(self, _object=None, _attributes={}, **_arguments): - """unregister protocol: reverses the effects of \xd2register protocol\xd3 - Required argument: Application sig. - Keyword argument for_protocol: protocol prefix. If none, unregister for all protocols - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: TRUE if successful - """ - _code = 'WWW!' - _subcode = 'UNRP' - - aetools.keysubst(_arguments, self._argmap_unregister_protocol) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_register_window_close = { - 'for_window' : 'WIND', - } - - def register_window_close(self, _object=None, _attributes={}, **_arguments): - """register window close: Netscape will notify registered application when this window closes - Required argument: Application signature - Keyword argument for_window: window ID - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: true if successful - """ - _code = 'WWW!' - _subcode = 'RGWC' - - aetools.keysubst(_arguments, self._argmap_register_window_close) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_unregister_window_close = { - 'for_window' : 'WIND', - } - - def unregister_window_close(self, _object=None, _attributes={}, **_arguments): - """unregister window close: Undo for register window close - Required argument: Application signature - Keyword argument for_window: window ID - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: true if successful - """ - _code = 'WWW!' - _subcode = 'UNRC' - - aetools.keysubst(_arguments, self._argmap_unregister_window_close) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Netscape/__init__.py b/Mac/Lib/lib-scriptpackages/Netscape/__init__.py deleted file mode 100644 index 40cca88..0000000 --- a/Mac/Lib/lib-scriptpackages/Netscape/__init__.py +++ /dev/null @@ -1,101 +0,0 @@ -""" -Package generated from /Volumes/Sap/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 -import WorldWideWeb_suite -import Mozilla_suite -import PowerPlant -import Text - - -_code_to_module = { - 'reqd' : Required_suite, - 'CoRe' : Standard_Suite, - 'GURL' : Standard_URL_suite, - 'WWW!' : WorldWideWeb_suite, - 'MOSS' : Mozilla_suite, - 'ppnt' : PowerPlant, - 'TEXT' : Text, -} - - - -_code_to_fullname = { - 'reqd' : ('Netscape.Required_suite', 'Required_suite'), - 'CoRe' : ('Netscape.Standard_Suite', 'Standard_Suite'), - 'GURL' : ('Netscape.Standard_URL_suite', 'Standard_URL_suite'), - 'WWW!' : ('Netscape.WorldWideWeb_suite', 'WorldWideWeb_suite'), - 'MOSS' : ('Netscape.Mozilla_suite', 'Mozilla_suite'), - 'ppnt' : ('Netscape.PowerPlant', 'PowerPlant'), - 'TEXT' : ('Netscape.Text', 'Text'), -} - -from Required_suite import * -from Standard_Suite import * -from Standard_URL_suite import * -from WorldWideWeb_suite import * -from Mozilla_suite import * -from PowerPlant import * -from Text import * -def getbaseclasses(v): - if hasattr(v, '_superclassnames') and not hasattr(v, '_propdict'): - v._propdict = {} - v._elemdict = {} - for superclass in v._superclassnames: - v._propdict.update(getattr(eval(superclass), '_privpropdict', {})) - v._elemdict.update(getattr(eval(superclass), '_privelemdict', {})) - v._propdict.update(v._privpropdict) - v._elemdict.update(v._privelemdict) - -import StdSuites - -# -# Set property and element dictionaries now that all classes have been defined -# -getbaseclasses(window) -getbaseclasses(application) -getbaseclasses(text) -getbaseclasses(styleset) -getbaseclasses(StdSuites.Text_Suite.paragraph) -getbaseclasses(StdSuites.Text_Suite.character) -getbaseclasses(StdSuites.Text_Suite.text_style_info) -getbaseclasses(StdSuites.Text_Suite.word) -getbaseclasses(StdSuites.Text_Suite.text_flow) -getbaseclasses(StdSuites.Text_Suite.line) -getbaseclasses(StdSuites.Text_Suite.text) - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'cwin' : window, - 'capp' : application, - 'ctxt' : text, - 'stys' : styleset, - 'cpar' : StdSuites.Text_Suite.paragraph, - 'cha ' : StdSuites.Text_Suite.character, - 'tsty' : StdSuites.Text_Suite.text_style_info, - 'cwor' : StdSuites.Text_Suite.word, - 'cflo' : StdSuites.Text_Suite.text_flow, - 'clin' : StdSuites.Text_Suite.line, - 'ctxt' : StdSuites.Text_Suite.text, -} - - -class Netscape(Required_suite_Events, - Standard_Suite_Events, - Standard_URL_suite_Events, - WorldWideWeb_suite_Events, - Mozilla_suite_Events, - PowerPlant_Events, - Text_Events, - aetools.TalkTo): - _signature = 'MOSS' - - _moduleName = 'Netscape' - diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/AppleScript_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/AppleScript_Suite.py deleted file mode 100644 index 51d4212..0000000 --- a/Mac/Lib/lib-scriptpackages/StdSuites/AppleScript_Suite.py +++ /dev/null @@ -1,2182 +0,0 @@ -"""Suite AppleScript Suite: Standard terms for AppleScript -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Extensions/AppleScript -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'ascr' - -class AppleScript_Suite_Events: - - def activate(self, _no_object=None, _attributes={}, **_arguments): - """activate: Bring the targeted application program to the front - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'misc' - _subcode = 'actv' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def log(self, _object, _attributes={}, **_arguments): - """log: Cause a comment to be logged - Required argument: undocumented, typecode 'TEXT' - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'ascr' - _subcode = 'cmnt' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def stop_log(self, _no_object=None, _attributes={}, **_arguments): - """stop log: Stop event logging in the script editor - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'ToyS' - _subcode = 'log0' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def start_log(self, _no_object=None, _attributes={}, **_arguments): - """start log: Start event logging in the script editor - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'ToyS' - _subcode = 'log1' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def idle(self, _no_object=None, _attributes={}, **_arguments): - """idle: Sent to a script application when it is idle - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the number of seconds to wait for next idle event - """ - _code = 'misc' - _subcode = 'idle' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def launch(self, _no_object=None, _attributes={}, **_arguments): - """launch: Start an application for scripting - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'ascr' - _subcode = 'noop' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def tell(self, _no_object=None, _attributes={}, **_arguments): - """tell: Record or log a \xd4tell\xd5 statement - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'ascr' - _subcode = 'tell' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def end_tell(self, _no_object=None, _attributes={}, **_arguments): - """end tell: Record or log an \xd4end tell\xd5 statement - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'ascr' - _subcode = 'tend' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_error = { - 'number' : 'errn', - 'partial_result' : 'ptlr', - 'from_' : 'erob', - 'to' : 'errt', - } - - def error(self, _object=None, _attributes={}, **_arguments): - """error: Raise an error - Required argument: anything - Keyword argument number: an error number - Keyword argument partial_result: any partial result occurring before the error - Keyword argument from_: the object that caused the error - Keyword argument to: the desired class for a failed coercion - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'ascr' - _subcode = 'err ' - - aetools.keysubst(_arguments, self._argmap_error) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_Call_a5_subroutine = { - 'at' : 'at ', - 'from_' : 'from', - 'for_' : 'for ', - 'to' : 'to ', - 'thru' : 'thru', - 'through' : 'thgh', - 'by' : 'by ', - 'on' : 'on ', - 'into' : 'into', - 'onto' : 'onto', - 'between' : 'btwn', - 'against' : 'agst', - 'out_of' : 'outo', - 'instead_of' : 'isto', - 'aside_from' : 'asdf', - 'around' : 'arnd', - 'beside' : 'bsid', - 'beneath' : 'bnth', - 'under' : 'undr', - 'over' : 'over', - 'above' : 'abve', - 'below' : 'belw', - 'apart_from' : 'aprt', - 'about' : 'abou', - 'since' : 'snce', - 'given' : 'givn', - 'with' : 'with', - 'without' : 'wout', - } - - def Call_a5_subroutine(self, _object=None, _attributes={}, **_arguments): - """Call\xa5subroutine: A subroutine call - Required argument: anything - Keyword argument at: a preposition - Keyword argument from_: a preposition - Keyword argument for_: a preposition - Keyword argument to: a preposition - Keyword argument thru: a preposition - Keyword argument through: a preposition - Keyword argument by: a preposition - Keyword argument on: a preposition - Keyword argument into: a preposition - Keyword argument onto: a preposition - Keyword argument between: a preposition - Keyword argument against: a preposition - Keyword argument out_of: a preposition - Keyword argument instead_of: a preposition - Keyword argument aside_from: a preposition - Keyword argument around: a preposition - Keyword argument beside: a preposition - Keyword argument beneath: a preposition - Keyword argument under: a preposition - Keyword argument over: a preposition - Keyword argument above: a preposition - Keyword argument below: a preposition - Keyword argument apart_from: a preposition - Keyword argument about: a preposition - Keyword argument since: a preposition - Keyword argument given: parameter:value pairs, comma-separated - Keyword argument with: formal parameter set to true if matching actual parameter is provided - Keyword argument without: formal parameter set to false if matching actual parmeter is provided - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'psbr' - - aetools.keysubst(_arguments, self._argmap_Call_a5_subroutine) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _3d_(self, _object, _attributes={}, **_arguments): - """=: Equality - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = '= ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _ad_(self, _object, _attributes={}, **_arguments): - """\xad: Inequality - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = '\xad ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _2b_(self, _object, _attributes={}, **_arguments): - """+: Addition - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = '+ ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _2d_(self, _object, _attributes={}, **_arguments): - """-: Subtraction - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = '- ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _2a_(self, _object, _attributes={}, **_arguments): - """*: Multiplication - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = '* ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _d6_(self, _object, _attributes={}, **_arguments): - """\xd6: Division - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = '/ ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def div(self, _object, _attributes={}, **_arguments): - """div: Quotient - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'div ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def mod(self, _object, _attributes={}, **_arguments): - """mod: Remainder - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'mod ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _5e_(self, _object, _attributes={}, **_arguments): - """^: Exponentiation - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = '^ ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _3e_(self, _object, _attributes={}, **_arguments): - """>: Greater than - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = '> ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _b3_(self, _object, _attributes={}, **_arguments): - """\xb3: Greater than or equal to - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = '>= ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _3c_(self, _object, _attributes={}, **_arguments): - """<: Less than - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = '< ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _b2_(self, _object, _attributes={}, **_arguments): - """\xb2: Less than or equal to - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = '<= ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _26_(self, _object, _attributes={}, **_arguments): - """&: Concatenation - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'ccat' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def starts_with(self, _object, _attributes={}, **_arguments): - """starts with: Starts with - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'bgwt' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def ends_with(self, _object, _attributes={}, **_arguments): - """ends with: Ends with - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'ends' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def contains(self, _object, _attributes={}, **_arguments): - """contains: Containment - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'cont' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def and_(self, _object, _attributes={}, **_arguments): - """and: Logical conjunction - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'AND ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def or_(self, _object, _attributes={}, **_arguments): - """or: Logical disjunction - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'OR ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def as(self, _object, _attributes={}, **_arguments): - """as: Coercion - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'coer' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def not_(self, _object, _attributes={}, **_arguments): - """not: Logical negation - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'NOT ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def negate(self, _object, _attributes={}, **_arguments): - """negate: Numeric negation - Required argument: an AE object reference - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: anything - """ - _code = 'ascr' - _subcode = 'neg ' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -class boolean(aetools.ComponentItem): - """boolean - A true or false value """ - want = 'bool' - -booleans = boolean - -class integer(aetools.ComponentItem): - """integer - An integral number """ - want = 'long' - -integers = integer - -class real(aetools.ComponentItem): - """real - A real number """ - want = 'doub' - -reals = real - -class number(aetools.ComponentItem): - """number - an integer or real number """ - want = 'nmbr' - -numbers = number - -class list(aetools.ComponentItem): - """list - An ordered collection of items """ - want = 'list' -class length(aetools.NProperty): - """length - the length of a list """ - which = 'leng' - want = 'long' -class reverse(aetools.NProperty): - """reverse - the items of the list in reverse order """ - which = 'rvse' - want = 'list' -class rest(aetools.NProperty): - """rest - all items of the list excluding first """ - which = 'rest' - want = 'list' - -lists = list - -class linked_list(aetools.ComponentItem): - """linked list - An ordered collection of items """ - want = 'llst' - -linked_lists = linked_list - -class vector(aetools.ComponentItem): - """vector - An ordered collection of items """ - want = 'vect' - -vectors = vector - -class record(aetools.ComponentItem): - """record - A set of labeled items """ - want = 'reco' - -records = record - -class item(aetools.ComponentItem): - """item - An item of any type """ - want = 'cobj' -class id(aetools.NProperty): - """id - the unique ID number of this object """ - which = 'ID ' - want = 'long' - -items = item - -class script(aetools.ComponentItem): - """script - An AppleScript script """ - want = 'scpt' -class name(aetools.NProperty): - """name - the name of the script """ - which = 'pnam' - want = 'TEXT' -class parent(aetools.NProperty): - """parent - its parent, i.e. the script that will handle events that this script doesn\xd5t """ - which = 'pare' - want = 'scpt' - -scripts = script - -class list_or_record(aetools.ComponentItem): - """list or record - a list or record """ - want = 'lr ' - -class list_or_string(aetools.ComponentItem): - """list or string - a list or string """ - want = 'ls ' - -class number_or_string(aetools.ComponentItem): - """number or string - a number or string """ - want = 'ns ' - -class alias_or_string(aetools.ComponentItem): - """alias or string - an alias or string """ - want = 'sf ' - -class list_2c__record_or_text(aetools.ComponentItem): - """list, record or text - a list, record or text """ - want = 'lrs ' - -class number_or_date(aetools.ComponentItem): - """number or date - a number or date """ - want = 'nd ' - -class number_2c__date_or_text(aetools.ComponentItem): - """number, date or text - a number, date or text """ - want = 'nds ' - -class class_(aetools.ComponentItem): - """class - the type of a value """ - want = 'pcls' -class _3c_Inheritance_3e_(aetools.NProperty): - """<Inheritance> - inherits some of its properties from this class """ - which = 'c@#^' - want = 'type' - -classes = class_ - -class event(aetools.ComponentItem): - """event - an AppleEvents event """ - want = 'evnt' - -events = event - -class property(aetools.ComponentItem): - """property - an AppleEvents property """ - want = 'prop' - -properties = property - -class constant(aetools.ComponentItem): - """constant - A constant value """ - want = 'enum' - -constants = constant - -class preposition(aetools.ComponentItem): - """preposition - an AppleEvents preposition """ - want = 'prep' - -prepositions = preposition - -class reference_form(aetools.ComponentItem): - """reference form - an AppleEvents key form """ - want = 'kfrm' - -reference_forms = reference_form - -class handler(aetools.ComponentItem): - """handler - an AppleScript event or subroutine handler """ - want = 'hand' - -handlers = handler - -class data(aetools.ComponentItem): - """data - an AppleScript raw data object """ - want = 'rdat' - -class text(aetools.ComponentItem): - """text - text with language and style information """ - want = 'ctxt' - -class international_text(aetools.ComponentItem): - """international text - """ - want = 'itxt' - -international_text = international_text - -class string(aetools.ComponentItem): - """string - text in 8-bit Macintosh Roman format """ - want = 'TEXT' - -strings = string - -class styled_text(aetools.ComponentItem): - """styled text - """ - want = 'STXT' - -styled_text = styled_text - -class styled_Clipboard_text(aetools.ComponentItem): - """styled Clipboard text - """ - want = 'styl' - -styled_Clipboard_text = styled_Clipboard_text - -class Unicode_text(aetools.ComponentItem): - """Unicode text - """ - want = 'utxt' - -Unicode_text = Unicode_text - -class styled_Unicode_text(aetools.ComponentItem): - """styled Unicode text - """ - want = 'sutx' - -styled_Unicode_text = styled_Unicode_text - -class encoded_string(aetools.ComponentItem): - """encoded string - text encoded using the Text Encoding Converter """ - want = 'encs' - -encoded_strings = encoded_string - -class C_string(aetools.ComponentItem): - """C string - text followed by a null """ - want = 'cstr' - -C_strings = C_string - -class Pascal_string(aetools.ComponentItem): - """Pascal string - text up to 255 characters preceded by a length byte """ - want = 'pstr' - -Pascal_strings = Pascal_string - -class character(aetools.ComponentItem): - """character - an individual text character """ - want = 'cha ' - -characters = character - -class text_item(aetools.ComponentItem): - """text item - text between delimiters """ - want = 'citm' - -text_items = text_item - -class writing_code(aetools.ComponentItem): - """writing code - codes that identify the language and script system """ - want = 'psct' - -class writing_code_info(aetools.ComponentItem): - """writing code info - script code and language code of text run """ - want = 'citl' -class script_code(aetools.NProperty): - """script code - the script code for the text """ - which = 'pscd' - want = 'shor' -class language_code(aetools.NProperty): - """language code - the language code for the text """ - which = 'plcd' - want = 'shor' - -writing_code_infos = writing_code_info - -class empty_ae_name_(aetools.ComponentItem): - """ - the undefined value """ - want = 'undf' - -class missing_value(aetools.ComponentItem): - """missing value - unavailable value, such as properties missing from heterogeneous classes in a Whose clause """ - want = 'msng' - -missing_values = missing_value - -class reference(aetools.ComponentItem): - """reference - an AppleScript reference """ - want = 'obj ' - -references = reference - -class anything(aetools.ComponentItem): - """anything - any class or reference """ - want = '****' - -class type_class(aetools.ComponentItem): - """type class - the name of a particular class (or any four-character code) """ - want = 'type' - -class RGB_color(aetools.ComponentItem): - """RGB color - Three integers specifying red, green, blue color values """ - want = 'cRGB' - -RGB_colors = RGB_color - -class picture(aetools.ComponentItem): - """picture - A QuickDraw picture object """ - want = 'PICT' - -pictures = picture - -class sound(aetools.ComponentItem): - """sound - a sound object on the clipboard """ - want = 'snd ' - -sounds = sound - -class version(aetools.ComponentItem): - """version - a version value """ - want = 'vers' - -class file_specification(aetools.ComponentItem): - """file specification - a file specification as used by the operating system """ - want = 'fss ' - -file_specifications = file_specification - -class alias(aetools.ComponentItem): - """alias - a file on a disk or server. The file must exist when you check the syntax of your script. """ - want = 'alis' - -aliases = alias - -class machine(aetools.ComponentItem): - """machine - a computer """ - want = 'mach' - -machines = machine - -class zone(aetools.ComponentItem): - """zone - an AppleTalk zone """ - want = 'zone' - -zones = zone - -class keystroke(aetools.ComponentItem): - """keystroke - a press of a key combination on a Macintosh keyboard """ - want = 'kprs' -class key(aetools.NProperty): - """key - the character for the key was pressed (ignoring modifiers) """ - which = 'kMsg' - want = 'cha ' -class modifiers(aetools.NProperty): - """modifiers - the modifier keys pressed in combination """ - which = 'kMod' - want = 'eMds' -class key_kind(aetools.NProperty): - """key kind - the kind of key that was pressed """ - which = 'kknd' - want = 'ekst' - -keystrokes = keystroke - -class seconds(aetools.ComponentItem): - """seconds - more than one second """ - want = 'scnd' - -class date(aetools.ComponentItem): - """date - Absolute date and time values """ - want = 'ldt ' -class weekday(aetools.NProperty): - """weekday - the day of a week of a date """ - which = 'wkdy' - want = 'wkdy' -class month(aetools.NProperty): - """month - the month of a date """ - which = 'mnth' - want = 'mnth' -class day(aetools.NProperty): - """day - the day of the month of a date """ - which = 'day ' - want = 'long' -class year(aetools.NProperty): - """year - the year of a date """ - which = 'year' - want = 'long' -class time(aetools.NProperty): - """time - the time since midnight of a date """ - which = 'time' - want = 'long' -class date_string(aetools.NProperty): - """date string - the date portion of a date-time value as text """ - which = 'dstr' - want = 'TEXT' -class time_string(aetools.NProperty): - """time string - the time portion of a date-time value as text """ - which = 'tstr' - want = 'TEXT' - -dates = date - -class month(aetools.ComponentItem): - """month - a month """ - want = 'mnth' - -months = month - -class January(aetools.ComponentItem): - """January - the month of January """ - want = 'jan ' - -class February(aetools.ComponentItem): - """February - the month of February """ - want = 'feb ' - -class March(aetools.ComponentItem): - """March - the month of March """ - want = 'mar ' - -class April(aetools.ComponentItem): - """April - the month of April """ - want = 'apr ' - -class May(aetools.ComponentItem): - """May - the month of May """ - want = 'may ' - -class June(aetools.ComponentItem): - """June - the month of June """ - want = 'jun ' - -class July(aetools.ComponentItem): - """July - the month of July """ - want = 'jul ' - -class August(aetools.ComponentItem): - """August - the month of August """ - want = 'aug ' - -class September(aetools.ComponentItem): - """September - the month of September """ - want = 'sep ' - -class October(aetools.ComponentItem): - """October - the month of October """ - want = 'oct ' - -class November(aetools.ComponentItem): - """November - the month of November """ - want = 'nov ' - -class December(aetools.ComponentItem): - """December - the month of December """ - want = 'dec ' - -class weekday(aetools.ComponentItem): - """weekday - a weekday """ - want = 'wkdy' - -weekdays = weekday - -class Sunday(aetools.ComponentItem): - """Sunday - Sunday """ - want = 'sun ' - -class Monday(aetools.ComponentItem): - """Monday - Monday """ - want = 'mon ' - -class Tuesday(aetools.ComponentItem): - """Tuesday - Tuesday """ - want = 'tue ' - -class Wednesday(aetools.ComponentItem): - """Wednesday - Wednesday """ - want = 'wed ' - -class Thursday(aetools.ComponentItem): - """Thursday - Thursday """ - want = 'thu ' - -class Friday(aetools.ComponentItem): - """Friday - Friday """ - want = 'fri ' - -class Saturday(aetools.ComponentItem): - """Saturday - Saturday """ - want = 'sat ' - -class metres(aetools.ComponentItem): - """metres - a distance measurement in SI meters """ - want = 'metr' - -meters = metres - -class inches(aetools.ComponentItem): - """inches - a distance measurement in Imperial inches """ - want = 'inch' - -class feet(aetools.ComponentItem): - """feet - a distance measurement in Imperial feet """ - want = 'feet' - -class yards(aetools.ComponentItem): - """yards - a distance measurement in Imperial yards """ - want = 'yard' - -class miles(aetools.ComponentItem): - """miles - a distance measurement in Imperial miles """ - want = 'mile' - -class kilometres(aetools.ComponentItem): - """kilometres - a distance measurement in SI kilometers """ - want = 'kmtr' - -kilometers = kilometres - -class centimetres(aetools.ComponentItem): - """centimetres - a distance measurement in SI centimeters """ - want = 'cmtr' - -centimeters = centimetres - -class square_metres(aetools.ComponentItem): - """square metres - an area measurement in SI square meters """ - want = 'sqrm' - -square_meters = square_metres - -class square_feet(aetools.ComponentItem): - """square feet - an area measurement in Imperial square feet """ - want = 'sqft' - -class square_yards(aetools.ComponentItem): - """square yards - an area measurement in Imperial square yards """ - want = 'sqyd' - -class square_miles(aetools.ComponentItem): - """square miles - an area measurement in Imperial square miles """ - want = 'sqmi' - -class square_kilometres(aetools.ComponentItem): - """square kilometres - an area measurement in SI square kilometers """ - want = 'sqkm' - -square_kilometers = square_kilometres - -class litres(aetools.ComponentItem): - """litres - a volume measurement in SI liters """ - want = 'litr' - -liters = litres - -class gallons(aetools.ComponentItem): - """gallons - a volume measurement in Imperial gallons """ - want = 'galn' - -class quarts(aetools.ComponentItem): - """quarts - a volume measurement in Imperial quarts """ - want = 'qrts' - -class cubic_metres(aetools.ComponentItem): - """cubic metres - a volume measurement in SI cubic meters """ - want = 'cmet' - -cubic_meters = cubic_metres - -class cubic_centimetres(aetools.ComponentItem): - """cubic centimetres - a volume measurement in SI cubic centimeters """ - want = 'ccmt' - -cubic_centimeters = cubic_centimetres - -class cubic_feet(aetools.ComponentItem): - """cubic feet - a volume measurement in Imperial cubic feet """ - want = 'cfet' - -class cubic_inches(aetools.ComponentItem): - """cubic inches - a volume measurement in Imperial cubic inches """ - want = 'cuin' - -class cubic_yards(aetools.ComponentItem): - """cubic yards - a distance measurement in Imperial cubic yards """ - want = 'cyrd' - -class kilograms(aetools.ComponentItem): - """kilograms - a mass measurement in SI kilograms """ - want = 'kgrm' - -class grams(aetools.ComponentItem): - """grams - a mass measurement in SI meters """ - want = 'gram' - -class ounces(aetools.ComponentItem): - """ounces - a weight measurement in SI meters """ - want = 'ozs ' - -class pounds(aetools.ComponentItem): - """pounds - a weight measurement in SI meters """ - want = 'lbs ' - -class degrees_Celsius(aetools.ComponentItem): - """degrees Celsius - a temperature measurement in SI degrees Celsius """ - want = 'degc' - -class degrees_Fahrenheit(aetools.ComponentItem): - """degrees Fahrenheit - a temperature measurement in degrees Fahrenheit """ - want = 'degf' - -class degrees_Kelvin(aetools.ComponentItem): - """degrees Kelvin - a temperature measurement in degrees Kelvin """ - want = 'degk' - -class upper_case(aetools.ComponentItem): - """upper case - Text with lower case converted to upper case """ - want = 'case' - -class app(aetools.ComponentItem): - """app - Short name for application """ - want = 'capp' - -application = app -class result(aetools.NProperty): - """result - the last result of evaluation """ - which = 'rslt' - want = '****' -class space(aetools.NProperty): - """space - a space character """ - which = 'spac' - want = 'cha ' -class return_(aetools.NProperty): - """return - a return character """ - which = 'ret ' - want = 'cha ' -class tab(aetools.NProperty): - """tab - a tab character """ - which = 'tab ' - want = 'cha ' -class minutes(aetools.NProperty): - """minutes - the number of seconds in a minute """ - which = 'min ' - want = 'long' -class hours(aetools.NProperty): - """hours - the number of seconds in an hour """ - which = 'hour' - want = 'long' -class days(aetools.NProperty): - """days - the number of seconds in a day """ - which = 'days' - want = 'long' -class weeks(aetools.NProperty): - """weeks - the number of seconds in a week """ - which = 'week' - want = 'long' -class pi(aetools.NProperty): - """pi - the constant pi """ - which = 'pi ' - want = 'doub' -class print_length(aetools.NProperty): - """print length - the maximum length to print """ - which = 'prln' - want = 'long' -class print_depth(aetools.NProperty): - """print depth - the maximum depth to print """ - which = 'prdp' - want = 'long' -class text_item_delimiters(aetools.NProperty): - """text item delimiters - the text item delimiters of a string """ - which = 'txdl' - want = 'list' -class AppleScript(aetools.NProperty): - """AppleScript - the top-level script object """ - which = 'ascr' - want = 'scpt' - -applications = app -boolean._superclassnames = [] -boolean._privpropdict = { -} -boolean._privelemdict = { -} -integer._superclassnames = [] -integer._privpropdict = { -} -integer._privelemdict = { -} -real._superclassnames = [] -real._privpropdict = { -} -real._privelemdict = { -} -number._superclassnames = [] -number._privpropdict = { -} -number._privelemdict = { -} -list._superclassnames = [] -list._privpropdict = { - 'length' : length, - 'reverse' : reverse, - 'rest' : rest, -} -list._privelemdict = { -} -linked_list._superclassnames = [] -linked_list._privpropdict = { - 'length' : length, -} -linked_list._privelemdict = { -} -vector._superclassnames = [] -vector._privpropdict = { - 'length' : length, -} -vector._privelemdict = { -} -record._superclassnames = [] -record._privpropdict = { -} -record._privelemdict = { -} -item._superclassnames = [] -item._privpropdict = { - 'id' : id, -} -item._privelemdict = { -} -script._superclassnames = [] -script._privpropdict = { - 'name' : name, - 'parent' : parent, -} -script._privelemdict = { -} -list_or_record._superclassnames = [] -list_or_record._privpropdict = { -} -list_or_record._privelemdict = { -} -list_or_string._superclassnames = [] -list_or_string._privpropdict = { -} -list_or_string._privelemdict = { -} -number_or_string._superclassnames = [] -number_or_string._privpropdict = { -} -number_or_string._privelemdict = { -} -alias_or_string._superclassnames = [] -alias_or_string._privpropdict = { -} -alias_or_string._privelemdict = { -} -list_2c__record_or_text._superclassnames = [] -list_2c__record_or_text._privpropdict = { -} -list_2c__record_or_text._privelemdict = { -} -number_or_date._superclassnames = [] -number_or_date._privpropdict = { -} -number_or_date._privelemdict = { -} -number_2c__date_or_text._superclassnames = [] -number_2c__date_or_text._privpropdict = { -} -number_2c__date_or_text._privelemdict = { -} -class_._superclassnames = ['type_class'] -class_._privpropdict = { - '_3c_Inheritance_3e_' : _3c_Inheritance_3e_, -} -class_._privelemdict = { -} -event._superclassnames = [] -event._privpropdict = { -} -event._privelemdict = { -} -property._superclassnames = [] -property._privpropdict = { -} -property._privelemdict = { -} -constant._superclassnames = [] -constant._privpropdict = { -} -constant._privelemdict = { -} -preposition._superclassnames = [] -preposition._privpropdict = { -} -preposition._privelemdict = { -} -reference_form._superclassnames = [] -reference_form._privpropdict = { -} -reference_form._privelemdict = { -} -handler._superclassnames = [] -handler._privpropdict = { -} -handler._privelemdict = { -} -data._superclassnames = [] -data._privpropdict = { -} -data._privelemdict = { -} -text._superclassnames = [] -text._privpropdict = { -} -text._privelemdict = { -} -international_text._superclassnames = [] -international_text._privpropdict = { -} -international_text._privelemdict = { -} -international_text._superclassnames = [] -international_text._privpropdict = { -} -international_text._privelemdict = { -} -string._superclassnames = [] -string._privpropdict = { -} -string._privelemdict = { -} -styled_text._superclassnames = [] -styled_text._privpropdict = { -} -styled_text._privelemdict = { -} -styled_text._superclassnames = [] -styled_text._privpropdict = { -} -styled_text._privelemdict = { -} -styled_Clipboard_text._superclassnames = [] -styled_Clipboard_text._privpropdict = { -} -styled_Clipboard_text._privelemdict = { -} -styled_Clipboard_text._superclassnames = [] -styled_Clipboard_text._privpropdict = { -} -styled_Clipboard_text._privelemdict = { -} -Unicode_text._superclassnames = [] -Unicode_text._privpropdict = { -} -Unicode_text._privelemdict = { -} -Unicode_text._superclassnames = [] -Unicode_text._privpropdict = { -} -Unicode_text._privelemdict = { -} -styled_Unicode_text._superclassnames = [] -styled_Unicode_text._privpropdict = { -} -styled_Unicode_text._privelemdict = { -} -styled_Unicode_text._superclassnames = [] -styled_Unicode_text._privpropdict = { -} -styled_Unicode_text._privelemdict = { -} -encoded_string._superclassnames = [] -encoded_string._privpropdict = { -} -encoded_string._privelemdict = { -} -C_string._superclassnames = [] -C_string._privpropdict = { -} -C_string._privelemdict = { -} -Pascal_string._superclassnames = [] -Pascal_string._privpropdict = { -} -Pascal_string._privelemdict = { -} -character._superclassnames = [] -character._privpropdict = { -} -character._privelemdict = { -} -text_item._superclassnames = [] -text_item._privpropdict = { -} -text_item._privelemdict = { -} -writing_code._superclassnames = [] -writing_code._privpropdict = { -} -writing_code._privelemdict = { -} -writing_code_info._superclassnames = [] -writing_code_info._privpropdict = { - 'script_code' : script_code, - 'language_code' : language_code, -} -writing_code_info._privelemdict = { -} -empty_ae_name_._superclassnames = [] -empty_ae_name_._privpropdict = { -} -empty_ae_name_._privelemdict = { -} -missing_value._superclassnames = [] -missing_value._privpropdict = { -} -missing_value._privelemdict = { -} -reference._superclassnames = [] -reference._privpropdict = { -} -reference._privelemdict = { -} -anything._superclassnames = [] -anything._privpropdict = { -} -anything._privelemdict = { -} -type_class._superclassnames = [] -type_class._privpropdict = { -} -type_class._privelemdict = { -} -RGB_color._superclassnames = [] -RGB_color._privpropdict = { -} -RGB_color._privelemdict = { -} -picture._superclassnames = [] -picture._privpropdict = { -} -picture._privelemdict = { -} -sound._superclassnames = [] -sound._privpropdict = { -} -sound._privelemdict = { -} -version._superclassnames = [] -version._privpropdict = { -} -version._privelemdict = { -} -file_specification._superclassnames = [] -file_specification._privpropdict = { -} -file_specification._privelemdict = { -} -alias._superclassnames = [] -alias._privpropdict = { -} -alias._privelemdict = { -} -machine._superclassnames = [] -machine._privpropdict = { -} -machine._privelemdict = { -} -zone._superclassnames = [] -zone._privpropdict = { -} -zone._privelemdict = { -} -keystroke._superclassnames = [] -keystroke._privpropdict = { - 'key' : key, - 'modifiers' : modifiers, - 'key_kind' : key_kind, -} -keystroke._privelemdict = { -} -seconds._superclassnames = [] -seconds._privpropdict = { -} -seconds._privelemdict = { -} -date._superclassnames = [] -date._privpropdict = { - 'weekday' : weekday, - 'month' : month, - 'day' : day, - 'year' : year, - 'time' : time, - 'date_string' : date_string, - 'time_string' : time_string, -} -date._privelemdict = { -} -month._superclassnames = [] -month._privpropdict = { -} -month._privelemdict = { -} -January._superclassnames = [] -January._privpropdict = { -} -January._privelemdict = { -} -February._superclassnames = [] -February._privpropdict = { -} -February._privelemdict = { -} -March._superclassnames = [] -March._privpropdict = { -} -March._privelemdict = { -} -April._superclassnames = [] -April._privpropdict = { -} -April._privelemdict = { -} -May._superclassnames = [] -May._privpropdict = { -} -May._privelemdict = { -} -June._superclassnames = [] -June._privpropdict = { -} -June._privelemdict = { -} -July._superclassnames = [] -July._privpropdict = { -} -July._privelemdict = { -} -August._superclassnames = [] -August._privpropdict = { -} -August._privelemdict = { -} -September._superclassnames = [] -September._privpropdict = { -} -September._privelemdict = { -} -October._superclassnames = [] -October._privpropdict = { -} -October._privelemdict = { -} -November._superclassnames = [] -November._privpropdict = { -} -November._privelemdict = { -} -December._superclassnames = [] -December._privpropdict = { -} -December._privelemdict = { -} -weekday._superclassnames = [] -weekday._privpropdict = { -} -weekday._privelemdict = { -} -Sunday._superclassnames = [] -Sunday._privpropdict = { -} -Sunday._privelemdict = { -} -Monday._superclassnames = [] -Monday._privpropdict = { -} -Monday._privelemdict = { -} -Tuesday._superclassnames = [] -Tuesday._privpropdict = { -} -Tuesday._privelemdict = { -} -Wednesday._superclassnames = [] -Wednesday._privpropdict = { -} -Wednesday._privelemdict = { -} -Thursday._superclassnames = [] -Thursday._privpropdict = { -} -Thursday._privelemdict = { -} -Friday._superclassnames = [] -Friday._privpropdict = { -} -Friday._privelemdict = { -} -Saturday._superclassnames = [] -Saturday._privpropdict = { -} -Saturday._privelemdict = { -} -metres._superclassnames = [] -metres._privpropdict = { -} -metres._privelemdict = { -} -inches._superclassnames = [] -inches._privpropdict = { -} -inches._privelemdict = { -} -feet._superclassnames = [] -feet._privpropdict = { -} -feet._privelemdict = { -} -yards._superclassnames = [] -yards._privpropdict = { -} -yards._privelemdict = { -} -miles._superclassnames = [] -miles._privpropdict = { -} -miles._privelemdict = { -} -kilometres._superclassnames = [] -kilometres._privpropdict = { -} -kilometres._privelemdict = { -} -centimetres._superclassnames = [] -centimetres._privpropdict = { -} -centimetres._privelemdict = { -} -square_metres._superclassnames = [] -square_metres._privpropdict = { -} -square_metres._privelemdict = { -} -square_feet._superclassnames = [] -square_feet._privpropdict = { -} -square_feet._privelemdict = { -} -square_yards._superclassnames = [] -square_yards._privpropdict = { -} -square_yards._privelemdict = { -} -square_miles._superclassnames = [] -square_miles._privpropdict = { -} -square_miles._privelemdict = { -} -square_kilometres._superclassnames = [] -square_kilometres._privpropdict = { -} -square_kilometres._privelemdict = { -} -litres._superclassnames = [] -litres._privpropdict = { -} -litres._privelemdict = { -} -gallons._superclassnames = [] -gallons._privpropdict = { -} -gallons._privelemdict = { -} -quarts._superclassnames = [] -quarts._privpropdict = { -} -quarts._privelemdict = { -} -cubic_metres._superclassnames = [] -cubic_metres._privpropdict = { -} -cubic_metres._privelemdict = { -} -cubic_centimetres._superclassnames = [] -cubic_centimetres._privpropdict = { -} -cubic_centimetres._privelemdict = { -} -cubic_feet._superclassnames = [] -cubic_feet._privpropdict = { -} -cubic_feet._privelemdict = { -} -cubic_inches._superclassnames = [] -cubic_inches._privpropdict = { -} -cubic_inches._privelemdict = { -} -cubic_yards._superclassnames = [] -cubic_yards._privpropdict = { -} -cubic_yards._privelemdict = { -} -kilograms._superclassnames = [] -kilograms._privpropdict = { -} -kilograms._privelemdict = { -} -grams._superclassnames = [] -grams._privpropdict = { -} -grams._privelemdict = { -} -ounces._superclassnames = [] -ounces._privpropdict = { -} -ounces._privelemdict = { -} -pounds._superclassnames = [] -pounds._privpropdict = { -} -pounds._privelemdict = { -} -degrees_Celsius._superclassnames = [] -degrees_Celsius._privpropdict = { -} -degrees_Celsius._privelemdict = { -} -degrees_Fahrenheit._superclassnames = [] -degrees_Fahrenheit._privpropdict = { -} -degrees_Fahrenheit._privelemdict = { -} -degrees_Kelvin._superclassnames = [] -degrees_Kelvin._privpropdict = { -} -degrees_Kelvin._privelemdict = { -} -upper_case._superclassnames = [] -upper_case._privpropdict = { -} -upper_case._privelemdict = { -} -app._superclassnames = [] -app._privpropdict = { -} -app._privelemdict = { -} -_Enum_cons = { - 'case' : 'case', # case - 'diacriticals' : 'diac', # diacriticals - 'white_space' : 'whit', # white space - 'hyphens' : 'hyph', # hyphens - 'expansion' : 'expa', # expansion - 'punctuation' : 'punc', # punctuation - 'application_responses' : 'rmte', # remote event replies -} - -_Enum_boov = { - 'true' : 'true', # the true boolean value - 'false' : 'fals', # the false boolean value -} - -_Enum_misc = { - 'current_application' : 'cura', # the current application -} - -_Enum_eMds = { - 'option_down' : 'Kopt', # - 'command_down' : 'Kcmd', # - 'control_down' : 'Kctl', # - 'shift_down' : 'Ksft', # - 'caps_lock_down' : 'Kclk', # -} - -_Enum_ekst = { - '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', # -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'jul ' : July, - 'may ' : May, - 'TEXT' : string, - 'cmet' : cubic_metres, - 'STXT' : styled_text, - 'nds ' : number_2c__date_or_text, - 'feet' : feet, - 'feb ' : February, - 'nmbr' : number, - 'mile' : miles, - 'kprs' : keystroke, - 'psct' : writing_code, - 'degf' : degrees_Fahrenheit, - 'lrs ' : list_2c__record_or_text, - 'ldt ' : date, - 'litr' : litres, - 'nd ' : number_or_date, - 'cmtr' : centimetres, - 'evnt' : event, - 'pstr' : Pascal_string, - 'zone' : zone, - 'PICT' : picture, - 'ls ' : list_or_string, - 'long' : integer, - 'sf ' : alias_or_string, - 'citl' : writing_code_info, - 'citm' : text_item, - 'mach' : machine, - 'type' : type_class, - 'prep' : preposition, - 'tue ' : Tuesday, - 'case' : upper_case, - 'vers' : version, - 'wed ' : Wednesday, - 'dec ' : December, - 'sqkm' : square_kilometres, - 'obj ' : reference, - 'vect' : vector, - 'wkdy' : weekday, - 'cRGB' : RGB_color, - 'sun ' : Sunday, - 'itxt' : international_text, - 'scnd' : seconds, - 'mar ' : March, - 'kmtr' : kilometres, - 'sqft' : square_feet, - 'list' : list, - 'doub' : real, - 'nov ' : November, - 'qrts' : quarts, - 'degc' : degrees_Celsius, - 'msng' : missing_value, - 'alis' : alias, - 'jan ' : January, - 'metr' : metres, - 'mnth' : month, - 'ns ' : number_or_string, - 'jun ' : June, - 'aug ' : August, - 'llst' : linked_list, - 'styl' : styled_Clipboard_text, - 'encs' : encoded_string, - 'galn' : gallons, - 'cuin' : cubic_inches, - 'fri ' : Friday, - 'sutx' : styled_Unicode_text, - 'lr ' : list_or_record, - 'degk' : degrees_Kelvin, - 'mon ' : Monday, - 'snd ' : sound, - 'pcls' : class_, - 'kgrm' : kilograms, - 'scpt' : script, - '****' : anything, - 'prop' : property, - 'reco' : record, - 'bool' : boolean, - 'oct ' : October, - 'sqrm' : square_metres, - 'inch' : inches, - 'kfrm' : reference_form, - 'cobj' : item, - 'gram' : grams, - 'cha ' : character, - 'apr ' : April, - 'undf' : empty_ae_name_, - 'capp' : app, - 'enum' : constant, - 'hand' : handler, - 'sqmi' : square_miles, - 'rdat' : data, - 'cstr' : C_string, - 'utxt' : Unicode_text, - 'thu ' : Thursday, - 'sqyd' : square_yards, - 'yard' : yards, - 'cyrd' : cubic_yards, - 'ozs ' : ounces, - 'lbs ' : pounds, - 'cfet' : cubic_feet, - 'ccmt' : cubic_centimetres, - 'sat ' : Saturday, - 'sep ' : September, - 'fss ' : file_specification, - 'ctxt' : text, -} - -_propdeclarations = { - 'week' : weeks, - 'kMod' : modifiers, - 'pare' : parent, - 'leng' : length, - 'hour' : hours, - 'mnth' : month, - 'min ' : minutes, - 'wkdy' : weekday, - 'dstr' : date_string, - 'rest' : rest, - 'ascr' : AppleScript, - 'kknd' : key_kind, - 'c@#^' : _3c_Inheritance_3e_, - 'ID ' : id, - 'year' : year, - '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 = { - '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 deleted file mode 100644 index 8dbd6e0..0000000 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Macintosh_Connectivity_Clas.py +++ /dev/null @@ -1,373 +0,0 @@ -"""Suite Macintosh Connectivity Classes: Classes relating to Apple Macintosh personal computer connectivity -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Extensions/AppleScript -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'macc' - -class Macintosh_Connectivity_Clas_Events: - - pass - - -class device_specification(aetools.ComponentItem): - """device specification - A device connected to a computer """ - want = 'cdev' -class properties(aetools.NProperty): - """properties - property that allows getting and setting of multiple properties """ - which = 'pALL' - want = 'reco' -class device_type(aetools.NProperty): - """device type - the kind of device """ - which = 'pdvt' - want = 'edvt' -class device_address(aetools.NProperty): - """device address - the address of the device """ - which = 'pdva' - want = 'cadr' - -device_specifications = device_specification - -class address_specification(aetools.ComponentItem): - """address specification - Unique designation of a device or service connected to this computer """ - want = 'cadr' -class conduit(aetools.NProperty): - """conduit - How the addressee is physically connected """ - which = 'pcon' - want = 'econ' -class protocol(aetools.NProperty): - """protocol - How to talk to this addressee """ - which = 'pprt' - want = 'epro' - -address_specifications = address_specification - -class ADB_address(aetools.ComponentItem): - """ADB address - Addresses a device connected via Apple Desktop Bus """ - want = 'cadb' -class _3c_inheritance_3e_(aetools.NProperty): - """<inheritance> - inherits some of its properties from this class """ - which = 'c@#^' - want = 'cadr' -class ID(aetools.NProperty): - """ID - the Apple Desktop Bus device ID """ - which = 'ID ' - want = 'shor' - -ADB_addresses = ADB_address - -class AppleTalk_address(aetools.ComponentItem): - """AppleTalk address - Addresses a device or service connected via the AppleTalk protocol """ - want = 'cat ' -class AppleTalk_machine(aetools.NProperty): - """AppleTalk machine - the machine name part of the address """ - which = 'patm' - want = 'TEXT' -class AppleTalk_zone(aetools.NProperty): - """AppleTalk zone - the zone part of the address """ - which = 'patz' - want = 'TEXT' -class AppleTalk_type(aetools.NProperty): - """AppleTalk type - the type part of the AppleTalk address """ - which = 'patt' - want = 'TEXT' - -AppleTalk_addresses = AppleTalk_address - -class bus_slot(aetools.ComponentItem): - """bus slot - Addresses a PC, PCI, or NuBus card """ - want = 'cbus' - -bus_slots = bus_slot - -class Ethernet_address(aetools.ComponentItem): - """Ethernet address - Addresses a device by its Ethernet address """ - want = 'cen ' - -Ethernet_addresses = Ethernet_address - -class FireWire_address(aetools.ComponentItem): - """FireWire address - Addresses a device on the FireWire bus """ - want = 'cfw ' - -FireWire_addresses = FireWire_address - -class IP_address(aetools.ComponentItem): - """IP address - Addresses a device or service via the Internet Protocol (IP) """ - want = 'cip ' -class DNS_form(aetools.NProperty): - """DNS form - the address in the form "apple.com" """ - which = 'pdns' - want = 'TEXT' -class port(aetools.NProperty): - """port - the port number of the service or client being addressed """ - which = 'ppor' - want = 'TEXT' - -IP_addresses = IP_address - -class LocalTalk_address(aetools.ComponentItem): - """LocalTalk address - Addresses a device by its LocalTalk address """ - want = 'clt ' -class network(aetools.NProperty): - """network - the LocalTalk network number """ - which = 'pnet' - want = 'shor' -class node(aetools.NProperty): - """node - the LocalTalk node number """ - which = 'pnod' - want = 'shor' -class socket(aetools.NProperty): - """socket - the LocalTalk socket number """ - which = 'psoc' - want = 'shor' - -LocalTalk_addresses = LocalTalk_address - -class SCSI_address(aetools.ComponentItem): - """SCSI address - Addresses a SCSI device """ - want = 'cscs' -class SCSI_bus(aetools.NProperty): - """SCSI bus - the SCSI bus number """ - which = 'pscb' - want = 'shor' -class LUN(aetools.NProperty): - """LUN - the SCSI logical unit number """ - which = 'pslu' - want = 'shor' - -SCSI_addresses = SCSI_address - -class Token_Ring_address(aetools.ComponentItem): - """Token Ring address - Addresses a device or service via the Token Ring protocol """ - want = 'ctok' - -Token_Ring_addresses = Token_Ring_address - -class USB_address(aetools.ComponentItem): - """USB address - Addresses a device on the Universal Serial Bus """ - want = 'cusb' -class name(aetools.NProperty): - """name - the USB device name """ - which = 'pnam' - want = 'TEXT' - -USB_Addresses = USB_address -device_specification._superclassnames = [] -device_specification._privpropdict = { - 'properties' : properties, - 'device_type' : device_type, - 'device_address' : device_address, -} -device_specification._privelemdict = { -} -address_specification._superclassnames = [] -address_specification._privpropdict = { - 'properties' : properties, - 'conduit' : conduit, - 'protocol' : protocol, -} -address_specification._privelemdict = { -} -ADB_address._superclassnames = ['address_specification'] -ADB_address._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'ID' : ID, -} -ADB_address._privelemdict = { -} -AppleTalk_address._superclassnames = ['address_specification'] -AppleTalk_address._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'AppleTalk_machine' : AppleTalk_machine, - 'AppleTalk_zone' : AppleTalk_zone, - 'AppleTalk_type' : AppleTalk_type, -} -AppleTalk_address._privelemdict = { -} -bus_slot._superclassnames = ['address_specification'] -bus_slot._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'ID' : ID, -} -bus_slot._privelemdict = { -} -Ethernet_address._superclassnames = ['address_specification'] -Ethernet_address._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'ID' : ID, -} -Ethernet_address._privelemdict = { -} -FireWire_address._superclassnames = ['address_specification'] -FireWire_address._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'ID' : ID, -} -FireWire_address._privelemdict = { -} -IP_address._superclassnames = ['address_specification'] -IP_address._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'ID' : ID, - 'DNS_form' : DNS_form, - 'port' : port, -} -IP_address._privelemdict = { -} -LocalTalk_address._superclassnames = ['address_specification'] -LocalTalk_address._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'network' : network, - 'node' : node, - 'socket' : socket, -} -LocalTalk_address._privelemdict = { -} -SCSI_address._superclassnames = ['address_specification'] -SCSI_address._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'SCSI_bus' : SCSI_bus, - 'ID' : ID, - 'LUN' : LUN, -} -SCSI_address._privelemdict = { -} -Token_Ring_address._superclassnames = ['address_specification'] -Token_Ring_address._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'ID' : ID, -} -Token_Ring_address._privelemdict = { -} -USB_address._superclassnames = ['address_specification'] -USB_address._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'name' : name, -} -USB_address._privelemdict = { -} -_Enum_edvt = { - 'hard_disk_drive' : 'ehd ', # - 'floppy_disk_drive' : 'efd ', # - 'CD_ROM_drive' : 'ecd ', # - 'DVD_drive' : 'edvd', # - 'storage_device' : 'edst', # - 'keyboard' : 'ekbd', # - 'mouse' : 'emou', # - 'trackball' : 'etrk', # - 'trackpad' : 'edtp', # - 'pointing_device' : 'edpd', # - 'video_monitor' : 'edvm', # - 'LCD_display' : 'edlc', # - 'display' : 'edds', # - 'modem' : 'edmm', # - 'PC_card' : 'ecpc', # - 'PCI_card' : 'edpi', # - 'NuBus_card' : 'ednb', # - 'printer' : 'edpr', # - 'speakers' : 'edsp', # - 'microphone' : 'ecmi', # -} - -_Enum_econ = { - 'ADB' : 'eadb', # - 'printer_port' : 'ecpp', # - 'modem_port' : 'ecmp', # - 'modem_printer_port' : 'empp', # - 'LocalTalk' : 'eclt', # - 'Ethernet' : 'ecen', # - 'Token_Ring' : 'etok', # - 'SCSI' : 'ecsc', # - 'USB' : 'ecus', # - 'FireWire' : 'ecfw', # - 'infrared' : 'ecir', # - 'PC_card' : 'ecpc', # - 'PCI_bus' : 'ecpi', # - 'NuBus' : 'enub', # - 'PDS_slot' : 'ecpd', # - 'Comm_slot' : 'eccm', # - 'monitor_out' : 'ecmn', # - 'video_out' : 'ecvo', # - 'video_in' : 'ecvi', # - 'audio_out' : 'ecao', # - 'audio_line_in' : 'ecai', # - 'audio_line_out' : 'ecal', # - 'microphone' : 'ecmi', # -} - -_Enum_epro = { - 'serial' : 'epsr', # - 'AppleTalk' : 'epat', # - 'IP' : 'epip', # - 'SCSI' : 'ecsc', # - 'ADB' : 'eadb', # - 'FireWire' : 'ecfw', # - 'IrDA' : 'epir', # - 'IRTalk' : 'epit', # - 'USB' : 'ecus', # - 'PC_card' : 'ecpc', # - 'PCI_bus' : 'ecpi', # - 'NuBus' : 'enub', # - 'bus' : 'ebus', # - 'Macintosh_video' : 'epmv', # - 'SVGA' : 'epsg', # - 'S_video' : 'epsv', # - 'analog_audio' : 'epau', # - 'digital_audio' : 'epda', # - 'PostScript' : 'epps', # -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'cat ' : AppleTalk_address, - 'cadr' : address_specification, - 'ctok' : Token_Ring_address, - 'cfw ' : FireWire_address, - 'cbus' : bus_slot, - 'cscs' : SCSI_address, - 'cadb' : ADB_address, - 'cusb' : USB_address, - 'cdev' : device_specification, - 'clt ' : LocalTalk_address, - 'cip ' : IP_address, - 'cen ' : Ethernet_address, -} - -_propdeclarations = { - 'pdns' : DNS_form, - 'ppor' : port, - 'patt' : AppleTalk_type, - 'pprt' : protocol, - 'pcon' : conduit, - 'patz' : AppleTalk_zone, - 'pnet' : network, - 'pdvt' : device_type, - 'pnam' : name, - 'c@#^' : _3c_inheritance_3e_, - 'ID ' : ID, - 'pALL' : properties, - 'pscb' : SCSI_bus, - 'pdva' : device_address, - 'patm' : AppleTalk_machine, - 'psoc' : socket, - 'pslu' : LUN, - 'pnod' : node, -} - -_compdeclarations = { -} - -_enumdeclarations = { - 'econ' : _Enum_econ, - '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 deleted file mode 100644 index 253cf0b..0000000 --- a/Mac/Lib/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py +++ /dev/null @@ -1,417 +0,0 @@ -"""Suite QuickDraw Graphics Suite: A set of basic classes for graphics -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Extensions/AppleScript -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'qdrw' - -class QuickDraw_Graphics_Suite_Events: - - pass - - -class arc(aetools.ComponentItem): - """arc - An arc """ - want = 'carc' -class arc_angle(aetools.NProperty): - """arc angle - the angle of the arc in degrees """ - which = 'parc' - want = 'fixd' -class bounds(aetools.NProperty): - """bounds - the smallest rectangle that contains the entire arc """ - which = 'pbnd' - want = 'qdrt' -class definition_rect(aetools.NProperty): - """definition rect - the rectangle that contains the circle or oval used to define the arc """ - which = 'pdrt' - want = 'qdrt' -class fill_color(aetools.NProperty): - """fill color - the fill color """ - which = 'flcl' - want = 'cRGB' -class fill_pattern(aetools.NProperty): - """fill pattern - the fill pattern """ - which = 'flpt' - want = 'cpix' -class pen_color(aetools.NProperty): - """pen color - the pen color """ - which = 'ppcl' - want = 'cRGB' -class pen_pattern(aetools.NProperty): - """pen pattern - the pen pattern """ - which = 'pppa' - want = 'cpix' -class pen_width(aetools.NProperty): - """pen width - the pen width """ - which = 'ppwd' - want = 'shor' -class start_angle(aetools.NProperty): - """start angle - the angle that defines the start of the arc, in degrees """ - which = 'pang' - want = 'fixd' -class transfer_mode(aetools.NProperty): - """transfer mode - the transfer mode """ - which = 'pptm' - want = 'tran' - -arcs = arc - -class drawing_area(aetools.ComponentItem): - """drawing area - Container for graphics and supporting information """ - want = 'cdrw' -class background_color(aetools.NProperty): - """background color - the color used to fill in unoccupied areas """ - which = 'pbcl' - want = 'cRGB' -class background_pattern(aetools.NProperty): - """background pattern - the pattern used to fill in unoccupied areas """ - which = 'pbpt' - want = 'cpix' -class color_table(aetools.NProperty): - """color table - the color table """ - which = 'cltb' - want = 'clrt' -class ordering(aetools.NProperty): - """ordering - the ordered list of graphic objects in the drawing area """ - which = 'gobs' - want = 'obj ' -class name(aetools.NProperty): - """name - the name """ - which = 'pnam' - want = 'itxt' -class default_location(aetools.NProperty): - """default location - the default location of each new graphic object """ - which = 'pnel' - want = 'QDpt' -class pixel_depth(aetools.NProperty): - """pixel depth - the number of bits per pixel """ - which = 'pdpt' - want = 'shor' -class writing_code(aetools.NProperty): - """writing code - the script system and language of text objects in the drawing area """ - which = 'psct' - want = 'intl' -class text_color(aetools.NProperty): - """text color - the default color for text objects """ - which = 'ptxc' - want = 'cRGB' -class default_font(aetools.NProperty): - """default font - the name of the default font for text objects """ - which = 'ptxf' - want = 'itxt' -class default_size(aetools.NProperty): - """default size - the default size for text objects """ - which = 'ptps' - want = 'fixd' -class style(aetools.NProperty): - """style - the default text style for text objects """ - which = 'txst' - want = 'tsty' -class update_on_change(aetools.NProperty): - """update on change - Redraw after each change? """ - which = 'pupd' - want = 'bool' - -drawing_areas = drawing_area - -class graphic_line(aetools.ComponentItem): - """graphic line - A graphic line """ - want = 'glin' -class start_point(aetools.NProperty): - """start point - the starting point of the line """ - which = 'pstp' - want = 'QDpt' -class end_point(aetools.NProperty): - """end point - the ending point of the line """ - which = 'pend' - want = 'QDpt' -class dash_style(aetools.NProperty): - """dash style - the dash style """ - which = 'pdst' - want = 'tdas' -class arrow_style(aetools.NProperty): - """arrow style - the arrow style """ - which = 'arro' - want = 'arro' - -graphic_lines = graphic_line - -class graphic_object(aetools.ComponentItem): - """graphic object - A graphic object """ - want = 'cgob' - -graphic_objects = graphic_object - -class graphic_shape(aetools.ComponentItem): - """graphic shape - A graphic shape """ - want = 'cgsh' - -graphic_shapes = graphic_shape - -class graphic_text(aetools.ComponentItem): - """graphic text - A series of characters within a drawing area """ - want = 'cgtx' -class color(aetools.NProperty): - """color - the color of the first character """ - which = 'colr' - want = 'cRGB' -class font(aetools.NProperty): - """font - the name of the font of the first character """ - which = 'font' - want = 'ctxt' -class size(aetools.NProperty): - """size - the size in points of the first character """ - which = 'ptsz' - want = 'fixd' -class uniform_styles(aetools.NProperty): - """uniform styles - the text styles that are uniform throughout the text """ - which = 'ustl' - want = 'tsty' - -class graphic_group(aetools.ComponentItem): - """graphic group - Group of graphics """ - want = 'cpic' - -graphic_groups = graphic_group - -class oval(aetools.ComponentItem): - """oval - An oval """ - want = 'covl' - -ovals = oval - -class pixel(aetools.ComponentItem): - """pixel - A pixel """ - want = 'cpxl' - -pixels = pixel - -class pixel_map(aetools.ComponentItem): - """pixel map - A pixel map """ - want = 'cpix' - -pixel_maps = pixel_map - -class polygon(aetools.ComponentItem): - """polygon - A polygon """ - want = 'cpgn' -class point_list(aetools.NProperty): - """point list - the list of points that define the polygon """ - which = 'ptlt' - want = 'QDpt' - -polygons = polygon - -class rectangle(aetools.ComponentItem): - """rectangle - A rectangle """ - want = 'crec' - -rectangles = rectangle - -class rounded_rectangle(aetools.ComponentItem): - """rounded rectangle - A rounded rectangle """ - want = 'crrc' -class corner_curve_height(aetools.NProperty): - """corner curve height - the height of the oval used to define the shape of the rounded corners """ - which = 'pchd' - want = 'shor' -class corner_curve_width(aetools.NProperty): - """corner curve width - the width of the oval used to define the shape of the rounded corners """ - which = 'pcwd' - want = 'shor' - -rounded_rectangles = rounded_rectangle -arc._superclassnames = [] -arc._privpropdict = { - 'arc_angle' : arc_angle, - 'bounds' : bounds, - 'definition_rect' : definition_rect, - 'fill_color' : fill_color, - 'fill_pattern' : fill_pattern, - 'pen_color' : pen_color, - 'pen_pattern' : pen_pattern, - 'pen_width' : pen_width, - 'start_angle' : start_angle, - 'transfer_mode' : transfer_mode, -} -arc._privelemdict = { -} -drawing_area._superclassnames = [] -drawing_area._privpropdict = { - 'background_color' : background_color, - 'background_pattern' : background_pattern, - 'color_table' : color_table, - 'ordering' : ordering, - 'name' : name, - 'default_location' : default_location, - 'pixel_depth' : pixel_depth, - 'writing_code' : writing_code, - 'text_color' : text_color, - 'default_font' : default_font, - 'default_size' : default_size, - 'style' : style, - 'update_on_change' : update_on_change, -} -drawing_area._privelemdict = { -} -graphic_line._superclassnames = [] -graphic_line._privpropdict = { - 'start_point' : start_point, - 'end_point' : end_point, - 'dash_style' : dash_style, - 'arrow_style' : arrow_style, -} -graphic_line._privelemdict = { -} -graphic_object._superclassnames = [] -graphic_object._privpropdict = { -} -graphic_object._privelemdict = { -} -graphic_shape._superclassnames = [] -graphic_shape._privpropdict = { -} -graphic_shape._privelemdict = { -} -graphic_text._superclassnames = [] -graphic_text._privpropdict = { - 'color' : color, - 'font' : font, - 'size' : size, - 'uniform_styles' : uniform_styles, -} -graphic_text._privelemdict = { -} -graphic_group._superclassnames = [] -graphic_group._privpropdict = { -} -graphic_group._privelemdict = { -} -oval._superclassnames = [] -oval._privpropdict = { -} -oval._privelemdict = { -} -pixel._superclassnames = [] -pixel._privpropdict = { - 'color' : color, -} -pixel._privelemdict = { -} -pixel_map._superclassnames = [] -pixel_map._privpropdict = { -} -pixel_map._privelemdict = { -} -polygon._superclassnames = [] -polygon._privpropdict = { - 'point_list' : point_list, -} -polygon._privelemdict = { -} -rectangle._superclassnames = [] -rectangle._privpropdict = { -} -rectangle._privelemdict = { -} -rounded_rectangle._superclassnames = [] -rounded_rectangle._privpropdict = { - 'corner_curve_height' : corner_curve_height, - 'corner_curve_width' : corner_curve_width, -} -rounded_rectangle._privelemdict = { -} -_Enum_tran = { - 'copy_pixels' : 'cpy ', # - 'not_copy_pixels' : 'ncpy', # - 'or_pixels' : 'or ', # - 'not_or_pixels' : 'ntor', # - 'bic_pixels' : 'bic ', # - 'not_bic_pixels' : 'nbic', # - 'xor_pixels' : 'xor ', # - 'not_xor_pixels' : 'nxor', # - 'add_over_pixels' : 'addo', # - 'add_pin_pixels' : 'addp', # - 'sub_over_pixels' : 'subo', # - 'sub_pin_pixels' : 'subp', # - 'ad_max_pixels' : 'admx', # - 'ad_min_pixels' : 'admn', # - 'blend_pixels' : 'blnd', # -} - -_Enum_arro = { - 'no_arrow' : 'arno', # No arrow on line - 'arrow_at_start' : 'arst', # Arrow at start of line - 'arrow_at_end' : 'aren', # Arrow at end of line - 'arrow_at_both_ends' : 'arbo', # Arrow at both the start and the end of the line -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'cpic' : graphic_group, - 'covl' : oval, - 'cgtx' : graphic_text, - 'cgsh' : graphic_shape, - 'glin' : graphic_line, - 'cgob' : graphic_object, - 'cdrw' : drawing_area, - 'cpgn' : polygon, - 'cpxl' : pixel, - 'crrc' : rounded_rectangle, - 'carc' : arc, - 'cpix' : pixel_map, - 'crec' : rectangle, -} - -_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, - 'pstp' : start_point, - 'pang' : start_angle, - 'pptm' : transfer_mode, - '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, - '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, - 'pupd' : update_on_change, - 'pppa' : pen_pattern, -} - -_compdeclarations = { -} - -_enumdeclarations = { - '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 deleted file mode 100644 index b640cdc..0000000 --- a/Mac/Lib/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suppleme.py +++ /dev/null @@ -1,73 +0,0 @@ -"""Suite QuickDraw Graphics Supplemental Suite: Defines transformations of graphic objects -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Extensions/AppleScript -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'qdsp' - -class QuickDraw_Graphics_Suppleme_Events: - - pass - - -class drawing_area(aetools.ComponentItem): - """drawing area - Container for graphics and supporting information """ - want = 'cdrw' -class rotation(aetools.NProperty): - """rotation - the default rotation for objects in the drawing area """ - which = 'prot' - want = 'trot' -class scale(aetools.NProperty): - """scale - the default scaling for objects in the drawing area """ - which = 'pscl' - want = 'fixd' -class translation(aetools.NProperty): - """translation - the default repositioning for objects in the drawing area """ - which = 'ptrs' - want = 'QDpt' - -drawing_areas = drawing_area - -class graphic_group(aetools.ComponentItem): - """graphic group - Group of graphics """ - want = 'cpic' - -graphic_groups = graphic_group -drawing_area._superclassnames = [] -drawing_area._privpropdict = { - 'rotation' : rotation, - 'scale' : scale, - 'translation' : translation, -} -drawing_area._privelemdict = { -} -graphic_group._superclassnames = [] -graphic_group._privpropdict = { -} -graphic_group._privelemdict = { -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'cpic' : graphic_group, - 'cdrw' : drawing_area, -} - -_propdeclarations = { - 'prot' : rotation, - 'ptrs' : translation, - 'pscl' : scale, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/Required_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/Required_Suite.py deleted file mode 100644 index be26c92..0000000 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Required_Suite.py +++ /dev/null @@ -1,32 +0,0 @@ -"""Suite Required Suite: Every application supports open, print, run, and quit -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Extensions/AppleScript -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'reqd' - -from _builtinSuites.builtin_Suite import * -class Required_Suite_Events(builtin_Suite_Events): - - pass - - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/Standard_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/Standard_Suite.py deleted file mode 100644 index 444a0f0..0000000 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Standard_Suite.py +++ /dev/null @@ -1,711 +0,0 @@ -"""Suite Standard Suite: Common terms for most applications -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Extensions/AppleScript -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'core' - -from _builtinSuites.builtin_Suite import * -class Standard_Suite_Events(builtin_Suite_Events): - - def open(self, _object, _attributes={}, **_arguments): - """open: Open the specified object(s) - Required argument: list of objects to open - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'odoc' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def run(self, _no_object=None, _attributes={}, **_arguments): - """run: Run an application. Most applications will open an empty, untitled window. - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'oapp' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def reopen(self, _no_object=None, _attributes={}, **_arguments): - """reopen: Reactivate a running application. Some applications will open a new untitled window if no window is open. - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'rapp' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def print_(self, _object, _attributes={}, **_arguments): - """print: Print the specified object(s) - Required argument: list of objects to print - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'pdoc' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_quit = { - 'saving' : 'savo', - } - - def quit(self, _no_object=None, _attributes={}, **_arguments): - """quit: Quit an application - Keyword argument saving: specifies whether to save currently open documents - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'quit' - - aetools.keysubst(_arguments, self._argmap_quit) - if _no_object != None: raise TypeError, 'No direct arg expected' - - aetools.enumsubst(_arguments, 'savo', _Enum_savo) - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_close = { - 'saving' : 'savo', - 'saving_in' : 'kfil', - } - - def close(self, _object, _attributes={}, **_arguments): - """close: Close an object - Required argument: the object to close - Keyword argument saving: specifies whether changes should be saved before closing - Keyword argument saving_in: the file in which to save the object - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'core' - _subcode = 'clos' - - aetools.keysubst(_arguments, self._argmap_close) - _arguments['----'] = _object - - aetools.enumsubst(_arguments, 'savo', _Enum_savo) - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_count = { - 'each' : 'kocl', - } - - def count(self, _object, _attributes={}, **_arguments): - """count: Return the number of elements of an object - Required argument: the object whose elements are to be counted - Keyword argument each: if specified, restricts counting to objects of this class - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the number of elements - """ - _code = 'core' - _subcode = 'cnte' - - aetools.keysubst(_arguments, self._argmap_count) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def delete(self, _object, _attributes={}, **_arguments): - """delete: Delete an object from its container. Note this does not work on script variables, only on elements of application classes. - Required argument: the element to delete - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'core' - _subcode = 'delo' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_duplicate = { - 'to' : 'insh', - 'with_properties' : 'prdt', - } - - def duplicate(self, _object, _attributes={}, **_arguments): - """duplicate: Duplicate one or more objects - Required argument: the object(s) to duplicate - Keyword argument to: the new location for the object(s) - Keyword argument with_properties: the initial values for properties of the new object that are to be different from the original - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: to the duplicated object(s) - """ - _code = 'core' - _subcode = 'clon' - - aetools.keysubst(_arguments, self._argmap_duplicate) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def exists(self, _object, _attributes={}, **_arguments): - """exists: Verify if an object exists - Required argument: the object in question - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: true if it exists, false if not - """ - _code = 'core' - _subcode = 'doex' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_make = { - 'new' : 'kocl', - 'at' : 'insh', - 'with_data' : 'data', - 'with_properties' : 'prdt', - } - - def make(self, _no_object=None, _attributes={}, **_arguments): - """make: Make a new element - Keyword argument new: the class of the new element - Keyword argument at: the location at which to insert the element - Keyword argument with_data: the initial data for the element - Keyword argument with_properties: the initial values for the properties of the element - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: to the new object(s) - """ - _code = 'core' - _subcode = 'crel' - - aetools.keysubst(_arguments, self._argmap_make) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_move = { - 'to' : 'insh', - } - - def move(self, _object, _attributes={}, **_arguments): - """move: Move object(s) to a new location - Required argument: the object(s) to move - Keyword argument to: the new location for the object(s) - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: to the object(s) after they have been moved - """ - _code = 'core' - _subcode = 'move' - - aetools.keysubst(_arguments, self._argmap_move) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_save = { - 'in_' : 'kfil', - 'as' : 'fltp', - } - - def save(self, _object, _attributes={}, **_arguments): - """save: Save an object - Required argument: the object to save, usually a document or window - Keyword argument in_: the file in which to save the object - Keyword argument as: the file type of the document in which to save the data - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'core' - _subcode = 'save' - - aetools.keysubst(_arguments, self._argmap_save) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def select(self, _object, _attributes={}, **_arguments): - """select: Make a selection - Required argument: the object to select - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'misc' - _subcode = 'slct' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_data_size = { - 'as' : 'rtyp', - } - - def data_size(self, _object, _attributes={}, **_arguments): - """data size: (optional) Return the size in bytes of an object - Required argument: the object whose data size is to be returned - Keyword argument as: the data type for which the size is calculated - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the size of the object in bytes - """ - _code = 'core' - _subcode = 'dsiz' - - aetools.keysubst(_arguments, self._argmap_data_size) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_suite_info = { - 'in_' : 'wrcd', - } - - def suite_info(self, _object, _attributes={}, **_arguments): - """suite info: (optional) Get information about event suite(s) - Required argument: the suite for which to return information - Keyword argument in_: the human language and script system in which to return information - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: a record containing the suites and their versions - """ - _code = 'core' - _subcode = 'gtsi' - - aetools.keysubst(_arguments, self._argmap_suite_info) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_event_info = { - 'in_' : 'wrcd', - } - - def event_info(self, _object, _attributes={}, **_arguments): - """event info: (optional) Get information about the Apple events in a suite - Required argument: the event class of the Apple events for which to return information - Keyword argument in_: the human language and script system in which to return information - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: a record containing the events and their parameters - """ - _code = 'core' - _subcode = 'gtei' - - aetools.keysubst(_arguments, self._argmap_event_info) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_class_info = { - 'in_' : 'wrcd', - } - - def class_info(self, _object=None, _attributes={}, **_arguments): - """class info: (optional) Get information about an object class - Required argument: the object class about which information is requested - Keyword argument in_: the human language and script system in which to return information - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: a record containing the object\xd5s properties and elements - """ - _code = 'core' - _subcode = 'qobj' - - aetools.keysubst(_arguments, self._argmap_class_info) - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -class application(aetools.ComponentItem): - """application - An application program """ - want = 'capp' -class name(aetools.NProperty): - """name - the name of the application """ - which = 'pnam' - want = 'itxt' -class frontmost(aetools.NProperty): - """frontmost - Is this the frontmost application? """ - which = 'pisf' - want = 'bool' -class selection(aetools.NProperty): - """selection - the selection visible to the user. Use the \xd4select\xd5 command to set a new selection; use \xd4contents of selection\xd5 to get or change information in the document. """ - which = 'sele' - want = 'csel' -class clipboard(aetools.NProperty): - """clipboard - the contents of the clipboard for this application """ - which = 'pcli' - want = '****' -class version(aetools.NProperty): - """version - the version of the application """ - which = 'vers' - want = 'vers' - -applications = application - -class document(aetools.ComponentItem): - """document - A document of a scriptable application """ - want = 'docu' -class modified(aetools.NProperty): - """modified - Has the document been modified since the last save? """ - which = 'imod' - want = 'bool' - -documents = document - -class file(aetools.ComponentItem): - """file - a file on a disk or server (or a file yet to be created) """ - want = 'file' -class stationery(aetools.NProperty): - """stationery - Is the file a stationery file? """ - which = 'pspd' - want = 'bool' - -files = file - -class alias(aetools.ComponentItem): - """alias - a file on a disk or server. The file must exist when you check the syntax of your script. """ - want = 'alis' - -aliases = alias - -class selection_2d_object(aetools.ComponentItem): - """selection-object - A way to refer to the state of the current of the selection. Use the \xd4select\xd5 command to make a new selection. """ - want = 'csel' -class contents(aetools.NProperty): - """contents - the information currently selected. Use \xd4contents of selection\xd5 to get or change information in a document. """ - which = 'pcnt' - want = '****' - -class window(aetools.ComponentItem): - """window - A window """ - want = 'cwin' -class bounds(aetools.NProperty): - """bounds - the boundary rectangle for the window """ - which = 'pbnd' - want = 'qdrt' -class closeable(aetools.NProperty): - """closeable - Does the window have a close box? """ - which = 'hclb' - want = 'bool' -class titled(aetools.NProperty): - """titled - Does the window have a title bar? """ - which = 'ptit' - want = 'bool' -class index(aetools.NProperty): - """index - the number of the window """ - which = 'pidx' - want = 'long' -class floating(aetools.NProperty): - """floating - Does the window float? """ - which = 'isfl' - want = 'bool' -class modal(aetools.NProperty): - """modal - Is the window modal? """ - which = 'pmod' - want = 'bool' -class resizable(aetools.NProperty): - """resizable - Is the window resizable? """ - which = 'prsz' - want = 'bool' -class zoomable(aetools.NProperty): - """zoomable - Is the window zoomable? """ - which = 'iszm' - want = 'bool' -class zoomed(aetools.NProperty): - """zoomed - Is the window zoomed? """ - which = 'pzum' - want = 'bool' -class visible(aetools.NProperty): - """visible - Is the window visible? """ - which = 'pvis' - want = 'bool' - -windows = window - -class insertion_point(aetools.ComponentItem): - """insertion point - An insertion location between two objects """ - want = 'cins' - -insertion_points = insertion_point -application._superclassnames = [] -application._privpropdict = { - 'name' : name, - 'frontmost' : frontmost, - 'selection' : selection, - 'clipboard' : clipboard, - 'version' : version, -} -application._privelemdict = { -} -document._superclassnames = [] -document._privpropdict = { - 'modified' : modified, -} -document._privelemdict = { -} -file._superclassnames = [] -file._privpropdict = { - 'stationery' : stationery, -} -file._privelemdict = { -} -alias._superclassnames = [] -alias._privpropdict = { -} -alias._privelemdict = { -} -selection_2d_object._superclassnames = [] -selection_2d_object._privpropdict = { - 'contents' : contents, -} -selection_2d_object._privelemdict = { -} -window._superclassnames = [] -window._privpropdict = { - 'bounds' : bounds, - 'closeable' : closeable, - 'titled' : titled, - 'index' : index, - 'floating' : floating, - 'modal' : modal, - 'resizable' : resizable, - 'zoomable' : zoomable, - 'zoomed' : zoomed, - 'visible' : visible, -} -window._privelemdict = { -} -insertion_point._superclassnames = [] -insertion_point._privpropdict = { -} -insertion_point._privelemdict = { -} -class starts_with(aetools.NComparison): - """starts with - Starts with """ -class contains(aetools.NComparison): - """contains - Contains """ -class ends_with(aetools.NComparison): - """ends with - Ends with """ -class _3d_(aetools.NComparison): - """= - Equal """ -class _3e_(aetools.NComparison): - """> - Greater than """ -class _b3_(aetools.NComparison): - """\xb3 - Greater than or equal to """ -class _3c_(aetools.NComparison): - """< - Less than """ -class _b2_(aetools.NComparison): - """\xb2 - Less than or equal to """ -_Enum_savo = { - 'yes' : 'yes ', # Save objects now - 'no' : 'no ', # Do not save objects - 'ask' : 'ask ', # Ask the user whether to save -} - -_Enum_kfrm = { - 'index' : 'indx', # keyform designating indexed access - 'named' : 'name', # keyform designating named access - 'id' : 'ID ', # keyform designating access by unique identifier -} - -_Enum_styl = { - 'plain' : 'plan', # Plain - 'bold' : 'bold', # Bold - 'italic' : 'ital', # Italic - 'outline' : 'outl', # Outline - 'shadow' : 'shad', # Shadow - 'underline' : 'undl', # Underline - 'superscript' : 'spsc', # Superscript - 'subscript' : 'sbsc', # Subscript - 'strikethrough' : 'strk', # Strikethrough - 'small_caps' : 'smcp', # Small caps - 'all_caps' : 'alcp', # All capital letters - 'all_lowercase' : 'lowc', # Lowercase - 'condensed' : 'cond', # Condensed - 'expanded' : 'pexp', # Expanded - 'hidden' : 'hidn', # Hidden -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'cwin' : window, - 'file' : file, - 'csel' : selection_2d_object, - 'alis' : alias, - 'capp' : application, - 'cins' : insertion_point, - 'docu' : document, -} - -_propdeclarations = { - 'prsz' : resizable, - 'vers' : version, - 'pidx' : index, - 'pvis' : visible, - 'imod' : modified, - 'pbnd' : bounds, - 'sele' : selection, - 'pisf' : frontmost, - 'pspd' : stationery, - 'isfl' : floating, - 'iszm' : zoomable, - 'hclb' : closeable, - 'pcli' : clipboard, - 'pmod' : modal, - 'pcnt' : contents, - 'pnam' : name, - 'pzum' : zoomed, - 'ptit' : titled, -} - -_compdeclarations = { - '< ' : _3c_, - 'ends' : ends_with, - '>= ' : _b3_, - 'cont' : contains, - '<= ' : _b2_, - '= ' : _3d_, - 'bgwt' : starts_with, - '> ' : _3e_, -} - -_enumdeclarations = { - '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 deleted file mode 100644 index cfeee32..0000000 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Table_Suite.py +++ /dev/null @@ -1,104 +0,0 @@ -"""Suite Table Suite: Classes for manipulating tables -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Extensions/AppleScript -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'tbls' - -class Table_Suite_Events: - - pass - - -class cell(aetools.ComponentItem): - """cell - A cell """ - want = 'ccel' -class formula(aetools.NProperty): - """formula - the formula of the cell """ - which = 'pfor' - want = 'ctxt' -class protection(aetools.NProperty): - """protection - Indicates whether value or formula in the cell can be changed """ - which = 'ppro' - want = 'prtn' - -cells = cell - -class column(aetools.ComponentItem): - """column - A column """ - want = 'ccol' -class name(aetools.NProperty): - """name - the name of the column """ - which = 'pnam' - want = 'itxt' - -columns = column - -class row(aetools.ComponentItem): - """row - A row """ - want = 'crow' - -rows = row - -class table(aetools.ComponentItem): - """table - A table """ - want = 'ctbl' - -tables = table -cell._superclassnames = [] -cell._privpropdict = { - 'formula' : formula, - 'protection' : protection, -} -cell._privelemdict = { -} -column._superclassnames = [] -column._privpropdict = { - 'name' : name, -} -column._privelemdict = { -} -row._superclassnames = [] -row._privpropdict = { -} -row._privelemdict = { -} -table._superclassnames = [] -table._privpropdict = { -} -table._privelemdict = { -} -_Enum_prtn = { - 'read_only' : 'nmod', # Can\xd5t change values or formulas - 'formulas_protected' : 'fpro', # Can changes values but not formulas - 'read_2f_write' : 'modf', # Can change values and formulas -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'ccel' : cell, - 'ccol' : column, - 'ctbl' : table, - 'crow' : row, -} - -_propdeclarations = { - 'pnam' : name, - 'pfor' : formula, - 'ppro' : protection, -} - -_compdeclarations = { -} - -_enumdeclarations = { - 'prtn' : _Enum_prtn, -} diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/Text_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/Text_Suite.py deleted file mode 100644 index 9b7f5d5..0000000 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Text_Suite.py +++ /dev/null @@ -1,218 +0,0 @@ -"""Suite Text Suite: A set of basic classes for text processing -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Extensions/AppleScript -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'TEXT' - -class Text_Suite_Events: - - pass - - -class character(aetools.ComponentItem): - """character - A character """ - want = 'cha ' -class _3c_inheritance_3e_(aetools.NProperty): - """<inheritance> - inherits some of its properties from this class """ - which = 'c@#^' - want = 'ctxt' - -class line(aetools.ComponentItem): - """line - A line of text """ - want = 'clin' -class justification(aetools.NProperty): - """justification - the justification of the text """ - which = 'pjst' - want = 'just' - -lines = line - -class paragraph(aetools.ComponentItem): - """paragraph - A paragraph """ - want = 'cpar' - -paragraphs = paragraph - -class text(aetools.ComponentItem): - """text - Text """ - want = 'ctxt' -class color(aetools.NProperty): - """color - the color of the first character """ - which = 'colr' - want = 'cRGB' -class font(aetools.NProperty): - """font - the name of the font of the first character """ - which = 'font' - want = 'ctxt' -class size(aetools.NProperty): - """size - the size in points of the first character """ - which = 'ptsz' - want = 'fixd' -class writing_code(aetools.NProperty): - """writing code - the script system and language """ - which = 'psct' - want = 'intl' -class style(aetools.NProperty): - """style - the text style of the first character of the first character """ - which = 'txst' - want = 'tsty' -class uniform_styles(aetools.NProperty): - """uniform styles - the text styles that are uniform throughout the text """ - which = 'ustl' - want = 'tsty' -# element 'cha ' as ['indx'] -# element 'clin' as ['indx'] -# element 'cpar' as ['indx'] -# element 'ctxt' as ['indx'] -# element 'cwor' as ['indx'] - -class text_flow(aetools.ComponentItem): - """text flow - A contiguous block of text. Page layout applications call this a \xd4story.\xd5 """ - want = 'cflo' -class name(aetools.NProperty): - """name - the name """ - which = 'pnam' - want = 'itxt' - -text_flows = text_flow - -class text_style_info(aetools.ComponentItem): - """text style info - On and Off styles of text run """ - want = 'tsty' -class on_styles(aetools.NProperty): - """on styles - the styles that are on for the text """ - which = 'onst' - want = 'styl' -class off_styles(aetools.NProperty): - """off styles - the styles that are off for the text """ - which = 'ofst' - want = 'styl' - -text_style_infos = text_style_info - -class word(aetools.ComponentItem): - """word - A word """ - want = 'cwor' - -words = word -character._superclassnames = ['text'] -character._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, -} -character._privelemdict = { -} -line._superclassnames = ['text'] -line._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'justification' : justification, -} -line._privelemdict = { -} -paragraph._superclassnames = ['text'] -paragraph._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, -} -paragraph._privelemdict = { -} -text._superclassnames = [] -text._privpropdict = { - 'color' : color, - 'font' : font, - 'size' : size, - 'writing_code' : writing_code, - 'style' : style, - 'uniform_styles' : uniform_styles, -} -text._privelemdict = { - 'character' : character, - 'line' : line, - 'paragraph' : paragraph, - 'text' : text, - 'word' : word, -} -text_flow._superclassnames = ['text'] -text_flow._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, - 'name' : name, -} -text_flow._privelemdict = { -} -text_style_info._superclassnames = [] -text_style_info._privpropdict = { - 'on_styles' : on_styles, - 'off_styles' : off_styles, -} -text_style_info._privelemdict = { -} -word._superclassnames = ['text'] -word._privpropdict = { - '_3c_inheritance_3e_' : _3c_inheritance_3e_, -} -word._privelemdict = { -} -_Enum_just = { - 'left' : 'left', # Align with left margin - 'right' : 'rght', # Align with right margin - 'center' : 'cent', # Align with center - 'full' : 'full', # Align with both left and right margins -} - -_Enum_styl = { - 'plain' : 'plan', # Plain - 'bold' : 'bold', # Bold - 'italic' : 'ital', # Italic - 'outline' : 'outl', # Outline - 'shadow' : 'shad', # Shadow - 'underline' : 'undl', # Underline - 'superscript' : 'spsc', # Superscript - 'subscript' : 'sbsc', # Subscript - 'strikethrough' : 'strk', # Strikethrough - 'small_caps' : 'smcp', # Small caps - 'all_caps' : 'alcp', # All capital letters - 'all_lowercase' : 'lowc', # Lowercase - 'condensed' : 'cond', # Condensed - 'expanded' : 'pexp', # Expanded - 'hidden' : 'hidn', # Hidden -} - - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'cpar' : paragraph, - 'cha ' : character, - 'cflo' : text_flow, - 'tsty' : text_style_info, - 'clin' : line, - 'cwor' : word, - 'ctxt' : text, -} - -_propdeclarations = { - 'ptsz' : size, - 'ofst' : off_styles, - 'pjst' : justification, - 'colr' : color, - 'txst' : style, - 'psct' : writing_code, - 'ustl' : uniform_styles, - 'c@#^' : _3c_inheritance_3e_, - 'pnam' : name, - 'font' : font, - 'onst' : on_styles, -} - -_compdeclarations = { -} - -_enumdeclarations = { - 'styl' : _Enum_styl, - 'just' : _Enum_just, -} diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/Type_Names_Suite.py b/Mac/Lib/lib-scriptpackages/StdSuites/Type_Names_Suite.py deleted file mode 100644 index 939c6ee..0000000 --- a/Mac/Lib/lib-scriptpackages/StdSuites/Type_Names_Suite.py +++ /dev/null @@ -1,440 +0,0 @@ -"""Suite Type Names Suite: Terminology for Registry data types -Level 1, version 1 - -Generated from /Volumes/Sap/System Folder/Extensions/AppleScript -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'tpnm' - -class Type_Names_Suite_Events: - - pass - - -class type_class_info(aetools.ComponentItem): - """type class info - information about properties and elements of a class """ - want = 'gcli' - -class type_event_info(aetools.ComponentItem): - """type event info - information about an event """ - want = 'evin' - -class plain_text(aetools.ComponentItem): - """plain text - """ - want = 'TEXT' - -plain_text = plain_text - -string = plain_text - -class bounding_rectangle(aetools.ComponentItem): - """bounding rectangle - bounding rectangle """ - want = 'qdrt' - -class point(aetools.ComponentItem): - """point - point coordinates """ - want = 'QDpt' - -class fixed(aetools.ComponentItem): - """fixed - a real number """ - want = 'fixd' - -class location_reference(aetools.ComponentItem): - """location reference - """ - want = 'insl' - -class application_dictionary(aetools.ComponentItem): - """application dictionary - """ - want = 'aete' - -class color_table(aetools.ComponentItem): - """color table - """ - want = 'clrt' - -class dash_style(aetools.ComponentItem): - """dash style - """ - want = 'tdas' - -class double_integer(aetools.ComponentItem): - """double integer - """ - want = 'comp' - -class extended_real(aetools.ComponentItem): - """extended real - """ - want = 'exte' - -class fixed_point(aetools.ComponentItem): - """fixed point - """ - want = 'fpnt' - -class fixed_rectangle(aetools.ComponentItem): - """fixed rectangle - """ - want = 'frct' - -class long_fixed(aetools.ComponentItem): - """long fixed - """ - want = 'lfxd' - -class long_fixed_point(aetools.ComponentItem): - """long fixed point - """ - want = 'lfpt' - -class long_fixed_rectangle(aetools.ComponentItem): - """long fixed rectangle - """ - want = 'lfrc' - -class long_point(aetools.ComponentItem): - """long point - """ - want = 'lpnt' - -class long_rectangle(aetools.ComponentItem): - """long rectangle - """ - want = 'lrct' - -class machine_location(aetools.ComponentItem): - """machine location - """ - want = 'mLoc' - -class menu(aetools.ComponentItem): - """menu - """ - want = 'cmnu' - -class menu_item(aetools.ComponentItem): - """menu item - """ - want = 'cmen' - -class null(aetools.ComponentItem): - """null - """ - want = 'null' - -class pixel_map_record(aetools.ComponentItem): - """pixel map record - """ - want = 'tpmm' - -class PostScript_picture(aetools.ComponentItem): - """PostScript picture - """ - want = 'EPS ' - -class RGB16_color(aetools.ComponentItem): - """RGB16 color - """ - want = 'tr16' - -class RGB96_color(aetools.ComponentItem): - """RGB96 color - """ - want = 'tr96' - -class small_integer(aetools.ComponentItem): - """small integer - """ - want = 'shor' - -class small_real(aetools.ComponentItem): - """small real - """ - want = 'sing' - -class system_dictionary(aetools.ComponentItem): - """system dictionary - """ - want = 'aeut' - -class rotation(aetools.ComponentItem): - """rotation - """ - want = 'trot' - -class scrap_styles(aetools.ComponentItem): - """scrap styles - """ - want = 'styl' - -class TIFF_picture(aetools.ComponentItem): - """TIFF picture - """ - want = 'TIFF' - -class version(aetools.ComponentItem): - """version - """ - want = 'vers' - -class unsigned_integer(aetools.ComponentItem): - """unsigned integer - """ - want = 'magn' - -class type_property_info(aetools.ComponentItem): - """type property info - """ - want = 'pinf' - -class type_element_info(aetools.ComponentItem): - """type element info - """ - want = 'elin' - -class type_parameter_info(aetools.ComponentItem): - """type parameter info - """ - want = 'pmin' - -class type_suite_info(aetools.ComponentItem): - """type suite info - """ - want = 'suin' - -class target_id(aetools.ComponentItem): - """target id - """ - want = 'targ' -type_class_info._superclassnames = [] -type_class_info._privpropdict = { -} -type_class_info._privelemdict = { -} -type_event_info._superclassnames = [] -type_event_info._privpropdict = { -} -type_event_info._privelemdict = { -} -plain_text._superclassnames = [] -plain_text._privpropdict = { -} -plain_text._privelemdict = { -} -plain_text._superclassnames = [] -plain_text._privpropdict = { -} -plain_text._privelemdict = { -} -bounding_rectangle._superclassnames = [] -bounding_rectangle._privpropdict = { -} -bounding_rectangle._privelemdict = { -} -point._superclassnames = [] -point._privpropdict = { -} -point._privelemdict = { -} -fixed._superclassnames = [] -fixed._privpropdict = { -} -fixed._privelemdict = { -} -location_reference._superclassnames = [] -location_reference._privpropdict = { -} -location_reference._privelemdict = { -} -application_dictionary._superclassnames = [] -application_dictionary._privpropdict = { -} -application_dictionary._privelemdict = { -} -color_table._superclassnames = [] -color_table._privpropdict = { -} -color_table._privelemdict = { -} -dash_style._superclassnames = [] -dash_style._privpropdict = { -} -dash_style._privelemdict = { -} -double_integer._superclassnames = [] -double_integer._privpropdict = { -} -double_integer._privelemdict = { -} -extended_real._superclassnames = [] -extended_real._privpropdict = { -} -extended_real._privelemdict = { -} -fixed_point._superclassnames = [] -fixed_point._privpropdict = { -} -fixed_point._privelemdict = { -} -fixed_rectangle._superclassnames = [] -fixed_rectangle._privpropdict = { -} -fixed_rectangle._privelemdict = { -} -long_fixed._superclassnames = [] -long_fixed._privpropdict = { -} -long_fixed._privelemdict = { -} -long_fixed_point._superclassnames = [] -long_fixed_point._privpropdict = { -} -long_fixed_point._privelemdict = { -} -long_fixed_rectangle._superclassnames = [] -long_fixed_rectangle._privpropdict = { -} -long_fixed_rectangle._privelemdict = { -} -long_point._superclassnames = [] -long_point._privpropdict = { -} -long_point._privelemdict = { -} -long_rectangle._superclassnames = [] -long_rectangle._privpropdict = { -} -long_rectangle._privelemdict = { -} -machine_location._superclassnames = [] -machine_location._privpropdict = { -} -machine_location._privelemdict = { -} -menu._superclassnames = [] -menu._privpropdict = { -} -menu._privelemdict = { -} -menu_item._superclassnames = [] -menu_item._privpropdict = { -} -menu_item._privelemdict = { -} -null._superclassnames = [] -null._privpropdict = { -} -null._privelemdict = { -} -pixel_map_record._superclassnames = [] -pixel_map_record._privpropdict = { -} -pixel_map_record._privelemdict = { -} -PostScript_picture._superclassnames = [] -PostScript_picture._privpropdict = { -} -PostScript_picture._privelemdict = { -} -RGB16_color._superclassnames = [] -RGB16_color._privpropdict = { -} -RGB16_color._privelemdict = { -} -RGB96_color._superclassnames = [] -RGB96_color._privpropdict = { -} -RGB96_color._privelemdict = { -} -small_integer._superclassnames = [] -small_integer._privpropdict = { -} -small_integer._privelemdict = { -} -small_real._superclassnames = [] -small_real._privpropdict = { -} -small_real._privelemdict = { -} -system_dictionary._superclassnames = [] -system_dictionary._privpropdict = { -} -system_dictionary._privelemdict = { -} -rotation._superclassnames = [] -rotation._privpropdict = { -} -rotation._privelemdict = { -} -scrap_styles._superclassnames = [] -scrap_styles._privpropdict = { -} -scrap_styles._privelemdict = { -} -TIFF_picture._superclassnames = [] -TIFF_picture._privpropdict = { -} -TIFF_picture._privelemdict = { -} -version._superclassnames = [] -version._privpropdict = { -} -version._privelemdict = { -} -unsigned_integer._superclassnames = [] -unsigned_integer._privpropdict = { -} -unsigned_integer._privelemdict = { -} -type_property_info._superclassnames = [] -type_property_info._privpropdict = { -} -type_property_info._privelemdict = { -} -type_element_info._superclassnames = [] -type_element_info._privpropdict = { -} -type_element_info._privelemdict = { -} -type_parameter_info._superclassnames = [] -type_parameter_info._privpropdict = { -} -type_parameter_info._privelemdict = { -} -type_suite_info._superclassnames = [] -type_suite_info._privpropdict = { -} -type_suite_info._privelemdict = { -} -target_id._superclassnames = [] -target_id._privpropdict = { -} -target_id._privelemdict = { -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'shor' : small_integer, - 'tr16' : RGB16_color, - 'vers' : version, - 'aeut' : system_dictionary, - 'clrt' : color_table, - 'fpnt' : fixed_point, - 'TEXT' : plain_text, - 'elin' : type_element_info, - 'insl' : location_reference, - 'mLoc' : machine_location, - 'EPS ' : PostScript_picture, - 'QDpt' : point, - 'cmen' : menu_item, - 'tpmm' : pixel_map_record, - 'aete' : application_dictionary, - 'magn' : unsigned_integer, - 'cmnu' : menu, - 'frct' : fixed_rectangle, - 'lfrc' : long_fixed_rectangle, - 'evin' : type_event_info, - 'sing' : small_real, - 'suin' : type_suite_info, - 'trot' : rotation, - 'pmin' : type_parameter_info, - 'fixd' : fixed, - 'styl' : scrap_styles, - 'lpnt' : long_point, - 'gcli' : type_class_info, - 'TIFF' : TIFF_picture, - 'tr96' : RGB96_color, - 'tdas' : dash_style, - 'exte' : extended_real, - 'pinf' : type_property_info, - 'lfpt' : long_fixed_point, - 'lrct' : long_rectangle, - 'qdrt' : bounding_rectangle, - 'comp' : double_integer, - 'lfxd' : long_fixed, - 'null' : null, - 'targ' : target_id, -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/StdSuites/__init__.py b/Mac/Lib/lib-scriptpackages/StdSuites/__init__.py deleted file mode 100644 index 09667f8..0000000 --- a/Mac/Lib/lib-scriptpackages/StdSuites/__init__.py +++ /dev/null @@ -1,469 +0,0 @@ -""" -Package generated from /Volumes/Sap/System Folder/Extensions/AppleScript -Resource aeut resid 0 Standard Event Suites for English -""" -import aetools -Error = aetools.Error -import AppleScript_Suite -import Required_Suite -import Standard_Suite -import Text_Suite -import QuickDraw_Graphics_Suite -import QuickDraw_Graphics_Suppleme -import Table_Suite -import Macintosh_Connectivity_Clas -import Type_Names_Suite - - -_code_to_module = { - 'ascr' : AppleScript_Suite, - 'reqd' : Required_Suite, - 'core' : Standard_Suite, - 'TEXT' : Text_Suite, - 'qdrw' : QuickDraw_Graphics_Suite, - 'qdsp' : QuickDraw_Graphics_Suppleme, - 'tbls' : Table_Suite, - 'macc' : Macintosh_Connectivity_Clas, - 'tpnm' : Type_Names_Suite, -} - - - -_code_to_fullname = { - 'ascr' : ('StdSuites.AppleScript_Suite', 'AppleScript_Suite'), - 'reqd' : ('StdSuites.Required_Suite', 'Required_Suite'), - 'core' : ('StdSuites.Standard_Suite', 'Standard_Suite'), - 'TEXT' : ('StdSuites.Text_Suite', 'Text_Suite'), - 'qdrw' : ('StdSuites.QuickDraw_Graphics_Suite', 'QuickDraw_Graphics_Suite'), - 'qdsp' : ('StdSuites.QuickDraw_Graphics_Suppleme', 'QuickDraw_Graphics_Suppleme'), - 'tbls' : ('StdSuites.Table_Suite', 'Table_Suite'), - 'macc' : ('StdSuites.Macintosh_Connectivity_Clas', 'Macintosh_Connectivity_Clas'), - 'tpnm' : ('StdSuites.Type_Names_Suite', 'Type_Names_Suite'), -} - -from AppleScript_Suite import * -from Required_Suite import * -from Standard_Suite import * -from Text_Suite import * -from QuickDraw_Graphics_Suite import * -from QuickDraw_Graphics_Suppleme import * -from Table_Suite import * -from Macintosh_Connectivity_Clas import * -from Type_Names_Suite import * -def getbaseclasses(v): - if hasattr(v, '_superclassnames') and not hasattr(v, '_propdict'): - v._propdict = {} - v._elemdict = {} - for superclass in v._superclassnames: - v._propdict.update(getattr(eval(superclass), '_privpropdict', {})) - v._elemdict.update(getattr(eval(superclass), '_privelemdict', {})) - v._propdict.update(v._privpropdict) - v._elemdict.update(v._privelemdict) - -import StdSuites - -# -# Set property and element dictionaries now that all classes have been defined -# -getbaseclasses(July) -getbaseclasses(May) -getbaseclasses(string) -getbaseclasses(cubic_metres) -getbaseclasses(styled_text) -getbaseclasses(number_2c__date_or_text) -getbaseclasses(feet) -getbaseclasses(February) -getbaseclasses(number) -getbaseclasses(miles) -getbaseclasses(keystroke) -getbaseclasses(writing_code) -getbaseclasses(degrees_Fahrenheit) -getbaseclasses(list_2c__record_or_text) -getbaseclasses(date) -getbaseclasses(litres) -getbaseclasses(number_or_date) -getbaseclasses(centimetres) -getbaseclasses(event) -getbaseclasses(Pascal_string) -getbaseclasses(zone) -getbaseclasses(picture) -getbaseclasses(list_or_string) -getbaseclasses(integer) -getbaseclasses(alias_or_string) -getbaseclasses(writing_code_info) -getbaseclasses(text_item) -getbaseclasses(machine) -getbaseclasses(type_class) -getbaseclasses(preposition) -getbaseclasses(Tuesday) -getbaseclasses(upper_case) -getbaseclasses(version) -getbaseclasses(Wednesday) -getbaseclasses(December) -getbaseclasses(square_kilometres) -getbaseclasses(reference) -getbaseclasses(vector) -getbaseclasses(weekday) -getbaseclasses(RGB_color) -getbaseclasses(Sunday) -getbaseclasses(international_text) -getbaseclasses(seconds) -getbaseclasses(March) -getbaseclasses(kilometres) -getbaseclasses(square_feet) -getbaseclasses(list) -getbaseclasses(real) -getbaseclasses(November) -getbaseclasses(quarts) -getbaseclasses(degrees_Celsius) -getbaseclasses(missing_value) -getbaseclasses(alias) -getbaseclasses(January) -getbaseclasses(metres) -getbaseclasses(month) -getbaseclasses(number_or_string) -getbaseclasses(June) -getbaseclasses(August) -getbaseclasses(linked_list) -getbaseclasses(styled_Clipboard_text) -getbaseclasses(encoded_string) -getbaseclasses(gallons) -getbaseclasses(cubic_inches) -getbaseclasses(Friday) -getbaseclasses(styled_Unicode_text) -getbaseclasses(list_or_record) -getbaseclasses(degrees_Kelvin) -getbaseclasses(Monday) -getbaseclasses(sound) -getbaseclasses(class_) -getbaseclasses(kilograms) -getbaseclasses(script) -getbaseclasses(anything) -getbaseclasses(property) -getbaseclasses(record) -getbaseclasses(boolean) -getbaseclasses(October) -getbaseclasses(square_metres) -getbaseclasses(inches) -getbaseclasses(reference_form) -getbaseclasses(item) -getbaseclasses(grams) -getbaseclasses(character) -getbaseclasses(April) -getbaseclasses(empty_ae_name_) -getbaseclasses(app) -getbaseclasses(constant) -getbaseclasses(handler) -getbaseclasses(square_miles) -getbaseclasses(data) -getbaseclasses(C_string) -getbaseclasses(Unicode_text) -getbaseclasses(Thursday) -getbaseclasses(square_yards) -getbaseclasses(yards) -getbaseclasses(cubic_yards) -getbaseclasses(ounces) -getbaseclasses(pounds) -getbaseclasses(cubic_feet) -getbaseclasses(cubic_centimetres) -getbaseclasses(Saturday) -getbaseclasses(September) -getbaseclasses(file_specification) -getbaseclasses(text) -getbaseclasses(window) -getbaseclasses(file) -getbaseclasses(selection_2d_object) -getbaseclasses(alias) -getbaseclasses(application) -getbaseclasses(insertion_point) -getbaseclasses(document) -getbaseclasses(paragraph) -getbaseclasses(character) -getbaseclasses(text_flow) -getbaseclasses(text_style_info) -getbaseclasses(line) -getbaseclasses(word) -getbaseclasses(text) -getbaseclasses(graphic_group) -getbaseclasses(oval) -getbaseclasses(graphic_text) -getbaseclasses(graphic_shape) -getbaseclasses(graphic_line) -getbaseclasses(graphic_object) -getbaseclasses(drawing_area) -getbaseclasses(polygon) -getbaseclasses(pixel) -getbaseclasses(rounded_rectangle) -getbaseclasses(arc) -getbaseclasses(pixel_map) -getbaseclasses(rectangle) -getbaseclasses(graphic_group) -getbaseclasses(drawing_area) -getbaseclasses(cell) -getbaseclasses(column) -getbaseclasses(table) -getbaseclasses(row) -getbaseclasses(AppleTalk_address) -getbaseclasses(address_specification) -getbaseclasses(Token_Ring_address) -getbaseclasses(FireWire_address) -getbaseclasses(bus_slot) -getbaseclasses(SCSI_address) -getbaseclasses(ADB_address) -getbaseclasses(USB_address) -getbaseclasses(device_specification) -getbaseclasses(LocalTalk_address) -getbaseclasses(IP_address) -getbaseclasses(Ethernet_address) -getbaseclasses(small_integer) -getbaseclasses(RGB16_color) -getbaseclasses(version) -getbaseclasses(system_dictionary) -getbaseclasses(color_table) -getbaseclasses(fixed_point) -getbaseclasses(plain_text) -getbaseclasses(type_element_info) -getbaseclasses(location_reference) -getbaseclasses(machine_location) -getbaseclasses(PostScript_picture) -getbaseclasses(point) -getbaseclasses(menu_item) -getbaseclasses(pixel_map_record) -getbaseclasses(application_dictionary) -getbaseclasses(unsigned_integer) -getbaseclasses(menu) -getbaseclasses(fixed_rectangle) -getbaseclasses(long_fixed_rectangle) -getbaseclasses(type_event_info) -getbaseclasses(small_real) -getbaseclasses(type_suite_info) -getbaseclasses(rotation) -getbaseclasses(type_parameter_info) -getbaseclasses(fixed) -getbaseclasses(scrap_styles) -getbaseclasses(long_point) -getbaseclasses(type_class_info) -getbaseclasses(TIFF_picture) -getbaseclasses(RGB96_color) -getbaseclasses(dash_style) -getbaseclasses(extended_real) -getbaseclasses(type_property_info) -getbaseclasses(long_fixed_point) -getbaseclasses(long_rectangle) -getbaseclasses(bounding_rectangle) -getbaseclasses(double_integer) -getbaseclasses(long_fixed) -getbaseclasses(null) -getbaseclasses(target_id) - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'jul ' : July, - 'may ' : May, - 'TEXT' : string, - 'cmet' : cubic_metres, - 'STXT' : styled_text, - 'nds ' : number_2c__date_or_text, - 'feet' : feet, - 'feb ' : February, - 'nmbr' : number, - 'mile' : miles, - 'kprs' : keystroke, - 'psct' : writing_code, - 'degf' : degrees_Fahrenheit, - 'lrs ' : list_2c__record_or_text, - 'ldt ' : date, - 'litr' : litres, - 'nd ' : number_or_date, - 'cmtr' : centimetres, - 'evnt' : event, - 'pstr' : Pascal_string, - 'zone' : zone, - 'PICT' : picture, - 'ls ' : list_or_string, - 'long' : integer, - 'sf ' : alias_or_string, - 'citl' : writing_code_info, - 'citm' : text_item, - 'mach' : machine, - 'type' : type_class, - 'prep' : preposition, - 'tue ' : Tuesday, - 'case' : upper_case, - 'vers' : version, - 'wed ' : Wednesday, - 'dec ' : December, - 'sqkm' : square_kilometres, - 'obj ' : reference, - 'vect' : vector, - 'wkdy' : weekday, - 'cRGB' : RGB_color, - 'sun ' : Sunday, - 'itxt' : international_text, - 'scnd' : seconds, - 'mar ' : March, - 'kmtr' : kilometres, - 'sqft' : square_feet, - 'list' : list, - 'doub' : real, - 'nov ' : November, - 'qrts' : quarts, - 'degc' : degrees_Celsius, - 'msng' : missing_value, - 'alis' : alias, - 'jan ' : January, - 'metr' : metres, - 'mnth' : month, - 'ns ' : number_or_string, - 'jun ' : June, - 'aug ' : August, - 'llst' : linked_list, - 'styl' : styled_Clipboard_text, - 'encs' : encoded_string, - 'galn' : gallons, - 'cuin' : cubic_inches, - 'fri ' : Friday, - 'sutx' : styled_Unicode_text, - 'lr ' : list_or_record, - 'degk' : degrees_Kelvin, - 'mon ' : Monday, - 'snd ' : sound, - 'pcls' : class_, - 'kgrm' : kilograms, - 'scpt' : script, - '****' : anything, - 'prop' : property, - 'reco' : record, - 'bool' : boolean, - 'oct ' : October, - 'sqrm' : square_metres, - 'inch' : inches, - 'kfrm' : reference_form, - 'cobj' : item, - 'gram' : grams, - 'cha ' : character, - 'apr ' : April, - 'undf' : empty_ae_name_, - 'capp' : app, - 'enum' : constant, - 'hand' : handler, - 'sqmi' : square_miles, - 'rdat' : data, - 'cstr' : C_string, - 'utxt' : Unicode_text, - 'thu ' : Thursday, - 'sqyd' : square_yards, - 'yard' : yards, - 'cyrd' : cubic_yards, - 'ozs ' : ounces, - 'lbs ' : pounds, - 'cfet' : cubic_feet, - 'ccmt' : cubic_centimetres, - 'sat ' : Saturday, - 'sep ' : September, - 'fss ' : file_specification, - 'ctxt' : text, - 'cwin' : window, - 'file' : file, - 'csel' : selection_2d_object, - 'alis' : alias, - 'capp' : application, - 'cins' : insertion_point, - 'docu' : document, - 'cpar' : paragraph, - 'cha ' : character, - 'cflo' : text_flow, - 'tsty' : text_style_info, - 'clin' : line, - 'cwor' : word, - 'ctxt' : text, - 'cpic' : graphic_group, - 'covl' : oval, - 'cgtx' : graphic_text, - 'cgsh' : graphic_shape, - 'glin' : graphic_line, - 'cgob' : graphic_object, - 'cdrw' : drawing_area, - 'cpgn' : polygon, - 'cpxl' : pixel, - 'crrc' : rounded_rectangle, - 'carc' : arc, - 'cpix' : pixel_map, - 'crec' : rectangle, - 'cpic' : graphic_group, - 'cdrw' : drawing_area, - 'ccel' : cell, - 'ccol' : column, - 'ctbl' : table, - 'crow' : row, - 'cat ' : AppleTalk_address, - 'cadr' : address_specification, - 'ctok' : Token_Ring_address, - 'cfw ' : FireWire_address, - 'cbus' : bus_slot, - 'cscs' : SCSI_address, - 'cadb' : ADB_address, - 'cusb' : USB_address, - 'cdev' : device_specification, - 'clt ' : LocalTalk_address, - 'cip ' : IP_address, - 'cen ' : Ethernet_address, - 'shor' : small_integer, - 'tr16' : RGB16_color, - 'vers' : version, - 'aeut' : system_dictionary, - 'clrt' : color_table, - 'fpnt' : fixed_point, - 'TEXT' : plain_text, - 'elin' : type_element_info, - 'insl' : location_reference, - 'mLoc' : machine_location, - 'EPS ' : PostScript_picture, - 'QDpt' : point, - 'cmen' : menu_item, - 'tpmm' : pixel_map_record, - 'aete' : application_dictionary, - 'magn' : unsigned_integer, - 'cmnu' : menu, - 'frct' : fixed_rectangle, - 'lfrc' : long_fixed_rectangle, - 'evin' : type_event_info, - 'sing' : small_real, - 'suin' : type_suite_info, - 'trot' : rotation, - 'pmin' : type_parameter_info, - 'fixd' : fixed, - 'styl' : scrap_styles, - 'lpnt' : long_point, - 'gcli' : type_class_info, - 'TIFF' : TIFF_picture, - 'tr96' : RGB96_color, - 'tdas' : dash_style, - 'exte' : extended_real, - 'pinf' : type_property_info, - 'lfpt' : long_fixed_point, - 'lrct' : long_rectangle, - 'qdrt' : bounding_rectangle, - 'comp' : double_integer, - 'lfxd' : long_fixed, - 'null' : null, - 'targ' : target_id, -} - - -class StdSuites(AppleScript_Suite_Events, - Required_Suite_Events, - Standard_Suite_Events, - Text_Suite_Events, - QuickDraw_Graphics_Suite_Events, - QuickDraw_Graphics_Suppleme_Events, - Table_Suite_Events, - Macintosh_Connectivity_Clas_Events, - Type_Names_Suite_Events, - aetools.TalkTo): - _signature = 'ascr' - - _moduleName = 'StdSuites' - diff --git a/Mac/Lib/lib-scriptpackages/Terminal/Terminal_Suite.py b/Mac/Lib/lib-scriptpackages/Terminal/Terminal_Suite.py deleted file mode 100644 index 17aaf47..0000000 --- a/Mac/Lib/lib-scriptpackages/Terminal/Terminal_Suite.py +++ /dev/null @@ -1,317 +0,0 @@ -"""Suite Terminal Suite: Terms and Events for controlling the Terminal application -Level 1, version 1 - -Generated from /Applications/Utilities/Terminal.app/Contents/Resources/Terminal.rsrc -AETE/AEUT resource version 1/0, language 0, script 0 -""" - -import aetools -import MacOS - -_code = 'trmx' - -class Terminal_Suite_Events: - - def run(self, _no_object=None, _attributes={}, **_arguments): - """run: Run the Terminal application - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'core' - _subcode = 'oapp' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def quit(self, _no_object=None, _attributes={}, **_arguments): - """quit: Quit the Terminal application - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'core' - _subcode = 'quit' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def count(self, _object=None, _attributes={}, **_arguments): - """count: Return the number of elements of a particular class within an object - Required argument: a reference to the objects to be counted - Keyword argument _attributes: AppleEvent attribute dictionary - Returns: the number of objects counted - """ - _code = 'core' - _subcode = 'cnte' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_do_script = { - 'with_command' : 'cmnd', - } - - def do_script(self, _no_object=None, _attributes={}, **_arguments): - """do script: Run a UNIX shell script or command - Keyword argument with_command: data to be passed to the Terminal application as the command line - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'core' - _subcode = 'dosc' - - aetools.keysubst(_arguments, self._argmap_do_script) - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - -class application(aetools.ComponentItem): - """application - The Terminal program """ - want = 'capp' -class name(aetools.NProperty): - """name - the name of the application """ - which = 'pnam' - want = 'TEXT' -class version(aetools.NProperty): - """version - the version of the application """ - which = 'vers' - want = 'vers' -class frontmost(aetools.NProperty): - """frontmost - Is this the active application? """ - which = 'pisf' - want = 'bool' -# element 'cwin' as ['name', 'indx'] - -applications = application - -class window(aetools.ComponentItem): - """window - A Terminal window """ - want = 'cwin' -class index(aetools.NProperty): - """index - the number of the window """ - which = 'pidx' - want = 'long' -class visible(aetools.NProperty): - """visible - Is the window visible? """ - which = 'pvis' - want = 'bool' -class has_close_box(aetools.NProperty): - """has close box - Does the window have a close box? """ - which = 'hclb' - want = 'bool' -class has_title_bar(aetools.NProperty): - """has title bar - Does the window have a title bar? """ - which = 'ptit' - want = 'bool' -class floating(aetools.NProperty): - """floating - Does the window float? """ - which = 'isfl' - want = 'bool' -class modal(aetools.NProperty): - """modal - Is the window modal? """ - which = 'pmod' - want = 'bool' -class resizable(aetools.NProperty): - """resizable - Is the window resizable? """ - which = 'prsz' - want = 'bool' -class zoomable(aetools.NProperty): - """zoomable - Is the window zoomable? """ - which = 'iszm' - want = 'bool' -class zoomed(aetools.NProperty): - """zoomed - Is the window zoomed? """ - which = 'pzum' - want = 'bool' -class miniaturizable(aetools.NProperty): - """miniaturizable - Is the window miniaturizable? """ - which = 'mini' - want = 'bool' -class miniaturized(aetools.NProperty): - """miniaturized - Is the window miniaturized? """ - which = 'mina' - want = 'bool' -class position(aetools.NProperty): - """position - the upper left coordinates of window """ - which = 'ppos' - want = 'QDpt' -class bounds(aetools.NProperty): - """bounds - the boundary rectangle for the window """ - which = 'pbnd' - want = 'qdrt' -class title_displays_device_name(aetools.NProperty): - """title displays device name - Does the title for the window contain the device name? """ - which = 'tddn' - want = 'bool' -class title_displays_shell_path(aetools.NProperty): - """title displays shell path - Does the title for the window contain the shell path? """ - which = 'tdsp' - want = 'bool' -class title_displays_window_size(aetools.NProperty): - """title displays window size - Does the title for the window contain the window size? """ - which = 'tdws' - want = 'bool' -class title_displays_file_name(aetools.NProperty): - """title displays file name - Does the title for the window contain the file name? """ - which = 'tdfn' - want = 'bool' -class title_displays_custom_title(aetools.NProperty): - """title displays custom title - Does the title for the window contain a custom title? """ - which = 'tdct' - want = 'bool' -class custom_title(aetools.NProperty): - """custom title - the custom title for the window """ - which = 'titl' - want = 'TEXT' -class contents(aetools.NProperty): - """contents - the currently visible contents of the window """ - which = 'pcnt' - want = 'TEXT' -class history(aetools.NProperty): - """history - the contents of the entire scrolling buffer of the window """ - which = 'hist' - want = 'TEXT' -class number_of_rows(aetools.NProperty): - """number of rows - the number of rows in the window """ - which = 'crow' - want = 'long' -class number_of_columns(aetools.NProperty): - """number of columns - the number of columns in the window """ - which = 'ccol' - want = 'long' -class cursor_color(aetools.NProperty): - """cursor color - the cursor color for the window """ - which = 'pcuc' - want = 'TEXT' -class background_color(aetools.NProperty): - """background color - the background color for the window """ - which = 'pbcl' - want = 'TEXT' -class normal_text_color(aetools.NProperty): - """normal text color - the normal text color for the window """ - which = 'ptxc' - want = 'TEXT' -class bold_text_color(aetools.NProperty): - """bold text color - the bold text color for the window """ - which = 'pbtc' - want = 'TEXT' - -windows = window -application._propdict = { - 'name' : name, - 'version' : version, - 'frontmost' : frontmost, -} -application._elemdict = { - 'window' : window, -} -window._propdict = { - 'name' : name, - 'index' : index, - 'visible' : visible, - 'has_close_box' : has_close_box, - 'has_title_bar' : has_title_bar, - 'floating' : floating, - 'modal' : modal, - 'resizable' : resizable, - 'zoomable' : zoomable, - 'zoomed' : zoomed, - 'miniaturizable' : miniaturizable, - 'miniaturized' : miniaturized, - 'position' : position, - 'bounds' : bounds, - 'title_displays_device_name' : title_displays_device_name, - 'title_displays_shell_path' : title_displays_shell_path, - 'title_displays_window_size' : title_displays_window_size, - 'title_displays_file_name' : title_displays_file_name, - 'title_displays_custom_title' : title_displays_custom_title, - 'custom_title' : custom_title, - 'contents' : contents, - 'history' : history, - 'number_of_rows' : number_of_rows, - 'number_of_columns' : number_of_columns, - 'cursor_color' : cursor_color, - 'background_color' : background_color, - 'normal_text_color' : normal_text_color, - 'bold_text_color' : bold_text_color, -} -window._elemdict = { -} - -# -# Indices of types declared in this module -# -_classdeclarations = { - 'cwin' : window, - 'capp' : application, -} - -_propdeclarations = { - 'tdfn' : title_displays_file_name, - 'mini' : miniaturizable, - 'vers' : version, - 'pidx' : index, - 'prsz' : resizable, - 'pbnd' : bounds, - 'mina' : miniaturized, - 'pbcl' : background_color, - 'tddn' : title_displays_device_name, - 'iszm' : zoomable, - 'hclb' : has_close_box, - 'isfl' : floating, - 'pcnt' : contents, - 'ppos' : position, - 'ptxc' : normal_text_color, - 'pcuc' : cursor_color, - 'tdsp' : title_displays_shell_path, - 'pvis' : visible, - 'tdct' : title_displays_custom_title, - 'pmod' : modal, - 'titl' : custom_title, - 'pisf' : frontmost, - 'hist' : history, - 'pzum' : zoomed, - 'crow' : number_of_rows, - 'pnam' : name, - 'ccol' : number_of_columns, - 'tdws' : title_displays_window_size, - 'pbtc' : bold_text_color, - 'ptit' : has_title_bar, -} - -_compdeclarations = { -} - -_enumdeclarations = { -} diff --git a/Mac/Lib/lib-scriptpackages/Terminal/__init__.py b/Mac/Lib/lib-scriptpackages/Terminal/__init__.py deleted file mode 100644 index af92467..0000000 --- a/Mac/Lib/lib-scriptpackages/Terminal/__init__.py +++ /dev/null @@ -1,28 +0,0 @@ -""" -Package generated from /Applications/Utilities/Terminal.app/Contents/Resources/Terminal.rsrc -Resource aete resid 0 Terminal Terminology -""" -# Note: hand-edited _signature to 'trmx'. - -import aetools -Error = aetools.Error -import Terminal_Suite - - -_code_to_module = { - 'trmx' : Terminal_Suite, -} - - - -_code_to_fullname = { - 'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'), -} - -from Terminal_Suite import * - - -class Terminal(Terminal_Suite_Events, - aetools.TalkTo): - _signature = 'trmx' - diff --git a/Mac/Lib/lib-scriptpackages/_builtinSuites/__init__.py b/Mac/Lib/lib-scriptpackages/_builtinSuites/__init__.py deleted file mode 100644 index ac3c0ba..0000000 --- a/Mac/Lib/lib-scriptpackages/_builtinSuites/__init__.py +++ /dev/null @@ -1,28 +0,0 @@ -""" -Manually generated suite used as base class for StdSuites Required and Standard -suites. This is needed because the events and enums in this suite belong -in the Required suite according to the Apple docs, but they often seem to be -in the Standard suite. -""" -import aetools -import builtin_Suite - - -_code_to_module = { - 'reqd' : builtin_Suite, - 'core' : builtin_Suite, -} - - - -_code_to_fullname = { - 'reqd' : ('_builtinSuites.builtin_Suite', 'builtin_Suite'), - 'core' : ('_builtinSuites.builtin_Suite', 'builtin_Suite'), -} - -from builtin_Suite import * - -class _builtinSuites(builtin_Suite_Events, - aetools.TalkTo): - _signature = 'ascr' - diff --git a/Mac/Lib/lib-scriptpackages/_builtinSuites/builtin_Suite.py b/Mac/Lib/lib-scriptpackages/_builtinSuites/builtin_Suite.py deleted file mode 100644 index 117eedd..0000000 --- a/Mac/Lib/lib-scriptpackages/_builtinSuites/builtin_Suite.py +++ /dev/null @@ -1,140 +0,0 @@ -"""Suite builtin_Suite: Every application supports open, reopen, print, run, and quit -Level 1, version 1 -""" - -import aetools -import MacOS - -_code = 'aevt' - -class builtin_Suite_Events: - - def open(self, _object, _attributes={}, **_arguments): - """open: Open the specified object(s) - Required argument: list of objects to open - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'odoc' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def run(self, _no_object=None, _attributes={}, **_arguments): - """run: Run an application. Most applications will open an empty, untitled window. - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'oapp' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def reopen(self, _no_object=None, _attributes={}, **_arguments): - """reopen: Reactivate a running application. Some applications will open a new untitled window if no window is open. - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'rapp' - - if _arguments: raise TypeError, 'No optional args expected' - if _no_object != None: raise TypeError, 'No direct arg expected' - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - def _print(self, _object, _attributes={}, **_arguments): - """print: Print the specified object(s) - Required argument: list of objects to print - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'pdoc' - - if _arguments: raise TypeError, 'No optional args expected' - _arguments['----'] = _object - - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_quit = { - 'saving' : 'savo', - } - - def quit(self, _no_object=None, _attributes={}, **_arguments): - """quit: Quit an application - Keyword argument saving: specifies whether to save currently open documents - Keyword argument _attributes: AppleEvent attribute dictionary - """ - _code = 'aevt' - _subcode = 'quit' - - aetools.keysubst(_arguments, self._argmap_quit) - if _no_object != None: raise TypeError, 'No direct arg expected' - - aetools.enumsubst(_arguments, 'savo', _Enum_savo) - - _reply, _arguments, _attributes = self.send(_code, _subcode, - _arguments, _attributes) - if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) - # XXXX Optionally decode result - if _arguments.has_key('----'): - return _arguments['----'] - - _argmap_close = { - 'saving' : 'savo', - 'saving_in' : 'kfil', - } - -_Enum_savo = { - 'yes' : 'yes ', # Save objects now - 'no' : 'no ', # Do not save objects - 'ask' : 'ask ', # Ask the user whether to save -} - -# -# Indices of types declared in this module -# -_classdeclarations = { -} - -_propdeclarations = { -} - -_compdeclarations = { -} - -_enumdeclarations = { - 'savo' : _Enum_savo, -} |