summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/toolbox
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Lib/toolbox')
-rw-r--r--Mac/Lib/toolbox/AppleScript_Suite.py1051
-rw-r--r--Mac/Lib/toolbox/Finder_7_0_Suite.py310
-rw-r--r--Mac/Lib/toolbox/Finder_Suite.py740
-rw-r--r--Mac/Lib/toolbox/Metrowerks_Shell_Suite.py992
-rw-r--r--Mac/Lib/toolbox/Required_Suite.py92
-rw-r--r--Mac/Lib/toolbox/Standard_Suite.py493
-rw-r--r--Mac/Lib/toolbox/Standard_URL_suite.py47
-rw-r--r--Mac/Lib/toolbox/WWW_Suite.py411
8 files changed, 0 insertions, 4136 deletions
diff --git a/Mac/Lib/toolbox/AppleScript_Suite.py b/Mac/Lib/toolbox/AppleScript_Suite.py
deleted file mode 100644
index 2bff451..0000000
--- a/Mac/Lib/toolbox/AppleScript_Suite.py
+++ /dev/null
@@ -1,1051 +0,0 @@
-"""Suite AppleScript Suite: Goodies for Gustav
-Level 1, version 1
-
-Generated from flap:Systeemmap:Extensies:Script-extra's:Dialecten:Engels dialect
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'ascr'
-
-_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
-}
-
-class AppleScript_Suite:
-
- def activate(self, _no_object=None, _attributes={}, **_arguments):
- """activate: Bring 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.has_key('errn'):
- 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: anything
- 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.has_key('errn'):
- 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:
- 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.has_key('errn'):
- 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:
- 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.has_key('errn'):
- 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 an object to the clipboard
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def do_script(self, _object, _attributes={}, **_arguments):
- """do script: Execute a script
- Required argument: the script to execute
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: anything
- """
- _code = 'misc'
- _subcode = 'dosc'
-
- if _arguments: raise TypeError, 'No optional args expected'
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def idle(self, _no_object=None, _attributes={}, **_arguments):
- """idle: Sent to a script application when it is idle
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: 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.has_key('errn'):
- 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
- Returns: anything
- """
- _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.has_key('errn'):
- 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: Magic tell event for event logging
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: anything
- """
- _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.has_key('errn'):
- 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: Start an application for scripting
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: anything
- """
- _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.has_key('errn'):
- 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: another parameter to the error
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: anything
- """
- _code = 'ascr'
- _subcode = 'err '
-
- aetools.keysubst(_arguments, self._argmap_error)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_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',
- 'given' : 'givn',
- 'with' : 'with',
- 'without' : 'wout',
- 'about' : 'abou',
- 'since' : 'snce',
- 'until' : 'till',
- 'returning' : 'Krtn',
- }
-
- def Call_a5_subroutine(self, _object=None, _attributes={}, **_arguments):
- """Call€subroutine: 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 given: a preposition
- Keyword argument with: special preposition for setting event properties
- Keyword argument without: special preposition for clearing event properties
- Keyword argument about: a preposition
- Keyword argument since: a preposition
- Keyword argument until: a preposition
- Keyword argument returning: specifies a pattern to match results to
- 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.has_key('errn'):
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def _ad_(self, _object, _attributes={}, **_arguments):
- """‚: Inequality
- Required argument: an AE object reference
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: anything
- """
- _code = 'ascr'
- _subcode = '\255 '
-
- if _arguments: raise TypeError, 'No optional args expected'
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def _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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def _d6_(self, _object, _attributes={}, **_arguments):
- """÷: 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def _b3_(self, _object, _attributes={}, **_arguments):
- """„: 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.has_key('errn'):
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def _b2_(self, _object, _attributes={}, **_arguments):
- """¾: 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
-
-# Class '' ('undf') -- 'the undefined value'
-
-# Class 'upper case' ('case') -- 'Text with lower case converted to upper case'
-
-# Class 'machines' ('mach') -- 'every computer'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'machine' ('mach') -- 'A computer'
-
-# Class 'zones' ('zone') -- 'every AppleTalk zone'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'zone' ('zone') -- 'AppleTalk zone'
-
-# Class 'seconds' ('scnd') -- 'more than one second'
-
-# Class 'item' ('cobj') -- 'An item of any type'
-# property 'id' ('ID ') 'long' -- 'the unique id number of this object' [mutable]
-
-# Class 'items' ('cobj') -- 'Every item'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'text items' ('citm') -- ''
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'text item' ('citm') -- ''
-
-# Class 'date' ('ldt ') -- 'Absolute date and time values'
-# property 'weekday' ('wkdy') 'wkdy' -- 'the day of a week of a date' []
-# property 'month' ('mnth') 'mnth' -- 'the month of a date' []
-# property 'day' ('day ') 'long' -- 'the day of the month of a date' []
-# property 'year' ('year') 'long' -- 'the year of a date' []
-# property 'time' ('time') 'long' -- 'the time since midnight of a date' []
-# property 'date string' ('dstr') 'TEXT' -- 'the date portion of a date-time value as a string' []
-# property 'time string' ('tstr') 'TEXT' -- 'the time portion of a date-time value as a string' []
-
-# Class 'dates' ('ldt ') -- 'every date'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'month' ('mnth') -- 'a month'
-
-# Class 'months' ('mnth') -- 'every month'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'January' ('jan ') -- "It's June in January..."
-
-# Class 'February' ('feb ') -- 'the month of February'
-
-# Class 'March' ('mar ') -- 'the month of March'
-
-# Class 'April' ('apr ') -- 'the month of April'
-
-# Class 'May' ('may ') -- 'the very merry month of May'
-
-# Class 'June' ('jun ') -- 'the month of June'
-
-# Class 'July' ('jul ') -- 'the month of July'
-
-# Class 'August' ('aug ') -- 'the month of August'
-
-# Class 'September' ('sep ') -- 'the month of September'
-
-# Class 'October' ('oct ') -- 'the month of October'
-
-# Class 'November' ('nov ') -- 'the month of November'
-
-# Class 'December' ('dec ') -- 'the month of December'
-
-# Class 'weekday' ('wkdy') -- 'a weekday'
-
-# Class 'weekdays' ('wkdy') -- 'every weekday'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'Sunday' ('sun ') -- 'Sunday Bloody Sunday'
-
-# Class 'Monday' ('mon ') -- 'Blue Monday'
-
-# Class 'Tuesday' ('tue ') -- 'Ruby Tuesday'
-
-# Class 'Wednesday' ('wed ') -- 'Wednesday Week'
-
-# Class 'Thursday' ('thu ') -- 'Thursday Afternoon'
-
-# Class 'Friday' ('fri ') -- 'Friday'
-
-# Class 'Saturday' ('sat ') -- "Saturday Night's Alright for Fighting"
-
-# Class 'RGB color' ('cRGB') -- 'Three numbers specifying red, green, blue color values'
-
-# Class 'RGB colors' ('cRGB') -- 'every RGB color'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'integer' ('long') -- 'An integral number'
-
-# Class 'integers' ('long') -- 'every integer'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'boolean' ('bool') -- 'A true or false value'
-
-# Class 'booleans' ('bool') -- 'every boolean'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'real' ('doub') -- 'A real number'
-
-# Class 'reals' ('doub') -- 'every real'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'list' ('list') -- 'An ordered collection of items'
-# property 'length' ('leng') 'long' -- 'the length of a list' []
-
-# Class 'lists' ('list') -- 'every list'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'linked list' ('llst') -- 'An ordered collection of items'
-# property 'length' ('leng') 'long' -- 'the length of a list' []
-
-# Class 'linked lists' ('llst') -- 'every linked list'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'vector' ('vect') -- 'An ordered collection of items'
-# property 'length' ('leng') 'long' -- 'the length of a list' []
-
-# Class 'vectors' ('vect') -- 'every vector'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'record' ('reco') -- 'A set of labeled items'
-
-# Class 'records' ('reco') -- 'every record'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'script' ('scpt') -- 'An AppleScript script'
-# property 'parent' ('pare') 'scpt' -- 'the parent of a script' []
-
-# Class 'scripts' ('scpt') -- 'every script'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'string' ('TEXT') -- 'a sequence of characters'
-
-# Class 'strings' ('TEXT') -- 'every string'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'styled text' ('STXT') -- 'a sequence of characters with style'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'number' ('nmbr') -- 'an integer or floating point number'
-
-# Class 'numbers' ('nmbr') -- 'every number'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'class' ('pcls') -- 'the type of a value'
-# property 'inherits' ('c@#^') 'pcls' -- 'classes to inherit properties from' []
-
-# Class 'classes' ('pcls') -- 'every class'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'event' ('evnt') -- 'an AppleEvents event'
-
-# Class 'events' ('evnt') -- 'every event'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'property' ('prop') -- 'an AppleEvents property'
-
-# Class 'properties' ('prop') -- 'every property'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'constant' ('enum') -- 'A constant value'
-
-# Class 'constants' ('enum') -- 'every constant'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'preposition' ('prep') -- 'an AppleEvents preposition'
-
-# Class 'prepositions' ('prep') -- 'every preposition'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'key' ('keyf') -- 'an AppleEvents key form'
-
-# Class 'keys' ('keyf') -- 'every key'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'picture' ('PICT') -- 'A picture'
-
-# Class 'pictures' ('PICT') -- 'every picture'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'reference' ('obj ') -- 'An AppleScript reference'
-
-# Class 'references' ('obj ') -- 'every reference'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'data' ('rdat') -- 'An AppleScript raw data object'
-
-# Class 'handler' ('hand') -- 'An AppleScript handler'
-
-# Class 'handlers' ('hand') -- 'every handler'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'list or record' ('lr ') -- 'a list or record'
-
-# Class 'list or string' ('ls ') -- 'a list or string'
-
-# Class 'list, record or text' ('lrs ') -- 'a list, record or text'
-
-# Class 'number or date' ('nd ') -- 'a number or date'
-
-# Class 'number, date or text' ('nds ') -- 'a number, date or text'
-
-# Class 'alias' ('alis') -- 'a reference to an existing file'
-
-# Class 'aliases' ('alis') -- 'every alias'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'application' ('capp') -- 'specifies global properties of AppleScript'
-# property 'result' ('rslt') 'cobj' -- 'the last result of evaluation' []
-# property 'space' ('spac') 'TEXT' -- 'a space character' []
-# property 'return' ('ret ') 'TEXT' -- 'a return character' []
-# property 'tab' ('tab ') 'TEXT' -- 'a tab character' []
-# property 'minutes' ('min ') 'TEXT' -- 'the number of seconds in a minute' []
-# property 'hours' ('hour') 'TEXT' -- 'the number of seconds in an hour' []
-# property 'days' ('days') 'TEXT' -- 'the number of seconds in a day' []
-# property 'weeks' ('week') 'TEXT' -- 'the number of seconds in a week' []
-# property 'pi' ('pi ') 'doub' -- 'the constant pi' []
-# property 'print length' ('prln') 'long' -- 'the maximum length to print' []
-# property 'print depth' ('prdp') 'long' -- 'the maximum depth to print' []
-# property 'reverse' ('rvse') 'list' -- 'the reverse of a list' []
-# property 'rest' ('rest') 'list' -- 'the rest of a list' []
-# property 'text item delimiters' ('txdl') 'list' -- 'the text item delimiters of a string' []
-# property 'AppleScript' ('ascr') 'scpt' -- 'the top-level script object' []
-
-# Class 'applications' ('capp') -- 'every application'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'app' ('capp') -- 'Short name for application'
-
-# Class 'version' ('vers') -- 'a version value'
-
-# Class 'writing code info' ('citl') -- 'Script code and language code of text run'
-# property 'script code' ('pscd') 'shor' -- 'the script code for the text' []
-# property 'language code' ('plcd') 'shor' -- 'the language code for the text' []
-
-# Class 'writing code infos' ('citl') -- 'every writing code info'
-# property '' ('c@#!') 'type' -- '' [0]
diff --git a/Mac/Lib/toolbox/Finder_7_0_Suite.py b/Mac/Lib/toolbox/Finder_7_0_Suite.py
deleted file mode 100644
index b6282dd..0000000
--- a/Mac/Lib/toolbox/Finder_7_0_Suite.py
+++ /dev/null
@@ -1,310 +0,0 @@
-"""Suite 7.0 Finder Suite: This is the original Finder suite. These events will be supported in the future, but the syntax may be changed in a future Finder release.
-Level 1, version 1
-
-Generated from flap:Systeemmap:Finder
-AETE/AEUT resource version 0/149, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'FNDR'
-
-class Finder_7_0_Suite:
-
- def open_about_box(self, _no_object=None, _attributes={}, **_arguments):
- """open about box: Open the 'About This Mac' window
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'aevt'
- _subcode = 'abou'
-
- if _arguments: raise TypeError, 'No optional args expected'
- if _no_object != None: raise TypeError, 'No direct arg expected'
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_copy_to = {
- '_from' : 'fsel',
- }
-
- def copy_to(self, _object, _attributes={}, **_arguments):
- """copy to: Copies one or more items into a folder
- Required argument: Alias for folder into which the items are copied
- Keyword argument _from: List of aliases for items to be copied
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'FNDR'
- _subcode = 'drag'
-
- aetools.keysubst(_arguments, self._argmap_copy_to)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_duplicate = {
- 'items' : 'fsel',
- }
-
- def duplicate(self, _object, _attributes={}, **_arguments):
- """duplicate: Duplicate a set of items in a folder
- Required argument: Alias for folder containing the items
- Keyword argument items: List of aliases for items in the folder
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'FNDR'
- _subcode = 'sdup'
-
- aetools.keysubst(_arguments, self._argmap_duplicate)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def empty_trash(self, _no_object=None, _attributes={}, **_arguments):
- """empty trash: Empties the trash
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'FNDR'
- _subcode = 'empt'
-
- if _arguments: raise TypeError, 'No optional args expected'
- if _no_object != None: raise TypeError, 'No direct arg expected'
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_make_aliases_for = {
- 'items' : 'fsel',
- }
-
- def make_aliases_for(self, _object, _attributes={}, **_arguments):
- """make aliases for: Make aliases to items from a single folder
- Required argument: Alias for folder containing the items
- Keyword argument items: List of aliases for items in folder
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'FNDR'
- _subcode = 'sali'
-
- aetools.keysubst(_arguments, self._argmap_make_aliases_for)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_move_to = {
- '_from' : 'fsel',
- }
-
- def move_to(self, _object, _attributes={}, **_arguments):
- """move to: Move one or more items into a folder
- Required argument: Alias for destination folder
- Keyword argument _from: List of aliases for items to be moved
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'FNDR'
- _subcode = 'move'
-
- aetools.keysubst(_arguments, self._argmap_move_to)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def sleep(self, _no_object=None, _attributes={}, **_arguments):
- """sleep: Put portable into sleep mode
- 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.has_key('errn'):
- 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: Shuts down the Macintosh if all applications can quit
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_open = {
- 'items' : 'fsel',
- }
-
- def open(self, _object, _attributes={}, **_arguments):
- """open: Open folders, files, or applications from a given folder
- Required argument: Alias for folder containing the items
- Keyword argument items: List of aliases for items in the folder
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'FNDR'
- _subcode = 'sope'
-
- aetools.keysubst(_arguments, self._argmap_open)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap__print = {
- 'items' : 'fsel',
- }
-
- def _print(self, _object, _attributes={}, **_arguments):
- """print: Print items from a given folder
- Required argument: Alias for folder containing the items
- Keyword argument items: List of aliases for items in folder
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'FNDR'
- _subcode = 'spri'
-
- aetools.keysubst(_arguments, self._argmap__print)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_put_away = {
- 'items' : 'fsel',
- }
-
- def put_away(self, _object, _attributes={}, **_arguments):
- """put away: Put away items from a given folder
- Required argument: Alias for folder containing the items
- Keyword argument items: List of aliases to items in folder
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: undocumented, typecode 'alis'
- """
- _code = 'FNDR'
- _subcode = 'sput'
-
- aetools.keysubst(_arguments, self._argmap_put_away)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def restart(self, _no_object=None, _attributes={}, **_arguments):
- """restart: Restart the Macintosh
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_select = {
- 'items' : 'fsel',
- }
-
- def select(self, _object, _attributes={}, **_arguments):
- """select: Select items in a folder
- Required argument: Alias for folder containing the items
- Keyword argument items: List of aliases for items in folder
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'FNDR'
- _subcode = 'srev'
-
- aetools.keysubst(_arguments, self._argmap_select)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
diff --git a/Mac/Lib/toolbox/Finder_Suite.py b/Mac/Lib/toolbox/Finder_Suite.py
deleted file mode 100644
index 746de36..0000000
--- a/Mac/Lib/toolbox/Finder_Suite.py
+++ /dev/null
@@ -1,740 +0,0 @@
-"""Suite Finder Suite: Objects and Events for the Finder
-Level 1, version 1
-
-Generated from flap:Systeemmap:Extensies:Finder Script-extensie
-AETE/AEUT resource version 0/144, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'fndr'
-
-_Enum_vwby = {
- 'conflicts' : 'cflc', #
- 'existing_items' : 'exsi', #
- 'small_icon' : 'smic', #
- 'all' : 'kyal', #
-}
-
-_Enum_gsen = {
- 'CPU' : 'proc', #
- 'FPU' : 'fpu ', #
- 'MMU' : 'mmu ', #
- 'hardware' : 'hdwr', #
- 'operating_system' : 'os ', #
- 'sound_system' : 'snd ', #
- 'memory_available' : 'lram', #
- 'memory_installed' : 'ram ', #
-}
-
-class Finder_Suite:
-
- _argmap_clean_up = {
- 'by' : 'by ',
- }
-
- def clean_up(self, _object, _attributes={}, **_arguments):
- """clean up: Arrange items in window nicely
- Required argument: the window to clean up
- Keyword argument by: the order in which to clean up the objects
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _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.has_key('errn'):
- 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.has_key('errn'):
- 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: ³empty² and ³empty trash² 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.has_key('errn'):
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_put_away = {
- 'items' : 'fsel',
- }
-
- def put_away(self, _object, _attributes={}, **_arguments):
- """put away: Put away the specified object(s)
- Required argument: the items to put away
- Keyword argument items: DO NOT USE: provided for backwards compatibility with old event suite. Will be removed in future Finders
- 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
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def restart(self, _no_object=None, _attributes={}, **_arguments):
- """restart: Restart the Macintosh
- 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.has_key('errn'):
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def select(self, _object, _attributes={}, **_arguments):
- """select: 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.has_key('errn'):
- 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 Macintosh
- 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.has_key('errn'):
- 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: Sleep the Macintosh
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'fndr'
- _subcode = 'snoz'
-
- if _arguments: raise TypeError, 'No optional args expected'
- if _no_object != None: raise TypeError, 'No direct arg expected'
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _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
- 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.has_key('errn'):
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
-
-# Class 'accessory process' ('pcda') -- 'A process launched from a desk accessory file'
-# property 'desk accessory file' ('dafi') 'obj ' -- 'the desk accessory file from which this process was launched' []
-
-# Class 'accessory processes' ('pcda') -- 'every accessory process'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'accessory suitcase' ('dsut') -- 'A desk accessory suitcase'
-# element 'cobj' as ['indx', 'name']
-
-# Class 'accessory suitcases' ('dsut') -- 'every accessory suitcase'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'alias file' ('alia') -- 'An alias file (created with \322Make Alias\323)'
-# property 'original item' ('orig') 'obj ' -- 'the original item pointed to by the alias' []
-
-# Class 'alias files' ('alia') -- 'every alias file'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'application' ('capp') -- 'An application program'
-# property 'about this macintosh' ('abbx') 'obj ' -- 'the \322About this Macintosh\323 dialog, and the list of running processes displayed in it' []
-# property 'apple menu items folder' ('amnu') 'obj ' -- 'the special folder \322Apple Menu Items,\323 the contents of which appear in the Apple menu' []
-# property 'clipboard' ('pcli') 'obj ' -- "the Finder's clipboard window" []
-# property 'control panels folder' ('ctrl') 'obj ' -- 'the special folder \322Control Panels\323' []
-# property 'desktop' ('desk') 'obj ' -- 'the desktop' []
-# property 'extensions folder' ('extn') 'obj ' -- 'the special folder \322Extensions\323' []
-# property 'file sharing' ('fshr') 'bool' -- 'Is file sharing on?' [mutable]
-# property 'fonts folder' ('ffnt') 'obj ' -- 'the special folder \322Fonts\323' []
-# property 'frontmost' ('pisf') 'bool' -- 'Is this the frontmost application?' [mutable]
-# property 'insertion location' ('pins') 'obj ' -- 'the container that a new folder would appear in if \322New Folder\323 was selected' []
-# property 'largest free block' ('mfre') 'long' -- 'the largest free block of process memory available to launch an application' []
-# property 'preferences folder' ('pref') 'obj ' -- 'the special folder \322Preferences\323' []
-# property 'product version' ('ver2') 'itxt' -- 'the version of the System software running on this Macintosh' []
-# property 'selection' ('sele') 'obj ' -- 'the selection visible to the user' [mutable]
-# property 'sharing starting up' ('fsup') 'bool' -- 'Is File sharing in the process of starting up (still off, but soon to be on)?' []
-# property 'shortcuts' ('scut') 'obj ' -- "the \322Finder Shortcuts\323 item in the Finder's help menu" []
-# property 'shutdown items folder' ('shdf') 'obj ' -- 'the special folder \322Shutdown Items\323' []
-# property 'startup items folder' ('strt') 'obj ' -- 'the special folder \322Startup Items\323' []
-# property 'system folder' ('macs') 'obj ' -- 'the System folder' []
-# property 'temporary items folder' ('temp') 'obj ' -- 'the special folder \322Temporary Items\323 (invisible)' []
-# property 'version' ('vers') 'itxt' -- 'the version of the Finder Scripting Extension' []
-# property 'view preferences' ('pvwp') 'obj ' -- 'the view preferences control panel' []
-# property 'visible' ('pvis') 'bool' -- "Is the Finder's layer visible?" [mutable]
-# element 'dsut' as ['indx', 'name']
-# element 'alia' as ['indx', 'name']
-# element 'appf' as ['indx', 'name', 'ID ']
-# element 'ctnr' as ['indx', 'name']
-# element 'cwnd' as ['indx', 'name']
-# element 'dwnd' as ['indx', 'name']
-# element 'ccdv' as ['indx', 'name']
-# element 'dafi' as ['indx', 'name']
-# element 'cdsk' as ['indx', 'name']
-# element 'cdis' as ['indx', 'name', 'ID ']
-# element 'docf' as ['indx', 'name']
-# element 'file' as ['indx', 'name']
-# element 'cfol' as ['indx', 'name', 'ID ']
-# element 'fntf' as ['indx', 'name']
-# element 'fsut' as ['indx', 'name']
-# element 'iwnd' as ['indx', 'name']
-# element 'cobj' as ['indx', 'name']
-# element 'sctr' as ['indx', 'name']
-# element 'swnd' as ['indx', 'name']
-# element 'sndf' as ['indx', 'name']
-# element 'stcs' as ['indx', 'name']
-# element 'ctrs' as ['indx', 'name']
-# element 'cwin' as ['indx', 'name']
-
-# Class 'application file' ('appf') -- "An application's file on disk"
-# property 'minimum partition size' ('mprt') 'long' -- 'the smallest memory size that the application can possibly be launched with' [mutable]
-# property 'partition size' ('appt') 'long' -- 'the memory size that the application will be launched with' [mutable]
-# property 'scriptable' ('isab') 'bool' -- 'Is this application high-level event aware (accepts open application, open document, print document, and quit)?' []
-# property 'suggested partition size' ('sprt') 'long' -- 'the memory size that the developer recommends that the application should be launched with' []
-
-# Class 'application files' ('appf') -- 'every application file'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'application process' ('pcap') -- 'A process launched from an application file'
-# property 'application file' ('appf') 'appf' -- 'the application file from which this process was launched' []
-
-# Class 'application processes' ('pcap') -- 'every application process'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'container' ('ctnr') -- 'An item that contains other items'
-# property 'completely expanded' ('pexc') 'bool' -- 'Is the container and all of its children open in outline view?' [mutable]
-# property 'container window' ('cwnd') 'obj ' -- 'the main window for the container' []
-# property 'entire contents' ('ects') 'obj ' -- 'the entire contents of the container, including the contents of its children' []
-# property 'expandable' ('pexa') 'bool' -- 'Is the container capable of being expanded into outline view?' []
-# property 'expanded' ('pexp') 'bool' -- 'Is the container open in outline view?' [mutable]
-# property 'previous list view' ('svew') 'long' -- 'the last non-icon view (by name, by date, etc.) selected for the container (forgotten as soon as the window is closed)' []
-# property 'selection' ('sele') 'obj ' -- 'the selection visible to the user' [mutable]
-# property 'view' ('pvew') 'long' -- 'the view selected for the container (by icon, by name, by date, etc.)' [mutable]
-# element 'dsut' as ['indx', 'name']
-# element 'alia' as ['indx', 'name']
-# element 'appf' as ['indx', 'name']
-# element 'ctnr' as ['indx', 'name']
-# element 'ccdv' as ['indx', 'name']
-# element 'dafi' as ['indx', 'name']
-# element 'docf' as ['indx', 'name']
-# element 'file' as ['indx', 'name']
-# element 'cfol' as ['indx', 'name']
-# element 'fntf' as ['indx', 'name']
-# element 'fsut' as ['indx', 'name']
-# element 'cobj' as ['indx', 'name']
-# element 'sctr' as ['indx', 'name']
-# element 'sndf' as ['indx', 'name']
-# element 'stcs' as ['indx', 'name']
-
-# Class 'containers' ('ctnr') -- 'every container'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'container window' ('cwnd') -- 'A window that contains items'
-# property 'container' ('ctnr') 'obj ' -- 'the container this window is opened from' []
-# property 'disk' ('cdis') 'obj ' -- 'the disk on which the item this window was opened from is stored' []
-# property 'folder' ('cfol') 'obj ' -- 'the folder this window is opened from' []
-# property 'item' ('cobj') 'obj ' -- 'the item this window is opened from' []
-# property 'previous list view' ('svew') 'long' -- 'the last non-icon view (by name, by date, etc.) selected for the window (forgotten as soon as the window is closed)' []
-# property 'selection' ('sele') 'obj ' -- 'the selection visible to the user' [mutable]
-# property 'view' ('pvew') 'long' -- 'the view selected for the window (by icon, by name, by date, etc.)' [mutable]
-# element 'dsut' as ['indx', 'name']
-# element 'alia' as ['indx', 'name']
-# element 'appf' as ['indx', 'name']
-# element 'ctnr' as ['indx', 'name']
-# element 'ccdv' as ['indx', 'name']
-# element 'dafi' as ['indx', 'name']
-# element 'docf' as ['indx', 'name']
-# element 'file' as ['indx', 'name']
-# element 'cfol' as ['indx', 'name']
-# element 'fntf' as ['indx', 'name']
-# element 'fsut' as ['indx', 'name']
-# element 'cobj' as ['indx', 'name']
-# element 'sctr' as ['indx', 'name']
-# element 'sndf' as ['indx', 'name']
-# element 'stcs' as ['indx', 'name']
-
-# Class 'container windows' ('cwnd') -- 'every container window'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'content space' ('dwnd') -- 'All windows, including the desktop window (\322Window\323 does not include the desktop window)'
-
-# Class 'content spaces' ('dwnd') -- 'Every content space'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'control panel' ('ccdv') -- 'A control panel'
-# property 'calculate folder sizes' ('sfsz') 'bool' -- '(Views) Are folder sizes calculated and displayed in Finder list windows?' [mutable]
-# property 'comment heading' ('scom') 'bool' -- '(Views) Are comments displayed in Finder list windows?' [mutable]
-# property 'date heading' ('sdat') 'bool' -- '(Views) Are modification dates displayed in Finder list windows?' [mutable]
-# property 'disk information heading' ('sdin') 'bool' -- '(Views) Is information about the volume displayed in Finder list windows?' [mutable]
-# property 'icon size' ('lvis') 'long' -- '(Views) the size of icons displayed in Finder list windows' [mutable]
-# property 'kind heading' ('sknd') 'bool' -- '(Views) Are document kinds displayed in Finder list windows?' [mutable]
-# property 'label heading' ('slbl') 'bool' -- '(Views) Are labels displayed in Finder list windows?' [mutable]
-# property 'size heading' ('ssiz') 'bool' -- '(Views) Are file sizes displayed in Finder list windows' [mutable]
-# property 'snap to grid' ('fgrd') 'bool' -- '(Views) Are items always snapped to the nearest grid point when they are moved?' [mutable]
-# property 'staggered grid' ('fstg') 'bool' -- '(Views) Are grid lines staggered?' [mutable]
-# property 'version heading' ('svrs') 'bool' -- '(Views) Are file versions displayed in Finder list windows?' [mutable]
-# property 'view font' ('vfnt') 'long' -- '(Views) the id of the font used in Finder views' [mutable]
-# property 'view font size' ('vfsz') 'long' -- '(Views) the size of the font used in Finder views' [mutable]
-
-# Class 'control panels' ('ccdv') -- 'every control panel'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'desk accessory file' ('dafi') -- 'A desk accessory file'
-
-# Class 'desk accessory files' ('dafi') -- 'every desk accessory file'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'desktop-object' ('cdsk') -- 'Desktop-object is the class of the \322desktop\323 object'
-# property 'startup disk' ('sdsk') 'obj ' -- 'the startup disk' []
-# property 'trash' ('trsh') 'obj ' -- 'the trash' []
-# element 'dsut' as ['indx', 'name']
-# element 'alia' as ['indx', 'name']
-# element 'appf' as ['indx', 'name']
-# element 'ctnr' as ['indx', 'name']
-# element 'ccdv' as ['indx', 'name']
-# element 'dafi' as ['indx', 'name']
-# element 'docf' as ['indx', 'name']
-# element 'file' as ['indx', 'name']
-# element 'cfol' as ['indx', 'name']
-# element 'fntf' as ['indx', 'name']
-# element 'fsut' as ['indx', 'name']
-# element 'cobj' as ['indx', 'name']
-# element 'sctr' as ['indx', 'name']
-# element 'sndf' as ['indx', 'name']
-# element 'stcs' as ['indx', 'name']
-
-# Class 'disk' ('cdis') -- 'A disk'
-# property 'capacity' ('capa') 'long' -- 'the total number of bytes (free or used) on the disk' []
-# property 'ejectable' ('isej') 'bool' -- "Can the media can be ejected (floppies, CD's, syquest)?" []
-# property 'free space' ('frsp') 'long' -- 'the number of free bytes left on the disk' []
-# property 'local volume' ('isrv') 'bool' -- 'Is the media is a local volume (rather than a file server)?' []
-# property 'startup' ('istd') 'bool' -- 'Is this disk the boot disk?' []
-# element 'dsut' as ['indx', 'name']
-# element 'alia' as ['indx', 'name']
-# element 'appf' as ['indx', 'name']
-# element 'ctnr' as ['indx', 'name']
-# element 'ccdv' as ['indx', 'name']
-# element 'dafi' as ['indx', 'name']
-# element 'docf' as ['indx', 'name']
-# element 'file' as ['indx', 'name']
-# element 'cfol' as ['indx', 'ID ', 'name']
-# element 'fntf' as ['indx', 'name']
-# element 'fsut' as ['indx', 'name']
-# element 'cobj' as ['indx', 'name']
-# element 'sctr' as ['indx', 'name']
-# element 'sndf' as ['indx', 'name']
-# element 'stcs' as ['indx', 'name']
-
-# Class 'disks' ('cdis') -- 'every disk'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'document file' ('docf') -- 'A document file'
-
-# Class 'document files' ('docf') -- 'every document file'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'file' ('file') -- 'A file'
-# property 'creator type' ('fcrt') 'type' -- 'the OSType identifying the application that created the item' [mutable]
-# property 'file type' ('fitp') 'type' -- 'the OSType identifying the type of data contained in the item' [mutable]
-# property 'locked' ('islk') 'bool' -- 'Is the file locked?' [mutable]
-# property 'product version' ('ver2') 'itxt' -- 'the version of the product (visible at the top of the \322Get Info\323 dialog)' []
-# property 'stationery' ('pspd') 'bool' -- 'Is the item a stationery pad?' [mutable]
-# property 'version' ('vers') 'itxt' -- 'the version of the file (visible at the bottom of the \322Get Info\323 dialog)' []
-
-# Class 'files' ('file') -- 'every file'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'folder' ('cfol') -- 'A folder'
-# element 'dsut' as ['indx', 'name']
-# element 'alia' as ['indx', 'name']
-# element 'appf' as ['indx', 'name']
-# element 'ctnr' as ['indx', 'name']
-# element 'ccdv' as ['indx', 'name']
-# element 'dafi' as ['indx', 'name']
-# element 'docf' as ['indx', 'name']
-# element 'file' as ['indx', 'name']
-# element 'cfol' as ['indx', 'name']
-# element 'fntf' as ['indx', 'name']
-# element 'fsut' as ['indx', 'name']
-# element 'cobj' as ['indx', 'name']
-# element 'sctr' as ['indx', 'name']
-# element 'sndf' as ['indx', 'name']
-# element 'stcs' as ['indx', 'name']
-
-# Class 'folders' ('cfol') -- 'every folder'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'font file' ('fntf') -- 'A font file'
-
-# Class 'font files' ('fntf') -- 'every font file'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'font suitcase' ('fsut') -- 'A font suitcase'
-# element 'cobj' as ['indx', 'name']
-
-# Class 'font suitcases' ('fsut') -- 'every font suitcase'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'group' ('sgrp') -- 'A Group in the Users and Groups control panel'
-# property 'bounds' ('pbnd') 'qdrt' -- 'the bounding rectangle of the group' [mutable]
-# property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the group' [mutable]
-# property 'label index' ('labi') 'long' -- 'the label of the group' [mutable]
-# property 'name' ('pnam') 'itxt' -- 'the name of the group' [mutable]
-# property 'position' ('posn') 'QDpt' -- 'the position of the group within its parent window' [mutable]
-
-# Class 'groups' ('sgrp') -- 'every group'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'information window' ('iwnd') -- 'An information window (opened by \322Get Info\311\323)'
-# property 'comment' ('comt') 'itxt' -- 'the comment' [mutable]
-# property 'creation date' ('crtd') 'ldt ' -- 'the date on which the item was created' []
-# property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the item' [mutable]
-# property 'item' ('cobj') 'obj ' -- 'the item this window was opened from' []
-# property 'locked' ('islk') 'bool' -- 'Is the item locked?' [mutable]
-# property 'minimum partition size' ('mprt') 'long' -- 'the smallest memory size that the application can possibly be launched with' [mutable]
-# property 'modification date' ('modd') 'ldt ' -- 'the date on which the item was last modified' []
-# property 'partition size' ('appt') 'long' -- 'the memory size that the application will be launched with' [mutable]
-# property 'physical size' ('phys') 'long' -- 'the actual space used by the item on disk' []
-# property 'product version' ('ver2') 'itxt' -- 'the version of the product (visible at the top of the \322Get Info\323 dialog)' []
-# property 'size' ('ptsz') 'long' -- 'the logical size of the item' []
-# property 'stationery' ('pspd') 'bool' -- 'Is the item a stationery pad?' [mutable]
-# property 'suggested partition size' ('sprt') 'long' -- 'the memory size that the developer recommends that the application should be launched with' []
-# property 'version' ('vers') 'itxt' -- 'the version of the file (visible at the bottom of the \322Get Info\323 dialog)' []
-# property 'warn before emptying' ('warn') 'bool' -- 'Is a dialog displayed when \322Empty trash\311\323 is selected?' [mutable]
-
-# Class 'information windows' ('iwnd') -- 'every information window'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'item' ('cobj') -- 'An item'
-# property 'bounds' ('pbnd') 'qdrt' -- 'the bounding rectangle of the item' [mutable]
-# property 'comment' ('comt') 'itxt' -- 'the comment displayed in the \322Get Info\323 window of the item' [mutable]
-# property 'container' ('ctnr') 'obj ' -- 'the container of this item' []
-# property 'content space' ('dwnd') 'dwnd' -- 'the window that would open if the item was opened' []
-# property 'creation date' ('crtd') 'ldt ' -- 'the date on which the item was created' []
-# property 'disk' ('cdis') 'obj ' -- 'the disk on which the item is stored' []
-# property 'folder' ('cfol') 'obj ' -- 'the folder in which the item is stored' []
-# property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the item' [mutable]
-# property 'id' ('ID ') 'long' -- 'an id that identifies the item' []
-# property 'information window' ('iwnd') 'obj ' -- 'the information window for the item' []
-# property 'kind' ('kind') 'itxt' -- 'the kind of the item' []
-# property 'label index' ('labi') 'long' -- 'the label of the item' [mutable]
-# property 'modification date' ('modd') 'ldt ' -- 'the date on which the item was last modified' []
-# property 'name' ('pnam') 'itxt' -- 'the name of the item' [mutable]
-# property 'physical size' ('phys') 'long' -- 'the actual space used by the item on disk' []
-# property 'position' ('posn') 'QDpt' -- 'the position of the item within its parent window' [mutable]
-# property 'selected' ('issl') 'bool' -- 'Is the item selected?' [mutable]
-# property 'size' ('ptsz') 'long' -- 'the logical size of the item' []
-# property 'window' ('cwin') 'cwin' -- 'the window that would open if the item was opened' []
-
-# Class 'items' ('cobj') -- 'every item'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'process' ('prcs') -- 'A process running on this Macintosh'
-# property 'creator type' ('fcrt') 'type' -- 'the creator type of this process' []
-# property 'file' ('file') 'obj ' -- 'the file that launched this process' []
-# property 'file type' ('fitp') 'type' -- 'the file type of the file that launched this process' []
-# property 'frontmost' ('pisf') 'bool' -- 'Is this the frontmost application?' [mutable]
-# property 'name' ('pnam') 'itxt' -- 'the name of the process' []
-# property 'partition size' ('appt') 'long' -- 'the size of the partition that this application was launched with' []
-# property 'partition space used' ('pusd') 'long' -- 'the number of bytes currently used in this partition' []
-# property 'remote events' ('revt') 'bool' -- 'Will this process accepts remote events?' []
-# property 'scriptable' ('isab') 'bool' -- 'Is this process high-level event aware (accepts open application, open document, print document, and quit)?' []
-# property 'visible' ('pvis') 'bool' -- "Is this process' layer visible?" [mutable]
-
-# Class 'processes' ('prcs') -- 'every process'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'sharable container' ('sctr') -- 'A container that may be shared (disks and folders)'
-# property 'exported' ('sexp') 'bool' -- 'Is this folder a share point or inside a share point?' []
-# property 'group' ('sgrp') 'itxt' -- 'the user or group that has special access to the folder' [mutable]
-# property 'group privileges' ('gppr') 'priv' -- 'the see folders/see files/make changes privileges for the group' [mutable]
-# property 'guest privileges' ('gstp') 'priv' -- 'the see folders/see files/make changes privileges for everyone' [mutable]
-# property 'inherited privileges' ('iprv') 'bool' -- 'Are the privileges of this item always the same as the container it is stored in?' [mutable]
-# property 'mounted' ('smou') 'bool' -- "Is this folder mounted on another machine's desktop?" []
-# property 'owner' ('sown') 'itxt' -- 'the user that owns this folder' [mutable]
-# property 'owner privileges' ('ownr') 'priv' -- 'the see folders/see files/make changes privileges for the owner' [mutable]
-# property 'protected' ('spro') 'bool' -- 'Is container protected from being moved, renamed or deleted?' [mutable]
-# property 'shared' ('shar') 'bool' -- 'Is container a share point?' [mutable]
-# property 'sharing window' ('swnd') 'obj ' -- 'the sharing window for the container' []
-# element 'dsut' as ['indx', 'name']
-# element 'alia' as ['indx', 'name']
-# element 'appf' as ['indx', 'name']
-# element 'ctnr' as ['indx', 'name']
-# element 'ccdv' as ['indx', 'name']
-# element 'dafi' as ['indx', 'name']
-# element 'docf' as ['indx', 'name']
-# element 'file' as ['indx', 'name']
-# element 'cfol' as ['indx', 'name']
-# element 'fntf' as ['indx', 'name']
-# element 'fsut' as ['indx', 'name']
-# element 'cobj' as ['indx', 'name']
-# element 'sctr' as ['indx', 'name']
-# element 'sndf' as ['indx', 'name']
-# element 'stcs' as ['indx', 'name']
-
-# Class 'sharable containers' ('sctr') -- 'every sharable container'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'sharing privileges' ('priv') -- 'A set of sharing properties'
-# property 'make changes' ('prvw') 'bool' -- 'privileges to make changes' [mutable]
-# property 'see files' ('prvr') 'bool' -- 'privileges to see files' [mutable]
-# property 'see folders' ('prvs') 'bool' -- 'privileges to see folders' [mutable]
-
-# Class 'sharing window' ('swnd') -- 'A sharing window (opened by \322Sharing\311\323)'
-# property 'container' ('ctnr') 'obj ' -- 'the container that this window was opened from' []
-# property 'exported' ('sexp') 'bool' -- 'Is this container a share point or inside a share point?' []
-# property 'folder' ('cfol') 'obj ' -- 'the folder that this window was opened from' []
-# property 'group' ('sgrp') 'itxt' -- 'the user or group that has special access to the container' [mutable]
-# property 'group privileges' ('gppr') 'priv' -- 'the see folders/see files/make changes privileges for the group' [mutable]
-# property 'guest privileges' ('gstp') 'priv' -- 'the see folders/see files/make changes privileges for everyone' [mutable]
-# property 'inherited privileges' ('iprv') 'bool' -- 'Are the privileges of this item always the same as the container it is stored in?' [mutable]
-# property 'item' ('cobj') 'obj ' -- 'the item that this window was opened from' []
-# property 'mounted' ('smou') 'bool' -- "Is this container mounted on another machine's desktop?" []
-# property 'owner' ('sown') 'itxt' -- 'the user that owns the container' [mutable]
-# property 'owner privileges' ('ownr') 'priv' -- 'the see folders/see files/make changes privileges for the owner' [mutable]
-# property 'protected' ('spro') 'bool' -- 'Is container protected from being moved, renamed or deleted?' [mutable]
-# property 'sharable container' ('sctr') 'obj ' -- 'the sharable container that this window was opened from' []
-# property 'shared' ('shar') 'bool' -- 'Is container a share point?' [mutable]
-
-# Class 'sharing windows' ('swnd') -- 'every sharing window'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'sound file' ('sndf') -- 'This class represents sound files'
-
-# Class 'sound files' ('sndf') -- 'every sound file'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'status window' ('qwnd') -- 'These windows are progress dialogs (copy window, rebuild desktop database, empty trash)'
-
-# Class 'status windows' ('qwnd') -- 'every status window'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'suitcase' ('stcs') -- 'A font or desk accessory suitcase'
-# element 'cobj' as ['indx', 'name']
-
-# Class 'suitcases' ('stcs') -- 'every suitcase'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'trash-object' ('ctrs') -- 'Trash-object is the class of the \322trash\323 object'
-# property 'warn before emptying' ('warn') 'bool' -- 'Is a dialog displayed when \322Empty trash\311\323 is selected?' [mutable]
-# element 'dsut' as ['indx', 'name']
-# element 'alia' as ['indx', 'name']
-# element 'appf' as ['indx', 'name']
-# element 'ctnr' as ['indx', 'name']
-# element 'ccdv' as ['indx', 'name']
-# element 'dafi' as ['indx', 'name']
-# element 'docf' as ['indx', 'name']
-# element 'file' as ['indx', 'name']
-# element 'cfol' as ['indx', 'name']
-# element 'fntf' as ['indx', 'name']
-# element 'fsut' as ['indx', 'name']
-# element 'cobj' as ['indx', 'name']
-# element 'sctr' as ['indx', 'name']
-# element 'sndf' as ['indx', 'name']
-# element 'stcs' as ['indx', 'name']
-
-# Class 'user' ('cuse') -- 'A User in the Users and Groups control panel'
-# property 'bounds' ('pbnd') 'qdrt' -- 'the bounding rectangle of the user' [mutable]
-# property 'icon' ('iimg') 'ifam' -- 'the icon bitmap of the user' [mutable]
-# property 'label index' ('labi') 'long' -- 'the label of the user' [mutable]
-# property 'name' ('pnam') 'itxt' -- 'the name of the user' [mutable]
-# property 'position' ('posn') 'QDpt' -- 'the position of the user within its parent window' [mutable]
-
-# Class 'users' ('cuse') -- 'every user'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'window' ('cwin') -- 'A window'
-
-# Class 'windows' ('cwin') -- 'every window'
-# property '' ('c@#!') 'type' -- '' [0]
diff --git a/Mac/Lib/toolbox/Metrowerks_Shell_Suite.py b/Mac/Lib/toolbox/Metrowerks_Shell_Suite.py
deleted file mode 100644
index 88bcdf9..0000000
--- a/Mac/Lib/toolbox/Metrowerks_Shell_Suite.py
+++ /dev/null
@@ -1,992 +0,0 @@
-"""Suite Metrowerks Shell Suite: Events supported by the Metrowerks Project Shell
-Level 1, version 1
-
-Generated from flap:Metrowerks:Metrowerks CodeWarrior:CodeWarrior IDE 1.7.4
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'MMPR'
-
-_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_Mode = {
- 'ReadWrite' : 'RdWr', # The file is open with read/write privileges
- 'ReadOnly' : 'Read', # The file is open with read/only privileges
- 'CheckedOut_ReadWrite' : 'CkRW', # The file is checked out with read/write privileges
- 'CheckedOut_ReadOnly' : 'CkRO', # The file is checked out with read/only privileges
- 'CheckedOut_ReadModify' : 'CkRM', # The file is checked out with read/modify privileges
- 'Locked' : 'Lock', # The file is locked on disk
- 'None' : 'None', # The file is new
-}
-
-_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¹s folder.
- 'shell_relative' : 'SRel', # A path relative to the CodeWarrior folder.
-}
-
-_Enum_RefP = {
- 'Think_Reference' : 'DanR', #
- 'QuickView' : 'ALTV', #
-}
-
-_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', #
-}
-
-class Metrowerks_Shell_Suite:
-
- _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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
-
-# Class 'Access Paths' ('PATH') -- 'Contains the definitions of a project\325s access (search) paths.'
-# property 'User Paths' ('PA01') 'PInf' -- 'To add an access path for the source files.' [mutable list]
-# property 'System Paths' ('PA03') 'PInf' -- 'To add an access path for the include files. (Not supported in Pascal)' [mutable list]
-# property 'Always Full Search' ('PA02') 'bool' -- 'To force the compiler to search for system includes like it searches for user includes.' [mutable]
-
-# Class 'Editor' ('EDTR') -- ''
-# property 'Flash delay' ('ED01') 'long' -- 'The amount of time, in sixtieths of a second, the editor highlights a matching bracket.' [mutable]
-# property 'Dynamic scroll' ('ED02') 'bool' -- 'Display a window\325s contents as you move the scroll box.' [mutable]
-# property 'Balance' ('ED03') 'bool' -- 'Flash the matching opening bracket when you type a closing bracket.' [mutable]
-# property 'Use Drag & Drop Editing' ('ED04') 'bool' -- 'Use Drag & Drop text editing.' [mutable]
-# property 'Save on update' ('ED05') 'bool' -- 'Save all editor windows automatically when you choose the Update command.' [mutable]
-# property 'Sort Function Popup' ('ED06') 'bool' -- '' [mutable]
-# property 'Use Multiple Undo' ('ED07') 'bool' -- '' [mutable]
-# property 'Remember font' ('ED08') 'bool' -- 'Display a source file with its own font settings.' [mutable]
-# property 'Remember selection' ('ED09') 'bool' -- 'Restore the previous selection in a file when you open it.' [mutable]
-# property 'Remember window' ('ED10') 'bool' -- 'Restore the last size and position for a source file window when you open it.' [mutable]
-# property 'Main Text Color' ('ED12') 'cRGB' -- 'Main, default, color for text.' [mutable]
-# property 'Background Color' ('ED13') 'cRGB' -- 'Color of the background of editor windows.' [mutable]
-# property 'Context Popup Delay' ('ED14') 'bool' -- 'The amount of time, in sixtieths of a second, before the context popup is displayed if you click and hold on a browser symbol.' [mutable]
-
-# Class 'Syntax Coloring' ('SNTX') -- ''
-# property 'Syntax coloring' ('GH01') 'bool' -- 'Mark keywords and comments with color.' [mutable]
-# property 'Comment color' ('GH02') 'cRGB' -- 'The color for comments.' [mutable]
-# property 'Keyword color' ('GH03') 'cRGB' -- 'The color for language keywords.' [mutable]
-# property 'String color' ('GH04') 'cRGB' -- 'The color for strings.' [mutable]
-# property 'Custom color 1' ('GH05') 'cRGB' -- 'The color for the first set of custom keywords.' [mutable]
-# property 'Custom color 2' ('GH06') 'cRGB' -- 'The color for the second set custom keywords.' [mutable]
-# property 'Custom color 3' ('GH07') 'cRGB' -- 'The color for the third set of custom keywords.' [mutable]
-# property 'Custom color 4' ('GH08') 'cRGB' -- 'The color for the fourth set of custom keywords.' [mutable]
-
-# Class 'Custom Keywords' ('CUKW') -- ''
-# property 'Custom color 1' ('KW01') 'cRGB' -- 'The color for the first set of custom keywords.' [mutable]
-# property 'Custom color 2' ('KW02') 'cRGB' -- 'The color for the second set custom keywords.' [mutable]
-# property 'Custom color 3' ('KW03') 'cRGB' -- 'The color for the third set of custom keywords.' [mutable]
-# property 'Custom color 4' ('KW04') 'cRGB' -- 'The color for the fourth set of custom keywords.' [mutable]
-
-# Class 'Browser Coloring' ('BRKW') -- 'Colors for Browser symbols.'
-# property 'Browser Keywords' ('BW00') 'bool' -- 'Mark Browser symbols with color.' [mutable]
-# property 'Classes Color' ('BW01') 'cRGB' -- 'The color for classes.' [mutable]
-# property 'Constants Color' ('BW02') 'cRGB' -- 'The color for constants.' [mutable]
-# property 'Enums Color' ('BW03') 'cRGB' -- 'The color for enums.' [mutable]
-# property 'Functions Color' ('BW04') 'cRGB' -- 'Set color for functions.' [mutable]
-# property 'Globals Color' ('BW05') 'cRGB' -- 'The color for globals' [mutable]
-# property 'Macros Color' ('BW06') 'cRGB' -- 'The color for macros.' [mutable]
-# property 'Templates Color' ('BW07') 'cRGB' -- 'Set color for templates.' [mutable]
-# property 'Typedefs Color' ('BW08') 'cRGB' -- 'The color for typedefs.' [mutable]
-
-# Class 'Error Information' ('ErrM') -- 'Describes a single error or warning from the compiler or the linker.'
-# property 'kind' ('ErrT') 'ErrT' -- 'The type of error or warning.' [enum]
-# property 'message' ('ErrS') 'TEXT' -- 'The error or warning message.' []
-# property 'disk file' ('file') 'fss ' -- 'The file where the error occurred. May not be returned for certain kinds of errors (eg, link errors).' []
-# property 'lineNumber' ('ErrL') 'long' -- 'The line in the file where the error occurred. May not be returned for certain kinds of errors (eg, link errors).' []
-
-# Class 'Extras' ('GXTR') -- ''
-# property 'Completion sound' ('EX01') 'bool' -- 'Play a sound when finished a Bring Up To Date or Make command.' [mutable]
-# property 'Success sound' ('EX02') 'TEXT' -- 'The sound CodeWarrior plays when it successfully finishes a Bring Up To Date or Make command.' [mutable]
-# property 'Failure sound' ('EX03') 'TEXT' -- 'The sound CodeWarrior plays when it cannot finish a Bring Up To Date or Make command.' [mutable]
-# property 'Full screen zoom' ('EX07') 'bool' -- 'Zoom windows to the full screen width.' [mutable]
-# property 'External reference' ('EX08') 'RefP' -- 'Which on-line function reference to use.' [mutable enum]
-# property 'Use Script Menu' ('EX12') 'bool' -- 'Controls the use of the AppleScript menu' [mutable]
-# property 'Use Editor Extensions' ('EX10') 'bool' -- 'Controls the use of the Editor Extensions menu' [mutable]
-# property 'Use External Editor' ('EX11') 'bool' -- 'Controls whether CodeWarrior uses its own integrated editor or an external application for editing text files.' [mutable]
-# property 'Honor Projector State for Projects' ('EX13') 'bool' -- 'Controls whether CodeWarrior opens files set to read-only by Projector.' [mutable]
-
-# Class 'Build Extras' ('LXTR') -- ''
-# property 'Browser active' ('EX09') 'bool' -- 'Allow the collection of browser information.' [mutable]
-# property 'Modification date caching' ('EX04') 'bool' -- '' [mutable]
-# property 'Generate Map' ('EX05') 'bool' -- 'Generate a Pascal Make map file.' [mutable]
-# property 'Store analysis results' ('EX06') 'bool' -- '' [mutable]
-
-# Class 'Font' ('mFNT') -- ''
-# property 'Auto indent' ('FN01') 'bool' -- 'Indent new lines automatically.' [mutable]
-# property 'Tab size' ('FN02') 'shor' -- '' [mutable]
-# property 'Text font' ('ptxf') 'TEXT' -- 'The font used in editing windows.' [mutable]
-# property 'Text size' ('ptps') 'shor' -- 'The size of the text in an editing window.' [mutable]
-
-# Class 'Function Information' ('FDef') -- 'Describes the location of any function or global data definition within the current project.'
-# property 'disk file' ('file') 'fss ' -- 'The location on disk of the file containing the definition.' []
-# property 'lineNumber' ('ErrL') 'long' -- 'The line number where the definition begins.' []
-
-# Class 'Path Information' ('PInf') -- 'Contains all of the parameters that describe an access path.'
-# property 'name' ('pnam') 'TEXT' -- 'The actual path name.' [mutable]
-# property 'recursive' ('Recu') 'bool' -- 'Will the path be searched recursively? (Default is true)' [mutable]
-# property 'origin' ('Orig') 'PPrm' -- '' [mutable enum]
-
-# Class 'ProjectFile' ('SrcF') -- 'A file contained in a project'
-# property 'filetype' ('SrcT') 'SrcT' -- 'What kind of file is this ?' [enum]
-# property 'name' ('pnam') 'TEXT' -- 'The file\325s name' []
-# property 'disk file' ('file') 'fss ' -- 'The file\325s location on disk' []
-# property 'codesize' ('CSiz') 'long' -- 'The size of this file\325s code.' []
-# property 'datasize' ('DSiz') 'long' -- 'The size of this file\325s data.' []
-# property 'up to date' ('UpTD') 'bool' -- 'Has the file been compiled since its last modification ?' []
-# property 'symbols' ('SymG') 'bool' -- 'Are debugging symbols generated for this file ?' [mutable]
-# property 'weak link' ('Weak') 'bool' -- 'Is this file imported weakly into the project ? [PowerPC only]' [mutable]
-# property 'initialize before' ('Bfor') 'bool' -- 'Intiailize the shared library before the main application.' [mutable]
-# property 'includes' ('IncF') 'fss ' -- '' []
-
-# Class 'Segment' ('Seg ') -- 'A segment or group in the project'
-# property 'name' ('pnam') 'TEXT' -- '' [mutable]
-# property 'filecount' ('NumF') 'shor' -- '' []
-# property 'preloaded' ('Prel') 'bool' -- 'Is the segment preloaded ? [68K only]' [mutable]
-# property 'protected' ('Prot') 'bool' -- 'Is the segment protected ? [68K only]' [mutable]
-# property 'locked' ('PLck') 'bool' -- 'Is the segment locked ? [68K only]' [mutable]
-# property 'purgeable' ('Purg') 'bool' -- 'Is the segment purgeable ? [68K only]' [mutable]
-# property 'system heap' ('SysH') 'bool' -- 'Is the segment loaded into the system heap ? [68K only]' [mutable]
-
-# Class 'Target' ('TARG') -- 'Contains the definitions of a project\325s target.'
-# property 'Current Target' ('TA01') 'TEXT' -- 'The name of the current target.' [mutable]
-# property 'Mappings' ('TA08') 'TInf' -- '' [mutable list]
-
-# Class 'Target Information' ('TInf') -- ''
-# property 'File Type' ('PR04') 'TEXT' -- '' [mutable]
-# property 'Extension' ('TA02') 'TEXT' -- '' [mutable]
-# property 'Precompiled' ('TA03') 'bool' -- '' [mutable]
-# property 'Resource File' ('TA04') 'bool' -- '' [mutable]
-# property 'Launchable' ('TA05') 'bool' -- '' [mutable]
-# property 'Ignored by Make' ('TA06') 'bool' -- '' [mutable]
-# property 'Compiler' ('TA07') 'TEXT' -- '' [mutable]
-
-# Class 'class' ('Clas') -- 'A class, struct, or record type in the current project'
-# property 'name' ('pnam') 'TEXT' -- '' []
-# property 'language' ('Lang') 'Lang' -- 'Implementation language of this class' [enum]
-# property 'declaration file' ('DcFl') 'fss ' -- 'Source file containing the class declaration' []
-# property 'declaration start offset' ('DcSt') 'long' -- 'Start of class declaration source code' []
-# property 'declaration end offset' ('DcEn') 'long' -- 'End of class declaration' []
-# property 'subclasses' ('SubC') 'Clas' -- 'the immediate subclasses of this class' [list]
-# property 'all subclasses' ('SubA') 'Clas' -- 'the classes directly or indirectly derived from this class' [list]
-# element 'BsCl' as ['indx']
-# element 'MbFn' as ['indx', 'name']
-# element 'DtMb' as ['indx', 'name']
-
-# Class 'classes' ('Clas') -- ''
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'member function' ('MbFn') -- 'A class member function or method.'
-# property 'name' ('pnam') 'TEXT' -- '' []
-# property 'access' ('Acce') 'Acce' -- '' [enum]
-# property 'virtual' ('Virt') 'bool' -- '' []
-# property 'static' ('Stat') 'bool' -- '' []
-# property 'declaration file' ('DcFl') 'fss ' -- 'Source file containing the member function declaration' []
-# property 'declaration start offset' ('DcSt') 'long' -- 'start of member function declaration source code' []
-# property 'declaration end offset' ('DcEn') 'long' -- 'end of member function declaration' []
-# property 'implementation file' ('DfFl') 'fss ' -- 'Source file containing the member function definition' []
-# property 'implementation start offset' ('DfSt') 'long' -- 'start of member function definition source code' []
-# property 'implementation end offset' ('DfEn') 'long' -- 'end of member function definition' []
-
-# Class 'member functions' ('MbFn') -- ''
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'data member' ('DtMb') -- 'A class data member or field'
-# property 'name' ('pnam') 'TEXT' -- '' []
-# property 'access' ('Acce') 'Acce' -- '' [enum]
-# property 'static' ('Stat') 'bool' -- '' []
-# property 'declaration start offset' ('DcSt') 'long' -- '' []
-# property 'declaration end offset' ('DcEn') 'long' -- '' []
-
-# Class 'data members' ('DtMb') -- ''
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'base class' ('BsCl') -- 'A base class or super class of a class'
-# property 'class' ('Clas') 'obj ' -- 'The class object corresponding to this base class' []
-# property 'access' ('Acce') 'Acce' -- '' [enum]
-# property 'virtual' ('Virt') 'bool' -- '' []
-
-# Class 'base classes' ('BsCl') -- ''
-# property '' ('c@#!') 'type' -- '' [0 enum]
-
-# Class 'browser catalog' ('Cata') -- 'The browser symbol catalog for the current project'
-# element 'Clas' as ['indx', 'name']
-
-# Class 'VCS Setup' ('VCSs') -- 'The version control system perferences.'
-# property 'VCS Active' ('VC01') 'bool' -- 'Use Version Control' [mutable]
-# property 'Connection Method' ('VC02') 'TEXT' -- 'Name of Version Control System to use.' [mutable]
-# property 'Username' ('VC03') 'TEXT' -- 'The user name for the VCS.' [mutable]
-# property 'Password' ('VC04') 'TEXT' -- 'The password for the VCS.' [mutable]
-# property 'Auto Connect' ('VC05') 'bool' -- 'Automatically connect to database when starting.' [mutable]
-# property 'Store Password' ('VC06') 'bool' -- 'Store the password.' [mutable]
-# property 'Always Prompt' ('VC07') 'bool' -- 'Always show login dialog' [mutable]
-# property 'Mount Volume' ('VC08') 'bool' -- "Attempt to mount the database volume if it isn't available." [mutable]
-# property 'Database Path' ('VC09') 'PInf' -- 'Path to the VCS database.' [mutable]
-# property 'Local Root' ('VC10') 'PInf' -- 'Path to the local directory to checkout to.' [mutable]
diff --git a/Mac/Lib/toolbox/Required_Suite.py b/Mac/Lib/toolbox/Required_Suite.py
deleted file mode 100644
index 1b27b6a..0000000
--- a/Mac/Lib/toolbox/Required_Suite.py
+++ /dev/null
@@ -1,92 +0,0 @@
-"""Suite Required Suite: Terms that every application should support
-Level 1, version 1
-
-Generated from flap:Systeemmap:Extensies:Script-extra's:Dialecten:Engels dialect
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'reqd'
-
-class Required_Suite:
-
- def open(self, _object, _attributes={}, **_arguments):
- """open: Open the specified object(s)
- Required argument: list of objects to open
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'aevt'
- _subcode = 'odoc'
-
- if _arguments: raise TypeError, 'No optional args expected'
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def _print(self, _object, _attributes={}, **_arguments):
- """print: Print the specified object(s)
- Required argument: list of objects to print
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'aevt'
- _subcode = 'pdoc'
-
- if _arguments: raise TypeError, 'No optional args expected'
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def run(self, _no_object=None, _attributes={}, **_arguments):
- """run: 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
diff --git a/Mac/Lib/toolbox/Standard_Suite.py b/Mac/Lib/toolbox/Standard_Suite.py
deleted file mode 100644
index d30e1dc..0000000
--- a/Mac/Lib/toolbox/Standard_Suite.py
+++ /dev/null
@@ -1,493 +0,0 @@
-"""Suite Standard Suite: Common terms for most applications
-Level 1, version 1
-
-Generated from flap:Systeemmap:Extensies:Script-extra's:Dialecten:Engels dialect
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'core'
-
-_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
-}
-
-class Standard_Suite:
-
- _argmap_class_info = {
- '_in' : 'wrcd',
- }
-
- def class_info(self, _object=None, _attributes={}, **_arguments):
- """class info: Get information about an object class
- Required argument: the object class about which information is requested
- Keyword argument _in: the human language and script system in which to return information
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: a record containing the object¹s properties and elements
- """
- _code = 'core'
- _subcode = 'qobj'
-
- aetools.keysubst(_arguments, self._argmap_class_info)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_close = {
- 'saving' : 'savo',
- 'saving_in' : 'kfil',
- }
-
- def close(self, _object, _attributes={}, **_arguments):
- """close: Close an object
- Required argument: the object to close
- Keyword argument saving: specifies whether changes should be saved before closing
- Keyword argument saving_in: the file in which to save the object
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'core'
- _subcode = 'clos'
-
- aetools.keysubst(_arguments, self._argmap_close)
- _arguments['----'] = _object
-
- aetools.enumsubst(_arguments, 'savo', _Enum_savo)
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_count = {
- 'each' : 'kocl',
- }
-
- def count(self, _object, _attributes={}, **_arguments):
- """count: Return the number of elements of 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_data_size = {
- 'as' : 'rtyp',
- }
-
- def data_size(self, _object, _attributes={}, **_arguments):
- """data size: Return the size in bytes of an object
- Required argument: the object whose data size is to be returned
- Keyword argument as: the data type for which the size is calculated
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: the size of the object in bytes
- """
- _code = 'core'
- _subcode = 'dsiz'
-
- aetools.keysubst(_arguments, self._argmap_data_size)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def delete(self, _object, _attributes={}, **_arguments):
- """delete: Delete an element from an object
- Required argument: the element to delete
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'core'
- _subcode = 'delo'
-
- if _arguments: raise TypeError, 'No optional args expected'
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_duplicate = {
- 'to' : 'insh',
- }
-
- def duplicate(self, _object, _attributes={}, **_arguments):
- """duplicate: Duplicate object(s)
- Required argument: the object(s) to duplicate
- Keyword argument to: the new location for the object(s)
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: to the duplicated object(s)
- """
- _code = 'core'
- _subcode = 'clon'
-
- aetools.keysubst(_arguments, self._argmap_duplicate)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_event_info = {
- '_in' : 'wrcd',
- }
-
- def event_info(self, _object, _attributes={}, **_arguments):
- """event info: Get information about the Apple events in a suite
- Required argument: the event class of the Apple events for which to return information
- Keyword argument _in: the human language and script system in which to return information
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: a record containing the events and their parameters
- """
- _code = 'core'
- _subcode = 'gtei'
-
- aetools.keysubst(_arguments, self._argmap_event_info)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def exists(self, _object, _attributes={}, **_arguments):
- """exists: Verify if an object exists
- Required argument: the object in question
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: true if it exists, false if not
- """
- _code = 'core'
- _subcode = 'doex'
-
- if _arguments: raise TypeError, 'No optional args expected'
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_make = {
- 'new' : 'kocl',
- 'at' : 'insh',
- 'with_data' : 'data',
- 'with_properties' : 'prdt',
- }
-
- def make(self, _no_object=None, _attributes={}, **_arguments):
- """make: Make a new element
- Keyword argument new: the class of the new element.
- Keyword argument at: the location at which to insert the element
- Keyword argument with_data: the initial data for the element
- Keyword argument with_properties: the initial values for the properties of the element
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: to the new object(s)
- """
- _code = 'core'
- _subcode = 'crel'
-
- aetools.keysubst(_arguments, self._argmap_make)
- if _no_object != None: raise TypeError, 'No direct arg expected'
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_move = {
- 'to' : 'insh',
- }
-
- def move(self, _object, _attributes={}, **_arguments):
- """move: Move object(s) to a new location
- Required argument: the object(s) to move
- Keyword argument to: the new location for the object(s)
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: to the object(s) after they have been moved
- """
- _code = 'core'
- _subcode = 'move'
-
- aetools.keysubst(_arguments, self._argmap_move)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def open(self, _object, _attributes={}, **_arguments):
- """open: Open the specified object(s)
- Required argument: list of objects to open
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'aevt'
- _subcode = 'odoc'
-
- if _arguments: raise TypeError, 'No optional args expected'
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def _print(self, _object, _attributes={}, **_arguments):
- """print: Print the specified object(s)
- Required argument: list of objects to print
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'aevt'
- _subcode = 'pdoc'
-
- if _arguments: raise TypeError, 'No optional args expected'
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_quit = {
- 'saving' : 'savo',
- }
-
- def quit(self, _no_object=None, _attributes={}, **_arguments):
- """quit: Quit an application program
- Keyword argument saving: specifies whether to save currently open documents
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'aevt'
- _subcode = 'quit'
-
- aetools.keysubst(_arguments, self._argmap_quit)
- if _no_object != None: raise TypeError, 'No direct arg expected'
-
- aetools.enumsubst(_arguments, 'savo', _Enum_savo)
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_save = {
- '_in' : 'kfil',
- 'as' : 'fltp',
- }
-
- def save(self, _object, _attributes={}, **_arguments):
- """save: Save an object
- Required argument: the object to save
- Keyword argument _in: the file in which to save the object
- Keyword argument as: the file type of the document in which to save the data
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'core'
- _subcode = 'save'
-
- aetools.keysubst(_arguments, self._argmap_save)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_suite_info = {
- '_in' : 'wrcd',
- }
-
- def suite_info(self, _object, _attributes={}, **_arguments):
- """suite info: Get information about event suite(s)
- Required argument: the suite for which to return information
- Keyword argument _in: the human language and script system in which to return information
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: a record containing the suites and their versions
- """
- _code = 'core'
- _subcode = 'gtsi'
-
- aetools.keysubst(_arguments, self._argmap_suite_info)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
-
-# Class 'application' ('capp') -- 'An application program'
-# property 'clipboard' ('pcli') '****' -- 'the clipboard' [mutable list]
-# property 'frontmost' ('pisf') 'bool' -- 'Is this the frontmost application?' []
-# property 'name' ('pnam') 'itxt' -- 'the name' []
-# property 'selection' ('sele') 'csel' -- 'the selection visible to the user' [mutable]
-# property 'version' ('vers') 'vers' -- 'the version of the application' []
-
-# Class 'applications' ('capp') -- 'Every application'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'character' ('cha ') -- 'A character'
-# property 'color' ('colr') 'cRGB' -- 'the color' [mutable]
-# property 'font' ('font') 'ctxt' -- 'the name of the font' [mutable]
-# property 'size' ('ptsz') 'fixd' -- 'the size in points' [mutable]
-# property 'writing code' ('psct') 'intl' -- 'the script system and language' []
-# property 'style' ('txst') 'tsty' -- 'the text style' [mutable]
-# property 'uniform styles' ('ustl') 'tsty' -- 'the text style' []
-
-# Class 'characters' ('cha ') -- 'Every character'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'document' ('docu') -- 'A document'
-# property 'modified' ('imod') 'bool' -- 'Has the document been modified since the last save?' []
-
-# Class 'documents' ('docu') -- 'Every document'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'file' ('file') -- 'A file'
-# property 'stationery' ('pspd') 'bool' -- 'Is the file a stationery file?' [mutable]
-
-# Class 'files' ('file') -- 'Every file'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'selection-object' ('csel') -- 'the selection visible to the user'
-# property 'contents' ('pcnt') 'type' -- 'the contents of the selection' []
-
-# Class 'text' ('ctxt') -- 'Text'
-# property '' ('c@#!') 'type' -- '' [0]
-# property 'font' ('font') 'ctxt' -- 'the name of the font of the first character' [mutable]
-
-# Class 'text style info' ('tsty') -- 'On and Off styles of text run'
-# property 'on styles' ('onst') 'styl' -- 'the styles that are on for the text' [enum list]
-# property 'off styles' ('ofst') 'styl' -- 'the styles that are off for the text' [enum list]
-
-# Class 'text style infos' ('tsty') -- 'every text style info'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'window' ('cwin') -- 'A window'
-# property 'bounds' ('pbnd') 'qdrt' -- 'the boundary rectangle for the window' [mutable]
-# property 'closeable' ('hclb') 'bool' -- 'Does the window have a close box?' []
-# property 'titled' ('ptit') 'bool' -- 'Does the window have a title bar?' []
-# property 'index' ('pidx') 'long' -- 'the number of the window' [mutable]
-# property 'floating' ('isfl') 'bool' -- 'Does the window float?' []
-# property 'modal' ('pmod') 'bool' -- 'Is the window modal?' []
-# property 'resizable' ('prsz') 'bool' -- 'Is the window resizable?' []
-# property 'zoomable' ('iszm') 'bool' -- 'Is the window zoomable?' []
-# property 'zoomed' ('pzum') 'bool' -- 'Is the window zoomed?' [mutable]
-# property 'visible' ('pvis') 'bool' -- 'Is the window visible?' [mutable]
-
-# Class 'windows' ('cwin') -- 'Every window'
-# property '' ('c@#!') 'type' -- '' [0]
-
-# Class 'insertion point' ('cins') -- 'An insertion location between two objects'
-
-# Class 'insertion points' ('cins') -- 'Every insertion location'
-# property '' ('c@#!') 'type' -- '' [0]
-# comparison 'starts with' ('bgwt') -- Starts with
-# comparison 'contains' ('cont') -- Contains
-# comparison 'ends with' ('ends') -- Ends with
-# comparison '=' ('= ') -- Equal
-# comparison '>' ('> ') -- Greater than
-# comparison '\263' ('>= ') -- Greater than or equal to
-# comparison '<' ('< ') -- Less than
-# comparison '\262' ('<= ') -- Less than or equal to
diff --git a/Mac/Lib/toolbox/Standard_URL_suite.py b/Mac/Lib/toolbox/Standard_URL_suite.py
deleted file mode 100644
index b9108f4..0000000
--- a/Mac/Lib/toolbox/Standard_URL_suite.py
+++ /dev/null
@@ -1,47 +0,0 @@
-"""Suite Standard URL suite: Mac URL standard, supported by many apps
-
-
-
-Level 1, version 1
-
-Generated from flap:Programma's:Netscape Navigator Folder:Netscape Navigator 3.0
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'GURL'
-
-class Standard_URL_suite:
-
- _argmap_GetURL = {
- 'to' : 'dest',
- 'inside' : 'HWIN',
- '_from' : 'refe',
- }
-
- def GetURL(self, _object, _attributes={}, **_arguments):
- """GetURL: Loads the URL (optionaly 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: Refererer, 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
diff --git a/Mac/Lib/toolbox/WWW_Suite.py b/Mac/Lib/toolbox/WWW_Suite.py
deleted file mode 100644
index 01ba39f..0000000
--- a/Mac/Lib/toolbox/WWW_Suite.py
+++ /dev/null
@@ -1,411 +0,0 @@
-"""Suite WorldWideWeb suite, as defined in Spyglass spec.:
-Level 1, version 1
-
-Generated from flap:Programma's:Netscape Navigator Folder:Netscape Navigator 3.0
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'WWW!'
-
-class WWW_Suite:
-
- _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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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 ³echo² 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.has_key('errn'):
- 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.has_key('errn'):
- 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 Œspecial¹ 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.has_key('errn'):
- 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.has_key('errn'):
- 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 ³handler² for this protocol with a given prefix. The handler will receive ³OpenURL², or if that fails, ³GetURL² event.
- Required argument: Application sig
- Keyword argument for_protocol: protocol prefix: ³finger:², ³file²,
- 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.has_key('errn'):
- 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 ³register protocol²
- 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.has_key('errn'):
- 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.has_key('errn'):
- 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.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-