summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/lib-scripting
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-08-03 13:49:52 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-08-03 13:49:52 (GMT)
commit1cd95229a2357f0ffd7f90af5627d4638a2b8929 (patch)
treec5b7a8ea3abef9310baa2cf54757a19e0cccfd5b /Mac/Lib/lib-scripting
parentcbed91b4db6817b7bbbb12ede40bfb5d26a9bf14 (diff)
downloadcpython-1cd95229a2357f0ffd7f90af5627d4638a2b8929.zip
cpython-1cd95229a2357f0ffd7f90af5627d4638a2b8929.tar.gz
cpython-1cd95229a2357f0ffd7f90af5627d4638a2b8929.tar.bz2
Obsolete, removed.
Diffstat (limited to 'Mac/Lib/lib-scripting')
-rw-r--r--Mac/Lib/lib-scripting/AppleScript_Suite.py1600
-rw-r--r--Mac/Lib/lib-scripting/CodeWarrior_Standard_Suite.py423
-rw-r--r--Mac/Lib/lib-scripting/Finder_7_0_Suite.py326
-rw-r--r--Mac/Lib/lib-scripting/Finder_Suite.py1632
-rw-r--r--Mac/Lib/lib-scripting/Metrowerks_Shell_Suite.py1820
-rw-r--r--Mac/Lib/lib-scripting/QuickDraw_Graphics_Suite.py411
-rw-r--r--Mac/Lib/lib-scripting/QuickDraw_Graphics_Supplemental71
-rw-r--r--Mac/Lib/lib-scripting/Required_Suite.py107
-rw-r--r--Mac/Lib/lib-scripting/Standard_Suite.py713
-rw-r--r--Mac/Lib/lib-scripting/Standard_URL_suite.py62
-rw-r--r--Mac/Lib/lib-scripting/Table_Suite.py106
-rw-r--r--Mac/Lib/lib-scripting/Text_Suite.py186
-rw-r--r--Mac/Lib/lib-scripting/Type_Names_Suite.py454
-rw-r--r--Mac/Lib/lib-scripting/WWW_Suite.py426
14 files changed, 0 insertions, 8337 deletions
diff --git a/Mac/Lib/lib-scripting/AppleScript_Suite.py b/Mac/Lib/lib-scripting/AppleScript_Suite.py
deleted file mode 100644
index 34765d2..0000000
--- a/Mac/Lib/lib-scripting/AppleScript_Suite.py
+++ /dev/null
@@ -1,1600 +0,0 @@
-"""Suite AppleScript Suite: Goodies for Gustav
-Level 1, version 1
-
-Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'ascr'
-
-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 _empty_ae_name(aetools.ComponentItem):
- """ - the undefined value"""
- want = 'undf'
-
-class upper_case(aetools.ComponentItem):
- """upper case - Text with lower case converted to upper case"""
- want = 'case'
-
-class machines(aetools.ComponentItem):
- """machines - every computer"""
- want = 'mach'
-
-machine = machines
-
-class zones(aetools.ComponentItem):
- """zones - every AppleTalk zone"""
- want = 'zone'
-
-zone = zones
-
-class seconds(aetools.ComponentItem):
- """seconds - more than one second"""
- want = 'scnd'
-
-class item(aetools.ComponentItem):
- """item - An item of any type"""
- want = 'cobj'
-class id(aetools.NProperty):
- """id - the unique id number of this object"""
- which = 'ID '
- want = 'long'
-
-items = item
-
-class text_items(aetools.ComponentItem):
- """text items - """
- want = 'citm'
-
-text_item = text_items
-
-class date(aetools.ComponentItem):
- """date - Absolute date and time values"""
- want = 'ldt '
-class weekday(aetools.NProperty):
- """weekday - the day of a week of a date"""
- which = 'wkdy'
- want = 'wkdy'
-class month(aetools.NProperty):
- """month - the month of a date"""
- which = 'mnth'
- want = 'mnth'
-class day(aetools.NProperty):
- """day - the day of the month of a date"""
- which = 'day '
- want = 'long'
-class year(aetools.NProperty):
- """year - the year of a date"""
- which = 'year'
- want = 'long'
-class time(aetools.NProperty):
- """time - the time since midnight of a date"""
- which = 'time'
- want = 'long'
-class date_string(aetools.NProperty):
- """date string - the date portion of a date-time value as a string"""
- which = 'dstr'
- want = 'TEXT'
-class time_string(aetools.NProperty):
- """time string - the time portion of a date-time value as a string"""
- which = 'tstr'
- want = 'TEXT'
-
-dates = date
-
-class month(aetools.ComponentItem):
- """month - a month"""
- want = 'mnth'
-
-months = month
-
-class January(aetools.ComponentItem):
- """January - It's June in January..."""
- want = 'jan '
-
-class February(aetools.ComponentItem):
- """February - the month of February"""
- want = 'feb '
-
-class March(aetools.ComponentItem):
- """March - the month of March"""
- want = 'mar '
-
-class April(aetools.ComponentItem):
- """April - the month of April"""
- want = 'apr '
-
-class May(aetools.ComponentItem):
- """May - the very merry month of May"""
- want = 'may '
-
-class June(aetools.ComponentItem):
- """June - the month of June"""
- want = 'jun '
-
-class July(aetools.ComponentItem):
- """July - the month of July"""
- want = 'jul '
-
-class August(aetools.ComponentItem):
- """August - the month of August"""
- want = 'aug '
-
-class September(aetools.ComponentItem):
- """September - the month of September"""
- want = 'sep '
-
-class October(aetools.ComponentItem):
- """October - the month of October"""
- want = 'oct '
-
-class November(aetools.ComponentItem):
- """November - the month of November"""
- want = 'nov '
-
-class December(aetools.ComponentItem):
- """December - the month of December"""
- want = 'dec '
-
-class weekday(aetools.ComponentItem):
- """weekday - a weekday"""
- want = 'wkdy'
-
-weekdays = weekday
-
-class Sunday(aetools.ComponentItem):
- """Sunday - Sunday Bloody Sunday"""
- want = 'sun '
-
-class Monday(aetools.ComponentItem):
- """Monday - Blue Monday"""
- want = 'mon '
-
-class Tuesday(aetools.ComponentItem):
- """Tuesday - Ruby Tuesday"""
- want = 'tue '
-
-class Wednesday(aetools.ComponentItem):
- """Wednesday - Wednesday Week"""
- want = 'wed '
-
-class Thursday(aetools.ComponentItem):
- """Thursday - Thursday Afternoon"""
- want = 'thu '
-
-class Friday(aetools.ComponentItem):
- """Friday - Friday"""
- want = 'fri '
-
-class Saturday(aetools.ComponentItem):
- """Saturday - Saturday Night's Alright for Fighting"""
- want = 'sat '
-
-class RGB_color(aetools.ComponentItem):
- """RGB color - Three numbers specifying red, green, blue color values"""
- want = 'cRGB'
-
-RGB_colors = RGB_color
-
-class integer(aetools.ComponentItem):
- """integer - An integral number"""
- want = 'long'
-
-integers = integer
-
-class boolean(aetools.ComponentItem):
- """boolean - A true or false value"""
- want = 'bool'
-
-booleans = boolean
-
-class real(aetools.ComponentItem):
- """real - A real number"""
- want = 'doub'
-
-reals = real
-
-class list(aetools.ComponentItem):
- """list - An ordered collection of items"""
- want = 'list'
-class length(aetools.NProperty):
- """length - the length of a list"""
- which = 'leng'
- want = 'long'
-
-lists = list
-
-class linked_list(aetools.ComponentItem):
- """linked list - An ordered collection of items"""
- want = 'llst'
-# repeated property length the length of a list
-
-linked_lists = linked_list
-
-class vector(aetools.ComponentItem):
- """vector - An ordered collection of items"""
- want = 'vect'
-# repeated property length the length of a list
-
-vectors = vector
-
-class record(aetools.ComponentItem):
- """record - A set of labeled items"""
- want = 'reco'
-
-records = record
-
-class script(aetools.ComponentItem):
- """script - An AppleScript script"""
- want = 'scpt'
-class parent(aetools.NProperty):
- """parent - the parent of a script"""
- which = 'pare'
- want = 'scpt'
-
-scripts = script
-
-class string(aetools.ComponentItem):
- """string - a sequence of characters"""
- want = 'TEXT'
-
-strings = string
-
-class styled_text(aetools.ComponentItem):
- """styled text - a sequence of characters with style"""
- want = 'STXT'
-
-class number(aetools.ComponentItem):
- """number - an integer or floating point number"""
- want = 'nmbr'
-
-numbers = number
-
-class _class(aetools.ComponentItem):
- """class - the type of a value"""
- want = 'pcls'
-class inherits(aetools.NProperty):
- """inherits - classes to inherit properties from"""
- which = 'c@#^'
- want = 'pcls'
-
-classes = _class
-
-class event(aetools.ComponentItem):
- """event - an AppleEvents event"""
- want = 'evnt'
-
-events = event
-
-class property(aetools.ComponentItem):
- """property - an AppleEvents property"""
- want = 'prop'
-
-properties = property
-
-class constant(aetools.ComponentItem):
- """constant - A constant value"""
- want = 'enum'
-
-constants = constant
-
-class preposition(aetools.ComponentItem):
- """preposition - an AppleEvents preposition"""
- want = 'prep'
-
-prepositions = preposition
-
-class key(aetools.ComponentItem):
- """key - an AppleEvents key form"""
- want = 'keyf'
-
-keys = key
-
-class picture(aetools.ComponentItem):
- """picture - A picture"""
- want = 'PICT'
-
-pictures = picture
-
-class reference(aetools.ComponentItem):
- """reference - An AppleScript reference"""
- want = 'obj '
-
-references = reference
-
-class data(aetools.ComponentItem):
- """data - An AppleScript raw data object"""
- want = 'rdat'
-
-class handler(aetools.ComponentItem):
- """handler - An AppleScript handler"""
- want = 'hand'
-
-handlers = handler
-
-class list_or_record(aetools.ComponentItem):
- """list or record - a list or record"""
- want = 'lr '
-
-class list_or_string(aetools.ComponentItem):
- """list or string - a list or string"""
- want = 'ls '
-
-class list_2c__record_or_text(aetools.ComponentItem):
- """list, record or text - a list, record or text"""
- want = 'lrs '
-
-class number_or_date(aetools.ComponentItem):
- """number or date - a number or date"""
- want = 'nd '
-
-class number_2c__date_or_text(aetools.ComponentItem):
- """number, date or text - a number, date or text"""
- want = 'nds '
-
-class alias(aetools.ComponentItem):
- """alias - a reference to an existing file"""
- want = 'alis'
-
-aliases = alias
-
-class application(aetools.ComponentItem):
- """application - specifies global properties of AppleScript"""
- want = 'capp'
-class result(aetools.NProperty):
- """result - the last result of evaluation"""
- which = 'rslt'
- want = 'cobj'
-class space(aetools.NProperty):
- """space - a space character"""
- which = 'spac'
- want = 'TEXT'
-class _return(aetools.NProperty):
- """return - a return character"""
- which = 'ret '
- want = 'TEXT'
-class tab(aetools.NProperty):
- """tab - a tab character"""
- which = 'tab '
- want = 'TEXT'
-class minutes(aetools.NProperty):
- """minutes - the number of seconds in a minute"""
- which = 'min '
- want = 'TEXT'
-class hours(aetools.NProperty):
- """hours - the number of seconds in an hour"""
- which = 'hour'
- want = 'TEXT'
-class days(aetools.NProperty):
- """days - the number of seconds in a day"""
- which = 'days'
- want = 'TEXT'
-class weeks(aetools.NProperty):
- """weeks - the number of seconds in a week"""
- which = 'week'
- want = 'TEXT'
-class pi(aetools.NProperty):
- """pi - the constant pi"""
- which = 'pi '
- want = 'doub'
-class print_length(aetools.NProperty):
- """print length - the maximum length to print"""
- which = 'prln'
- want = 'long'
-class print_depth(aetools.NProperty):
- """print depth - the maximum depth to print"""
- which = 'prdp'
- want = 'long'
-class reverse(aetools.NProperty):
- """reverse - the reverse of a list"""
- which = 'rvse'
- want = 'list'
-class rest(aetools.NProperty):
- """rest - the rest of a list"""
- which = 'rest'
- want = 'list'
-class text_item_delimiters(aetools.NProperty):
- """text item delimiters - the text item delimiters of a string"""
- which = 'txdl'
- want = 'list'
-class AppleScript(aetools.NProperty):
- """AppleScript - the top-level script object"""
- which = 'ascr'
- want = 'scpt'
-
-applications = application
-
-app = application
-
-class version(aetools.ComponentItem):
- """version - a version value"""
- want = 'vers'
-
-class writing_code_info(aetools.ComponentItem):
- """writing code info - Script code and language code of text run"""
- want = 'citl'
-class script_code(aetools.NProperty):
- """script code - the script code for the text"""
- which = 'pscd'
- want = 'shor'
-class language_code(aetools.NProperty):
- """language code - the language code for the text"""
- which = 'plcd'
- want = 'shor'
-
-writing_code_infos = writing_code_info
-_empty_ae_name._propdict = {
-}
-_empty_ae_name._elemdict = {
-}
-upper_case._propdict = {
-}
-upper_case._elemdict = {
-}
-machines._propdict = {
-}
-machines._elemdict = {
-}
-zones._propdict = {
-}
-zones._elemdict = {
-}
-seconds._propdict = {
-}
-seconds._elemdict = {
-}
-item._propdict = {
- 'id' : id,
-}
-item._elemdict = {
-}
-text_items._propdict = {
-}
-text_items._elemdict = {
-}
-date._propdict = {
- 'weekday' : weekday,
- 'month' : month,
- 'day' : day,
- 'year' : year,
- 'time' : time,
- 'date_string' : date_string,
- 'time_string' : time_string,
-}
-date._elemdict = {
-}
-month._propdict = {
-}
-month._elemdict = {
-}
-January._propdict = {
-}
-January._elemdict = {
-}
-February._propdict = {
-}
-February._elemdict = {
-}
-March._propdict = {
-}
-March._elemdict = {
-}
-April._propdict = {
-}
-April._elemdict = {
-}
-May._propdict = {
-}
-May._elemdict = {
-}
-June._propdict = {
-}
-June._elemdict = {
-}
-July._propdict = {
-}
-July._elemdict = {
-}
-August._propdict = {
-}
-August._elemdict = {
-}
-September._propdict = {
-}
-September._elemdict = {
-}
-October._propdict = {
-}
-October._elemdict = {
-}
-November._propdict = {
-}
-November._elemdict = {
-}
-December._propdict = {
-}
-December._elemdict = {
-}
-weekday._propdict = {
-}
-weekday._elemdict = {
-}
-Sunday._propdict = {
-}
-Sunday._elemdict = {
-}
-Monday._propdict = {
-}
-Monday._elemdict = {
-}
-Tuesday._propdict = {
-}
-Tuesday._elemdict = {
-}
-Wednesday._propdict = {
-}
-Wednesday._elemdict = {
-}
-Thursday._propdict = {
-}
-Thursday._elemdict = {
-}
-Friday._propdict = {
-}
-Friday._elemdict = {
-}
-Saturday._propdict = {
-}
-Saturday._elemdict = {
-}
-RGB_color._propdict = {
-}
-RGB_color._elemdict = {
-}
-integer._propdict = {
-}
-integer._elemdict = {
-}
-boolean._propdict = {
-}
-boolean._elemdict = {
-}
-real._propdict = {
-}
-real._elemdict = {
-}
-list._propdict = {
- 'length' : length,
-}
-list._elemdict = {
-}
-linked_list._propdict = {
- 'length' : length,
-}
-linked_list._elemdict = {
-}
-vector._propdict = {
- 'length' : length,
-}
-vector._elemdict = {
-}
-record._propdict = {
-}
-record._elemdict = {
-}
-script._propdict = {
- 'parent' : parent,
-}
-script._elemdict = {
-}
-string._propdict = {
-}
-string._elemdict = {
-}
-styled_text._propdict = {
-}
-styled_text._elemdict = {
-}
-number._propdict = {
-}
-number._elemdict = {
-}
-_class._propdict = {
- 'inherits' : inherits,
-}
-_class._elemdict = {
-}
-event._propdict = {
-}
-event._elemdict = {
-}
-property._propdict = {
-}
-property._elemdict = {
-}
-constant._propdict = {
-}
-constant._elemdict = {
-}
-preposition._propdict = {
-}
-preposition._elemdict = {
-}
-key._propdict = {
-}
-key._elemdict = {
-}
-picture._propdict = {
-}
-picture._elemdict = {
-}
-reference._propdict = {
-}
-reference._elemdict = {
-}
-data._propdict = {
-}
-data._elemdict = {
-}
-handler._propdict = {
-}
-handler._elemdict = {
-}
-list_or_record._propdict = {
-}
-list_or_record._elemdict = {
-}
-list_or_string._propdict = {
-}
-list_or_string._elemdict = {
-}
-list_2c__record_or_text._propdict = {
-}
-list_2c__record_or_text._elemdict = {
-}
-number_or_date._propdict = {
-}
-number_or_date._elemdict = {
-}
-number_2c__date_or_text._propdict = {
-}
-number_2c__date_or_text._elemdict = {
-}
-alias._propdict = {
-}
-alias._elemdict = {
-}
-application._propdict = {
- 'result' : result,
- 'space' : space,
- '_return' : _return,
- 'tab' : tab,
- 'minutes' : minutes,
- 'hours' : hours,
- 'days' : days,
- 'weeks' : weeks,
- 'pi' : pi,
- 'print_length' : print_length,
- 'print_depth' : print_depth,
- 'reverse' : reverse,
- 'rest' : rest,
- 'text_item_delimiters' : text_item_delimiters,
- 'AppleScript' : AppleScript,
-}
-application._elemdict = {
-}
-version._propdict = {
-}
-version._elemdict = {
-}
-writing_code_info._propdict = {
- 'script_code' : script_code,
- 'language_code' : language_code,
-}
-writing_code_info._elemdict = {
-}
-_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
-}
-
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
- 'jan ' : January,
- 'PICT' : picture,
- 'vers' : version,
- 'sat ' : Saturday,
- 'nov ' : November,
- 'ls ' : list_or_string,
- 'list' : list,
- 'cRGB' : RGB_color,
- 'citl' : writing_code_info,
- 'scnd' : seconds,
- 'thu ' : Thursday,
- 'keyf' : key,
- 'sun ' : Sunday,
- 'wkdy' : weekday,
- 'rdat' : data,
- 'vect' : vector,
- 'obj ' : reference,
- 'hand' : handler,
- 'tue ' : Tuesday,
- 'dec ' : December,
- 'enum' : constant,
- 'nd ' : number_or_date,
- 'wed ' : Wednesday,
- 'undf' : _empty_ae_name,
- 'reco' : record,
- 'capp' : application,
- 'cobj' : item,
- 'prep' : preposition,
- 'mach' : machines,
- 'citm' : text_items,
- 'bool' : boolean,
- 'nmbr' : number,
- 'prop' : property,
- 'long' : integer,
- 'sep ' : September,
- 'scpt' : script,
- 'pcls' : _class,
- 'alis' : alias,
- 'mon ' : Monday,
- 'lr ' : list_or_record,
- 'jul ' : July,
- 'fri ' : Friday,
- 'oct ' : October,
- 'mar ' : March,
- 'ldt ' : date,
- 'lrs ' : list_2c__record_or_text,
- 'jun ' : June,
- 'case' : upper_case,
- 'doub' : real,
- 'feb ' : February,
- 'nds ' : number_2c__date_or_text,
- 'llst' : linked_list,
- 'STXT' : styled_text,
- 'aug ' : August,
- 'TEXT' : string,
- 'apr ' : April,
- 'may ' : May,
- 'zone' : zones,
- 'evnt' : event,
- 'mnth' : month,
-}
-
-_propdeclarations = {
- 'day ' : day,
- 'rslt' : result,
- 'time' : time,
- 'prln' : print_length,
- 'prdp' : print_depth,
- 'txdl' : text_item_delimiters,
- 'days' : days,
- 'spac' : space,
- 'hour' : hours,
- 'pscd' : script_code,
- 'plcd' : language_code,
- 'ret ' : _return,
- 'tstr' : time_string,
- 'tab ' : tab,
- 'rvse' : reverse,
- 'wkdy' : weekday,
- 'ID ' : id,
- 'c@#^' : inherits,
- 'ascr' : AppleScript,
- 'rest' : rest,
- 'dstr' : date_string,
- 'min ' : minutes,
- 'pi ' : pi,
- 'leng' : length,
- 'year' : year,
- 'pare' : parent,
- 'mnth' : month,
- 'week' : weeks,
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
- 'cons' : _Enum_cons,
- 'boov' : _Enum_boov,
- 'misc' : _Enum_misc,
-}
diff --git a/Mac/Lib/lib-scripting/CodeWarrior_Standard_Suite.py b/Mac/Lib/lib-scripting/CodeWarrior_Standard_Suite.py
deleted file mode 100644
index 774f058..0000000
--- a/Mac/Lib/lib-scripting/CodeWarrior_Standard_Suite.py
+++ /dev/null
@@ -1,423 +0,0 @@
-"""Suite CodeWarrior Standard Suite: Standard suite events supported by the CodeWarrior IDE.
-Level 1, version 1
-
-Generated from flap:Metrowerks:Metrowerks CodeWarrior:CodeWarrior IDE 2.0.1
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'CWIE'
-
-class CodeWarrior_Standard_Suite:
-
- _argmap_close = {
- 'saving' : 'savo',
- 'saving_in' : 'kfil',
- }
-
- def close(self, _object, _attributes={}, **_arguments):
- """close: Close an object
- Required argument: the object to close
- Keyword argument saving: Specifies whether or not changes should be saved before closing
- Keyword argument saving_in: the file in which to save the object
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'core'
- _subcode = 'clos'
-
- aetools.keysubst(_arguments, self._argmap_close)
- _arguments['----'] = _object
-
- aetools.enumsubst(_arguments, 'savo', _Enum_savo)
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.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 'each' is optional in AppleScript
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: the number of elements
- """
- _code = 'core'
- _subcode = 'cnte'
-
- aetools.keysubst(_arguments, self._argmap_count)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_get = {
- 'as' : 'rtyp',
- }
-
- def get(self, _object, _attributes={}, **_arguments):
- """get: Get the data for an object
- Required argument: the object whose data is to be returned
- Keyword argument as: the desired types for the data, in order of preference
- Keyword argument _attributes: AppleEvent attribute dictionary
- Returns: The data from the object
- """
- _code = 'core'
- _subcode = 'getd'
-
- aetools.keysubst(_arguments, self._argmap_get)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.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 'new' is optional in AppleScript
- 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['----']
-
- def select(self, _object=None, _attributes={}, **_arguments):
- """select: Select the specified object
- Required argument: the object to select
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'misc'
- _subcode = 'slct'
-
- if _arguments: raise TypeError, 'No optional args expected'
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- _argmap_set = {
- 'to' : 'data',
- }
-
- def set(self, _object, _attributes={}, **_arguments):
- """set: Set an object's data
- Required argument: the object to change
- Keyword argument to: the new value
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'core'
- _subcode = 'setd'
-
- aetools.keysubst(_arguments, self._argmap_set)
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
-
-class application(aetools.ComponentItem):
- """application - An application program"""
- want = 'capp'
-class user_interaction(aetools.NProperty):
- """user interaction - User interaction level"""
- which = 'inte'
- want = 'Inte'
-# element 'docu' as ['indx', 'name', 'rang']
-# element 'cwin' as ['indx', 'name', 'rang']
-# element 'Clas' as ['indx', 'name']
-
-class character(aetools.ComponentItem):
- """character - A character"""
- want = 'cha '
-class offset(aetools.NProperty):
- """offset - offset of a text object from the beginning of the document (first char has offset 1)"""
- which = 'pOff'
- want = 'long'
-class length(aetools.NProperty):
- """length - length in characters of this object"""
- which = 'pLen'
- want = 'long'
-
-class document(aetools.ComponentItem):
- """document - A document"""
- want = 'docu'
-class file(aetools.NProperty):
- """file - The file of the document"""
- which = 'file'
- want = 'fss '
-class index(aetools.NProperty):
- """index - the number of the document"""
- which = 'pidx'
- want = 'long'
-class mode(aetools.NProperty):
- """mode - The documentÕs open mode"""
- which = 'Mode'
- want = 'Mode'
-class modified(aetools.NProperty):
- """modified - Has the document been modified since the last save?"""
- which = 'imod'
- want = 'bool'
-class name(aetools.NProperty):
- """name - the title of the document"""
- which = 'pnam'
- want = 'itxt'
-class selection(aetools.NProperty):
- """selection - the selection visible to the user"""
- which = 'sele'
- want = 'csel'
-class window(aetools.NProperty):
- """window - The window of this document."""
- which = 'cwin'
- want = 'cwin'
-# element 'cha ' as ['indx', 'rele', 'rang', 'test']
-# element 'cins' as ['rele']
-# element 'clin' as ['indx', 'rang', 'rele']
-# element 'ctxt' as ['rang']
-
-documents = document
-
-class file(aetools.ComponentItem):
- """file - A file"""
- want = 'file'
-
-files = file
-
-class insertion_point(aetools.ComponentItem):
- """insertion point - An insertion location between two objects"""
- want = 'cins'
-# repeated property length length of text object (in characters)
-# repeated property offset offset of a text object from the beginning of the document (first char has offset 1)
-
-class line(aetools.ComponentItem):
- """line - Lines of text"""
- want = 'clin'
-# repeated property index index of a line object from the beginning of the document (first line has index 1)
-# repeated property offset offset (in characters) of a line object from the beginning of the document
-# repeated property length length in characters of this object
-# element 'cha ' as ['indx', 'rang', 'rele']
-
-lines = line
-
-class selection_2d_object(aetools.ComponentItem):
- """selection-object - the selection visible to the user"""
- want = 'csel'
-class contents(aetools.NProperty):
- """contents - the contents of the selection"""
- which = 'pcnt'
- want = 'type'
-# repeated property length length of text object (in characters)
-# repeated property offset offset of a text object from the beginning of the document (first char has offset 1)
-# element 'cha ' as ['indx', 'rele', 'rang', 'test']
-# element 'clin' as ['indx', 'rang', 'rele']
-# element 'ctxt' as ['rang']
-
-class text(aetools.ComponentItem):
- """text - Text"""
- want = 'ctxt'
-# repeated property length length of text object (in characters)
-# repeated property offset offset of a text object from the beginning of the document (first char has offset 1)
-# element 'cha ' as ['indx', 'rele', 'rang']
-# element 'cins' as ['rele']
-# element 'clin' as ['indx', 'rang', 'rele']
-# element 'ctxt' as ['rang']
-
-class window(aetools.ComponentItem):
- """window - A window"""
- want = 'cwin'
-# repeated property name the title of the window
-# repeated property index the number of the window
-class bounds(aetools.NProperty):
- """bounds - the boundary rectangle for the window"""
- which = 'pbnd'
- want = 'qdrt'
-class document(aetools.NProperty):
- """document - the document object that owns this window"""
- which = 'docu'
- want = 'docu'
-class position(aetools.NProperty):
- """position - upper left coordinates of window"""
- which = 'ppos'
- want = 'QDpt'
-class visible(aetools.NProperty):
- """visible - is the window visible?"""
- which = 'pvis'
- want = 'bool'
-class zoomed(aetools.NProperty):
- """zoomed - Is the window zoomed?"""
- which = 'pzum'
- want = 'bool'
-
-windows = window
-# XXXX application element 'Clas' not found!!
-application._propdict = {
- 'user_interaction' : user_interaction,
-}
-application._elemdict = {
- 'document' : document,
- 'window' : window,
-}
-character._propdict = {
- 'offset' : offset,
- 'length' : length,
-}
-character._elemdict = {
-}
-document._propdict = {
- 'file' : file,
- 'index' : index,
- 'mode' : mode,
- 'modified' : modified,
- 'name' : name,
- 'selection' : selection,
- 'window' : window,
-}
-document._elemdict = {
- 'character' : character,
- 'insertion_point' : insertion_point,
- 'line' : line,
- 'text' : text,
-}
-file._propdict = {
-}
-file._elemdict = {
-}
-insertion_point._propdict = {
- 'length' : length,
- 'offset' : offset,
-}
-insertion_point._elemdict = {
-}
-line._propdict = {
- 'index' : index,
- 'offset' : offset,
- 'length' : length,
-}
-line._elemdict = {
- 'character' : character,
-}
-selection_2d_object._propdict = {
- 'contents' : contents,
- 'length' : length,
- 'offset' : offset,
-}
-selection_2d_object._elemdict = {
- 'character' : character,
- 'line' : line,
- 'text' : text,
-}
-text._propdict = {
- 'length' : length,
- 'offset' : offset,
-}
-text._elemdict = {
- 'character' : character,
- 'insertion_point' : insertion_point,
- 'line' : line,
- 'text' : text,
-}
-window._propdict = {
- 'name' : name,
- 'index' : index,
- 'bounds' : bounds,
- 'document' : document,
- 'position' : position,
- 'visible' : visible,
- 'zoomed' : zoomed,
-}
-window._elemdict = {
-}
-# XXXX enum savo not found!!
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
- 'docu' : document,
- 'cins' : insertion_point,
- 'capp' : application,
- 'ctxt' : text,
- 'csel' : selection_2d_object,
- 'clin' : line,
- 'file' : file,
- 'cwin' : window,
- 'cha ' : character,
-}
-
-_propdeclarations = {
- 'pzum' : zoomed,
- 'pOff' : offset,
- 'pLen' : length,
- 'pnam' : name,
- 'file' : file,
- 'pcnt' : contents,
- 'cwin' : window,
- 'ppos' : position,
- 'pidx' : index,
- 'docu' : document,
- 'pvis' : visible,
- 'sele' : selection,
- 'pbnd' : bounds,
- 'imod' : modified,
- 'Mode' : mode,
- 'inte' : user_interaction,
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
-}
diff --git a/Mac/Lib/lib-scripting/Finder_7_0_Suite.py b/Mac/Lib/lib-scripting/Finder_7_0_Suite.py
deleted file mode 100644
index 8d2f96b..0000000
--- a/Mac/Lib/lib-scripting/Finder_7_0_Suite.py
+++ /dev/null
@@ -1,326 +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:System Folder:Finder
-AETE/AEUT resource version 0/149, language 0, script 0
-"""
-# XXXX Hand edited to change the classname
-
-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['----']
-
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
-}
-
-_propdeclarations = {
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
-}
diff --git a/Mac/Lib/lib-scripting/Finder_Suite.py b/Mac/Lib/lib-scripting/Finder_Suite.py
deleted file mode 100644
index 0f14b6f..0000000
--- a/Mac/Lib/lib-scripting/Finder_Suite.py
+++ /dev/null
@@ -1,1632 +0,0 @@
-"""Suite Finder Suite: Objects and Events for the Finder
-Level 1, version 1
-
-Generated from flap:System Folder:Extensions:Finder Scripting Extension
-AETE/AEUT resource version 0/144, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'fndr'
-
-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(aetools.ComponentItem):
- """accessory process - A process launched from a desk accessory file"""
- want = 'pcda'
-class desk_accessory_file(aetools.NProperty):
- """desk accessory file - the desk accessory file from which this process was launched"""
- which = 'dafi'
- want = 'obj '
-
-accessory_processes = accessory_process
-
-class accessory_suitcase(aetools.ComponentItem):
- """accessory suitcase - A desk accessory suitcase"""
- want = 'dsut'
-# element 'cobj' as ['indx', 'name']
-
-accessory_suitcases = accessory_suitcase
-
-class alias_file(aetools.ComponentItem):
- """alias file - An alias file (created with –Make Alias”)"""
- want = 'alia'
-class original_item(aetools.NProperty):
- """original item - the original item pointed to by the alias"""
- which = 'orig'
- want = 'obj '
-
-alias_files = alias_file
-
-class application(aetools.ComponentItem):
- """application - An application program"""
- want = 'capp'
-class about_this_macintosh(aetools.NProperty):
- """about this macintosh - the –About this Macintosh” dialog, and the list of running processes displayed in it"""
- which = 'abbx'
- want = 'obj '
-class apple_menu_items_folder(aetools.NProperty):
- """apple menu items folder - the special folder –Apple Menu Items,” the contents of which appear in the Apple menu"""
- which = 'amnu'
- want = 'obj '
-class clipboard(aetools.NProperty):
- """clipboard - the Finder's clipboard window"""
- which = 'pcli'
- want = 'obj '
-class control_panels_folder(aetools.NProperty):
- """control panels folder - the special folder –Control Panels”"""
- which = 'ctrl'
- want = 'obj '
-class desktop(aetools.NProperty):
- """desktop - the desktop"""
- which = 'desk'
- want = 'obj '
-class extensions_folder(aetools.NProperty):
- """extensions folder - the special folder –Extensions”"""
- which = 'extn'
- want = 'obj '
-class file_sharing(aetools.NProperty):
- """file sharing - Is file sharing on?"""
- which = 'fshr'
- want = 'bool'
-class fonts_folder(aetools.NProperty):
- """fonts folder - the special folder –Fonts”"""
- which = 'ffnt'
- want = 'obj '
-class frontmost(aetools.NProperty):
- """frontmost - Is this the frontmost application?"""
- which = 'pisf'
- want = 'bool'
-class insertion_location(aetools.NProperty):
- """insertion location - the container that a new folder would appear in if –New Folder” was selected"""
- which = 'pins'
- want = 'obj '
-class largest_free_block(aetools.NProperty):
- """largest free block - the largest free block of process memory available to launch an application"""
- which = 'mfre'
- want = 'long'
-class preferences_folder(aetools.NProperty):
- """preferences folder - the special folder –Preferences”"""
- which = 'pref'
- want = 'obj '
-class product_version(aetools.NProperty):
- """product version - the version of the System software running on this Macintosh"""
- which = 'ver2'
- want = 'itxt'
-class selection(aetools.NProperty):
- """selection - the selection visible to the user"""
- which = 'sele'
- want = 'obj '
-class sharing_starting_up(aetools.NProperty):
- """sharing starting up - Is File sharing in the process of starting up (still off, but soon to be on)?"""
- which = 'fsup'
- want = 'bool'
-class shortcuts(aetools.NProperty):
- """shortcuts - the –Finder Shortcuts” item in the Finder's help menu"""
- which = 'scut'
- want = 'obj '
-class shutdown_items_folder(aetools.NProperty):
- """shutdown items folder - the special folder –Shutdown Items”"""
- which = 'shdf'
- want = 'obj '
-class startup_items_folder(aetools.NProperty):
- """startup items folder - the special folder –Startup Items”"""
- which = 'strt'
- want = 'obj '
-class system_folder(aetools.NProperty):
- """system folder - the System folder"""
- which = 'macs'
- want = 'obj '
-class temporary_items_folder(aetools.NProperty):
- """temporary items folder - the special folder –Temporary Items” (invisible)"""
- which = 'temp'
- want = 'obj '
-class version(aetools.NProperty):
- """version - the version of the Finder Scripting Extension"""
- which = 'vers'
- want = 'itxt'
-class view_preferences(aetools.NProperty):
- """view preferences - the view preferences control panel"""
- which = 'pvwp'
- want = 'obj '
-class visible(aetools.NProperty):
- """visible - Is the Finder's layer visible?"""
- which = 'pvis'
- want = 'bool'
-# 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(aetools.ComponentItem):
- """application file - An application's file on disk"""
- want = 'appf'
-class minimum_partition_size(aetools.NProperty):
- """minimum partition size - the smallest memory size that the application can possibly be launched with"""
- which = 'mprt'
- want = 'long'
-class partition_size(aetools.NProperty):
- """partition size - the memory size that the application will be launched with"""
- which = 'appt'
- want = 'long'
-class scriptable(aetools.NProperty):
- """scriptable - Is this application high-level event aware (accepts open application, open document, print document, and quit)?"""
- which = 'isab'
- want = 'bool'
-class suggested_partition_size(aetools.NProperty):
- """suggested partition size - the memory size that the developer recommends that the application should be launched with"""
- which = 'sprt'
- want = 'long'
-
-application_files = application_file
-
-class application_process(aetools.ComponentItem):
- """application process - A process launched from an application file"""
- want = 'pcap'
-class application_file(aetools.NProperty):
- """application file - the application file from which this process was launched"""
- which = 'appf'
- want = 'appf'
-
-application_processes = application_process
-
-class container(aetools.ComponentItem):
- """container - An item that contains other items"""
- want = 'ctnr'
-class completely_expanded(aetools.NProperty):
- """completely expanded - Is the container and all of its children open in outline view?"""
- which = 'pexc'
- want = 'bool'
-class container_window(aetools.NProperty):
- """container window - the main window for the container"""
- which = 'cwnd'
- want = 'obj '
-class entire_contents(aetools.NProperty):
- """entire contents - the entire contents of the container, including the contents of its children"""
- which = 'ects'
- want = 'obj '
-class expandable(aetools.NProperty):
- """expandable - Is the container capable of being expanded into outline view?"""
- which = 'pexa'
- want = 'bool'
-class expanded(aetools.NProperty):
- """expanded - Is the container open in outline view?"""
- which = 'pexp'
- want = 'bool'
-class previous_list_view(aetools.NProperty):
- """previous list view - the last non-icon view (by name, by date, etc.) selected for the container (forgotten as soon as the window is closed)"""
- which = 'svew'
- want = 'long'
-# repeated property selection the selection visible to the user
-class view(aetools.NProperty):
- """view - the view selected for the container (by icon, by name, by date, etc.)"""
- which = 'pvew'
- want = 'long'
-# 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']
-
-containers = container
-
-class container_window(aetools.ComponentItem):
- """container window - A window that contains items"""
- want = 'cwnd'
-class container(aetools.NProperty):
- """container - the container this window is opened from"""
- which = 'ctnr'
- want = 'obj '
-class disk(aetools.NProperty):
- """disk - the disk on which the item this window was opened from is stored"""
- which = 'cdis'
- want = 'obj '
-class folder(aetools.NProperty):
- """folder - the folder this window is opened from"""
- which = 'cfol'
- want = 'obj '
-class item(aetools.NProperty):
- """item - the item this window is opened from"""
- which = 'cobj'
- want = 'obj '
-# repeated property previous_list_view the last non-icon view (by name, by date, etc.) selected for the window (forgotten as soon as the window is closed)
-# repeated property selection the selection visible to the user
-# repeated property view the view selected for the window (by icon, by name, by date, etc.)
-# 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']
-
-container_windows = container_window
-
-class content_space(aetools.ComponentItem):
- """content space - All windows, including the desktop window (–Window” does not include the desktop window)"""
- want = 'dwnd'
-
-content_spaces = content_space
-
-class control_panel(aetools.ComponentItem):
- """control panel - A control panel"""
- want = 'ccdv'
-class calculate_folder_sizes(aetools.NProperty):
- """calculate folder sizes - (Views) Are folder sizes calculated and displayed in Finder list windows?"""
- which = 'sfsz'
- want = 'bool'
-class comment_heading(aetools.NProperty):
- """comment heading - (Views) Are comments displayed in Finder list windows?"""
- which = 'scom'
- want = 'bool'
-class date_heading(aetools.NProperty):
- """date heading - (Views) Are modification dates displayed in Finder list windows?"""
- which = 'sdat'
- want = 'bool'
-class disk_information_heading(aetools.NProperty):
- """disk information heading - (Views) Is information about the volume displayed in Finder list windows?"""
- which = 'sdin'
- want = 'bool'
-class icon_size(aetools.NProperty):
- """icon size - (Views) the size of icons displayed in Finder list windows"""
- which = 'lvis'
- want = 'long'
-class kind_heading(aetools.NProperty):
- """kind heading - (Views) Are document kinds displayed in Finder list windows?"""
- which = 'sknd'
- want = 'bool'
-class label_heading(aetools.NProperty):
- """label heading - (Views) Are labels displayed in Finder list windows?"""
- which = 'slbl'
- want = 'bool'
-class size_heading(aetools.NProperty):
- """size heading - (Views) Are file sizes displayed in Finder list windows"""
- which = 'ssiz'
- want = 'bool'
-class snap_to_grid(aetools.NProperty):
- """snap to grid - (Views) Are items always snapped to the nearest grid point when they are moved?"""
- which = 'fgrd'
- want = 'bool'
-class staggered_grid(aetools.NProperty):
- """staggered grid - (Views) Are grid lines staggered?"""
- which = 'fstg'
- want = 'bool'
-class version_heading(aetools.NProperty):
- """version heading - (Views) Are file versions displayed in Finder list windows?"""
- which = 'svrs'
- want = 'bool'
-class view_font(aetools.NProperty):
- """view font - (Views) the id of the font used in Finder views"""
- which = 'vfnt'
- want = 'long'
-class view_font_size(aetools.NProperty):
- """view font size - (Views) the size of the font used in Finder views"""
- which = 'vfsz'
- want = 'long'
-
-control_panels = control_panel
-
-class desk_accessory_file(aetools.ComponentItem):
- """desk accessory file - A desk accessory file"""
- want = 'dafi'
-
-desk_accessory_files = desk_accessory_file
-
-class desktop_2d_object(aetools.ComponentItem):
- """desktop-object - Desktop-object is the class of the –desktop” object"""
- want = 'cdsk'
-class startup_disk(aetools.NProperty):
- """startup disk - the startup disk"""
- which = 'sdsk'
- want = 'obj '
-class trash(aetools.NProperty):
- """trash - the trash"""
- which = 'trsh'
- want = 'obj '
-# 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(aetools.ComponentItem):
- """disk - A disk"""
- want = 'cdis'
-class capacity(aetools.NProperty):
- """capacity - the total number of bytes (free or used) on the disk"""
- which = 'capa'
- want = 'long'
-class ejectable(aetools.NProperty):
- """ejectable - Can the media can be ejected (floppies, CD's, syquest)?"""
- which = 'isej'
- want = 'bool'
-class free_space(aetools.NProperty):
- """free space - the number of free bytes left on the disk"""
- which = 'frsp'
- want = 'long'
-class local_volume(aetools.NProperty):
- """local volume - Is the media is a local volume (rather than a file server)?"""
- which = 'isrv'
- want = 'bool'
-class startup(aetools.NProperty):
- """startup - Is this disk the boot disk?"""
- which = 'istd'
- want = 'bool'
-# 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']
-
-disks = disk
-
-class document_file(aetools.ComponentItem):
- """document file - A document file"""
- want = 'docf'
-
-document_files = document_file
-
-class file(aetools.ComponentItem):
- """file - A file"""
- want = 'file'
-class creator_type(aetools.NProperty):
- """creator type - the OSType identifying the application that created the item"""
- which = 'fcrt'
- want = 'type'
-class file_type(aetools.NProperty):
- """file type - the OSType identifying the type of data contained in the item"""
- which = 'fitp'
- want = 'type'
-class locked(aetools.NProperty):
- """locked - Is the file locked?"""
- which = 'islk'
- want = 'bool'
-# repeated property product_version the version of the product (visible at the top of the –Get Info” dialog)
-class stationery(aetools.NProperty):
- """stationery - Is the item a stationery pad?"""
- which = 'pspd'
- want = 'bool'
-# repeated property version the version of the file (visible at the bottom of the –Get Info” dialog)
-
-files = file
-
-class folder(aetools.ComponentItem):
- """folder - A folder"""
- want = 'cfol'
-# 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']
-
-folders = folder
-
-class font_file(aetools.ComponentItem):
- """font file - A font file"""
- want = 'fntf'
-
-font_files = font_file
-
-class font_suitcase(aetools.ComponentItem):
- """font suitcase - A font suitcase"""
- want = 'fsut'
-# element 'cobj' as ['indx', 'name']
-
-font_suitcases = font_suitcase
-
-class group(aetools.ComponentItem):
- """group - A Group in the Users and Groups control panel"""
- want = 'sgrp'
-class bounds(aetools.NProperty):
- """bounds - the bounding rectangle of the group"""
- which = 'pbnd'
- want = 'qdrt'
-class icon(aetools.NProperty):
- """icon - the icon bitmap of the group"""
- which = 'iimg'
- want = 'ifam'
-class label_index(aetools.NProperty):
- """label index - the label of the group"""
- which = 'labi'
- want = 'long'
-class name(aetools.NProperty):
- """name - the name of the group"""
- which = 'pnam'
- want = 'itxt'
-class position(aetools.NProperty):
- """position - the position of the group within its parent window"""
- which = 'posn'
- want = 'QDpt'
-
-groups = group
-
-class information_window(aetools.ComponentItem):
- """information window - An information window (opened by –Get Infoƒ”)"""
- want = 'iwnd'
-class comment(aetools.NProperty):
- """comment - the comment"""
- which = 'comt'
- want = 'itxt'
-class creation_date(aetools.NProperty):
- """creation date - the date on which the item was created"""
- which = 'crtd'
- want = 'ldt '
-# repeated property icon the icon bitmap of the item
-# repeated property item the item this window was opened from
-# repeated property locked Is the item locked?
-# repeated property minimum_partition_size the smallest memory size that the application can possibly be launched with
-class modification_date(aetools.NProperty):
- """modification date - the date on which the item was last modified"""
- which = 'modd'
- want = 'ldt '
-# repeated property partition_size the memory size that the application will be launched with
-class physical_size(aetools.NProperty):
- """physical size - the actual space used by the item on disk"""
- which = 'phys'
- want = 'long'
-# repeated property product_version the version of the product (visible at the top of the –Get Info” dialog)
-class size(aetools.NProperty):
- """size - the logical size of the item"""
- which = 'ptsz'
- want = 'long'
-# repeated property stationery Is the item a stationery pad?
-# repeated property suggested_partition_size the memory size that the developer recommends that the application should be launched with
-# repeated property version the version of the file (visible at the bottom of the –Get Info” dialog)
-class warn_before_emptying(aetools.NProperty):
- """warn before emptying - Is a dialog displayed when –Empty trashƒ” is selected?"""
- which = 'warn'
- want = 'bool'
-
-information_windows = information_window
-
-class item(aetools.ComponentItem):
- """item - An item"""
- want = 'cobj'
-# repeated property bounds the bounding rectangle of the item
-# repeated property comment the comment displayed in the –Get Info” window of the item
-# repeated property container the container of this item
-class content_space(aetools.NProperty):
- """content space - the window that would open if the item was opened"""
- which = 'dwnd'
- want = 'dwnd'
-# repeated property creation_date the date on which the item was created
-# repeated property disk the disk on which the item is stored
-# repeated property folder the folder in which the item is stored
-# repeated property icon the icon bitmap of the item
-class id(aetools.NProperty):
- """id - an id that identifies the item"""
- which = 'ID '
- want = 'long'
-class information_window(aetools.NProperty):
- """information window - the information window for the item"""
- which = 'iwnd'
- want = 'obj '
-class kind(aetools.NProperty):
- """kind - the kind of the item"""
- which = 'kind'
- want = 'itxt'
-# repeated property label_index the label of the item
-# repeated property modification_date the date on which the item was last modified
-# repeated property name the name of the item
-# repeated property physical_size the actual space used by the item on disk
-# repeated property position the position of the item within its parent window
-class selected(aetools.NProperty):
- """selected - Is the item selected?"""
- which = 'issl'
- want = 'bool'
-# repeated property size the logical size of the item
-class window(aetools.NProperty):
- """window - the window that would open if the item was opened"""
- which = 'cwin'
- want = 'cwin'
-
-items = item
-
-class process(aetools.ComponentItem):
- """process - A process running on this Macintosh"""
- want = 'prcs'
-# repeated property creator_type the creator type of this process
-class file(aetools.NProperty):
- """file - the file that launched this process"""
- which = 'file'
- want = 'obj '
-# repeated property file_type the file type of the file that launched this process
-# repeated property frontmost Is this the frontmost application?
-# repeated property name the name of the process
-# repeated property partition_size the size of the partition that this application was launched with
-class partition_space_used(aetools.NProperty):
- """partition space used - the number of bytes currently used in this partition"""
- which = 'pusd'
- want = 'long'
-class remote_events(aetools.NProperty):
- """remote events - Will this process accepts remote events?"""
- which = 'revt'
- want = 'bool'
-# repeated property scriptable Is this process high-level event aware (accepts open application, open document, print document, and quit)?
-# repeated property visible Is this process' layer visible?
-
-processes = process
-
-class sharable_container(aetools.ComponentItem):
- """sharable container - A container that may be shared (disks and folders)"""
- want = 'sctr'
-class exported(aetools.NProperty):
- """exported - Is this folder a share point or inside a share point?"""
- which = 'sexp'
- want = 'bool'
-class group(aetools.NProperty):
- """group - the user or group that has special access to the folder"""
- which = 'sgrp'
- want = 'itxt'
-class group_privileges(aetools.NProperty):
- """group privileges - the see folders/see files/make changes privileges for the group"""
- which = 'gppr'
- want = 'priv'
-class guest_privileges(aetools.NProperty):
- """guest privileges - the see folders/see files/make changes privileges for everyone"""
- which = 'gstp'
- want = 'priv'
-class inherited_privileges(aetools.NProperty):
- """inherited privileges - Are the privileges of this item always the same as the container it is stored in?"""
- which = 'iprv'
- want = 'bool'
-class mounted(aetools.NProperty):
- """mounted - Is this folder mounted on another machine's desktop?"""
- which = 'smou'
- want = 'bool'
-class owner(aetools.NProperty):
- """owner - the user that owns this folder"""
- which = 'sown'
- want = 'itxt'
-class owner_privileges(aetools.NProperty):
- """owner privileges - the see folders/see files/make changes privileges for the owner"""
- which = 'ownr'
- want = 'priv'
-class protected(aetools.NProperty):
- """protected - Is container protected from being moved, renamed or deleted?"""
- which = 'spro'
- want = 'bool'
-class shared(aetools.NProperty):
- """shared - Is container a share point?"""
- which = 'shar'
- want = 'bool'
-class sharing_window(aetools.NProperty):
- """sharing window - the sharing window for the container"""
- which = 'swnd'
- want = 'obj '
-# 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']
-
-sharable_containers = sharable_container
-
-class sharing_privileges(aetools.ComponentItem):
- """sharing privileges - A set of sharing properties"""
- want = 'priv'
-class make_changes(aetools.NProperty):
- """make changes - privileges to make changes"""
- which = 'prvw'
- want = 'bool'
-class see_files(aetools.NProperty):
- """see files - privileges to see files"""
- which = 'prvr'
- want = 'bool'
-class see_folders(aetools.NProperty):
- """see folders - privileges to see folders"""
- which = 'prvs'
- want = 'bool'
-
-class sharing_window(aetools.ComponentItem):
- """sharing window - A sharing window (opened by –Sharingƒ”)"""
- want = 'swnd'
-# repeated property container the container that this window was opened from
-# repeated property exported Is this container a share point or inside a share point?
-# repeated property folder the folder that this window was opened from
-# repeated property group the user or group that has special access to the container
-# repeated property group_privileges the see folders/see files/make changes privileges for the group
-# repeated property guest_privileges the see folders/see files/make changes privileges for everyone
-# repeated property inherited_privileges Are the privileges of this item always the same as the container it is stored in?
-# repeated property item the item that this window was opened from
-# repeated property mounted Is this container mounted on another machine's desktop?
-# repeated property owner the user that owns the container
-# repeated property owner_privileges the see folders/see files/make changes privileges for the owner
-# repeated property protected Is container protected from being moved, renamed or deleted?
-class sharable_container(aetools.NProperty):
- """sharable container - the sharable container that this window was opened from"""
- which = 'sctr'
- want = 'obj '
-# repeated property shared Is container a share point?
-
-sharing_windows = sharing_window
-
-class sound_file(aetools.ComponentItem):
- """sound file - This class represents sound files"""
- want = 'sndf'
-
-sound_files = sound_file
-
-class status_window(aetools.ComponentItem):
- """status window - These windows are progress dialogs (copy window, rebuild desktop database, empty trash)"""
- want = 'qwnd'
-
-status_windows = status_window
-
-class suitcase(aetools.ComponentItem):
- """suitcase - A font or desk accessory suitcase"""
- want = 'stcs'
-# element 'cobj' as ['indx', 'name']
-
-suitcases = suitcase
-
-class trash_2d_object(aetools.ComponentItem):
- """trash-object - Trash-object is the class of the –trash” object"""
- want = 'ctrs'
-# repeated property warn_before_emptying Is a dialog displayed when –Empty trashƒ” is selected?
-# 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(aetools.ComponentItem):
- """user - A User in the Users and Groups control panel"""
- want = 'cuse'
-# repeated property bounds the bounding rectangle of the user
-# repeated property icon the icon bitmap of the user
-# repeated property label_index the label of the user
-# repeated property name the name of the user
-# repeated property position the position of the user within its parent window
-
-users = user
-
-class window(aetools.ComponentItem):
- """window - A window"""
- want = 'cwin'
-
-windows = window
-accessory_process._propdict = {
- 'desk_accessory_file' : desk_accessory_file,
-}
-accessory_process._elemdict = {
-}
-accessory_suitcase._propdict = {
-}
-accessory_suitcase._elemdict = {
- 'item' : item,
-}
-alias_file._propdict = {
- 'original_item' : original_item,
-}
-alias_file._elemdict = {
-}
-application._propdict = {
- 'about_this_macintosh' : about_this_macintosh,
- 'apple_menu_items_folder' : apple_menu_items_folder,
- 'clipboard' : clipboard,
- 'control_panels_folder' : control_panels_folder,
- 'desktop' : desktop,
- 'extensions_folder' : extensions_folder,
- 'file_sharing' : file_sharing,
- 'fonts_folder' : fonts_folder,
- 'frontmost' : frontmost,
- 'insertion_location' : insertion_location,
- 'largest_free_block' : largest_free_block,
- 'preferences_folder' : preferences_folder,
- 'product_version' : product_version,
- 'selection' : selection,
- 'sharing_starting_up' : sharing_starting_up,
- 'shortcuts' : shortcuts,
- 'shutdown_items_folder' : shutdown_items_folder,
- 'startup_items_folder' : startup_items_folder,
- 'system_folder' : system_folder,
- 'temporary_items_folder' : temporary_items_folder,
- 'version' : version,
- 'view_preferences' : view_preferences,
- 'visible' : visible,
-}
-application._elemdict = {
- 'accessory_suitcase' : accessory_suitcase,
- 'alias_file' : alias_file,
- 'application_file' : application_file,
- 'container' : container,
- 'container_window' : container_window,
- 'content_space' : content_space,
- 'control_panel' : control_panel,
- 'desk_accessory_file' : desk_accessory_file,
- 'desktop_2d_object' : desktop_2d_object,
- 'disk' : disk,
- 'document_file' : document_file,
- 'file' : file,
- 'folder' : folder,
- 'font_file' : font_file,
- 'font_suitcase' : font_suitcase,
- 'information_window' : information_window,
- 'item' : item,
- 'sharable_container' : sharable_container,
- 'sharing_window' : sharing_window,
- 'sound_file' : sound_file,
- 'suitcase' : suitcase,
- 'trash_2d_object' : trash_2d_object,
- 'window' : window,
-}
-application_file._propdict = {
- 'minimum_partition_size' : minimum_partition_size,
- 'partition_size' : partition_size,
- 'scriptable' : scriptable,
- 'suggested_partition_size' : suggested_partition_size,
-}
-application_file._elemdict = {
-}
-application_process._propdict = {
- 'application_file' : application_file,
-}
-application_process._elemdict = {
-}
-container._propdict = {
- 'completely_expanded' : completely_expanded,
- 'container_window' : container_window,
- 'entire_contents' : entire_contents,
- 'expandable' : expandable,
- 'expanded' : expanded,
- 'previous_list_view' : previous_list_view,
- 'selection' : selection,
- 'view' : view,
-}
-container._elemdict = {
- 'accessory_suitcase' : accessory_suitcase,
- 'alias_file' : alias_file,
- 'application_file' : application_file,
- 'container' : container,
- 'control_panel' : control_panel,
- 'desk_accessory_file' : desk_accessory_file,
- 'document_file' : document_file,
- 'file' : file,
- 'folder' : folder,
- 'font_file' : font_file,
- 'font_suitcase' : font_suitcase,
- 'item' : item,
- 'sharable_container' : sharable_container,
- 'sound_file' : sound_file,
- 'suitcase' : suitcase,
-}
-container_window._propdict = {
- 'container' : container,
- 'disk' : disk,
- 'folder' : folder,
- 'item' : item,
- 'previous_list_view' : previous_list_view,
- 'selection' : selection,
- 'view' : view,
-}
-container_window._elemdict = {
- 'accessory_suitcase' : accessory_suitcase,
- 'alias_file' : alias_file,
- 'application_file' : application_file,
- 'container' : container,
- 'control_panel' : control_panel,
- 'desk_accessory_file' : desk_accessory_file,
- 'document_file' : document_file,
- 'file' : file,
- 'folder' : folder,
- 'font_file' : font_file,
- 'font_suitcase' : font_suitcase,
- 'item' : item,
- 'sharable_container' : sharable_container,
- 'sound_file' : sound_file,
- 'suitcase' : suitcase,
-}
-content_space._propdict = {
-}
-content_space._elemdict = {
-}
-control_panel._propdict = {
- 'calculate_folder_sizes' : calculate_folder_sizes,
- 'comment_heading' : comment_heading,
- 'date_heading' : date_heading,
- 'disk_information_heading' : disk_information_heading,
- 'icon_size' : icon_size,
- 'kind_heading' : kind_heading,
- 'label_heading' : label_heading,
- 'size_heading' : size_heading,
- 'snap_to_grid' : snap_to_grid,
- 'staggered_grid' : staggered_grid,
- 'version_heading' : version_heading,
- 'view_font' : view_font,
- 'view_font_size' : view_font_size,
-}
-control_panel._elemdict = {
-}
-desk_accessory_file._propdict = {
-}
-desk_accessory_file._elemdict = {
-}
-desktop_2d_object._propdict = {
- 'startup_disk' : startup_disk,
- 'trash' : trash,
-}
-desktop_2d_object._elemdict = {
- 'accessory_suitcase' : accessory_suitcase,
- 'alias_file' : alias_file,
- 'application_file' : application_file,
- 'container' : container,
- 'control_panel' : control_panel,
- 'desk_accessory_file' : desk_accessory_file,
- 'document_file' : document_file,
- 'file' : file,
- 'folder' : folder,
- 'font_file' : font_file,
- 'font_suitcase' : font_suitcase,
- 'item' : item,
- 'sharable_container' : sharable_container,
- 'sound_file' : sound_file,
- 'suitcase' : suitcase,
-}
-disk._propdict = {
- 'capacity' : capacity,
- 'ejectable' : ejectable,
- 'free_space' : free_space,
- 'local_volume' : local_volume,
- 'startup' : startup,
-}
-disk._elemdict = {
- 'accessory_suitcase' : accessory_suitcase,
- 'alias_file' : alias_file,
- 'application_file' : application_file,
- 'container' : container,
- 'control_panel' : control_panel,
- 'desk_accessory_file' : desk_accessory_file,
- 'document_file' : document_file,
- 'file' : file,
- 'folder' : folder,
- 'font_file' : font_file,
- 'font_suitcase' : font_suitcase,
- 'item' : item,
- 'sharable_container' : sharable_container,
- 'sound_file' : sound_file,
- 'suitcase' : suitcase,
-}
-document_file._propdict = {
-}
-document_file._elemdict = {
-}
-file._propdict = {
- 'creator_type' : creator_type,
- 'file_type' : file_type,
- 'locked' : locked,
- 'product_version' : product_version,
- 'stationery' : stationery,
- 'version' : version,
-}
-file._elemdict = {
-}
-folder._propdict = {
-}
-folder._elemdict = {
- 'accessory_suitcase' : accessory_suitcase,
- 'alias_file' : alias_file,
- 'application_file' : application_file,
- 'container' : container,
- 'control_panel' : control_panel,
- 'desk_accessory_file' : desk_accessory_file,
- 'document_file' : document_file,
- 'file' : file,
- 'folder' : folder,
- 'font_file' : font_file,
- 'font_suitcase' : font_suitcase,
- 'item' : item,
- 'sharable_container' : sharable_container,
- 'sound_file' : sound_file,
- 'suitcase' : suitcase,
-}
-font_file._propdict = {
-}
-font_file._elemdict = {
-}
-font_suitcase._propdict = {
-}
-font_suitcase._elemdict = {
- 'item' : item,
-}
-group._propdict = {
- 'bounds' : bounds,
- 'icon' : icon,
- 'label_index' : label_index,
- 'name' : name,
- 'position' : position,
-}
-group._elemdict = {
-}
-information_window._propdict = {
- 'comment' : comment,
- 'creation_date' : creation_date,
- 'icon' : icon,
- 'item' : item,
- 'locked' : locked,
- 'minimum_partition_size' : minimum_partition_size,
- 'modification_date' : modification_date,
- 'partition_size' : partition_size,
- 'physical_size' : physical_size,
- 'product_version' : product_version,
- 'size' : size,
- 'stationery' : stationery,
- 'suggested_partition_size' : suggested_partition_size,
- 'version' : version,
- 'warn_before_emptying' : warn_before_emptying,
-}
-information_window._elemdict = {
-}
-item._propdict = {
- 'bounds' : bounds,
- 'comment' : comment,
- 'container' : container,
- 'content_space' : content_space,
- 'creation_date' : creation_date,
- 'disk' : disk,
- 'folder' : folder,
- 'icon' : icon,
- 'id' : id,
- 'information_window' : information_window,
- 'kind' : kind,
- 'label_index' : label_index,
- 'modification_date' : modification_date,
- 'name' : name,
- 'physical_size' : physical_size,
- 'position' : position,
- 'selected' : selected,
- 'size' : size,
- 'window' : window,
-}
-item._elemdict = {
-}
-process._propdict = {
- 'creator_type' : creator_type,
- 'file' : file,
- 'file_type' : file_type,
- 'frontmost' : frontmost,
- 'name' : name,
- 'partition_size' : partition_size,
- 'partition_space_used' : partition_space_used,
- 'remote_events' : remote_events,
- 'scriptable' : scriptable,
- 'visible' : visible,
-}
-process._elemdict = {
-}
-sharable_container._propdict = {
- 'exported' : exported,
- 'group' : group,
- 'group_privileges' : group_privileges,
- 'guest_privileges' : guest_privileges,
- 'inherited_privileges' : inherited_privileges,
- 'mounted' : mounted,
- 'owner' : owner,
- 'owner_privileges' : owner_privileges,
- 'protected' : protected,
- 'shared' : shared,
- 'sharing_window' : sharing_window,
-}
-sharable_container._elemdict = {
- 'accessory_suitcase' : accessory_suitcase,
- 'alias_file' : alias_file,
- 'application_file' : application_file,
- 'container' : container,
- 'control_panel' : control_panel,
- 'desk_accessory_file' : desk_accessory_file,
- 'document_file' : document_file,
- 'file' : file,
- 'folder' : folder,
- 'font_file' : font_file,
- 'font_suitcase' : font_suitcase,
- 'item' : item,
- 'sharable_container' : sharable_container,
- 'sound_file' : sound_file,
- 'suitcase' : suitcase,
-}
-sharing_privileges._propdict = {
- 'make_changes' : make_changes,
- 'see_files' : see_files,
- 'see_folders' : see_folders,
-}
-sharing_privileges._elemdict = {
-}
-sharing_window._propdict = {
- 'container' : container,
- 'exported' : exported,
- 'folder' : folder,
- 'group' : group,
- 'group_privileges' : group_privileges,
- 'guest_privileges' : guest_privileges,
- 'inherited_privileges' : inherited_privileges,
- 'item' : item,
- 'mounted' : mounted,
- 'owner' : owner,
- 'owner_privileges' : owner_privileges,
- 'protected' : protected,
- 'sharable_container' : sharable_container,
- 'shared' : shared,
-}
-sharing_window._elemdict = {
-}
-sound_file._propdict = {
-}
-sound_file._elemdict = {
-}
-status_window._propdict = {
-}
-status_window._elemdict = {
-}
-suitcase._propdict = {
-}
-suitcase._elemdict = {
- 'item' : item,
-}
-trash_2d_object._propdict = {
- 'warn_before_emptying' : warn_before_emptying,
-}
-trash_2d_object._elemdict = {
- 'accessory_suitcase' : accessory_suitcase,
- 'alias_file' : alias_file,
- 'application_file' : application_file,
- 'container' : container,
- 'control_panel' : control_panel,
- 'desk_accessory_file' : desk_accessory_file,
- 'document_file' : document_file,
- 'file' : file,
- 'folder' : folder,
- 'font_file' : font_file,
- 'font_suitcase' : font_suitcase,
- 'item' : item,
- 'sharable_container' : sharable_container,
- 'sound_file' : sound_file,
- 'suitcase' : suitcase,
-}
-user._propdict = {
- 'bounds' : bounds,
- 'icon' : icon,
- 'label_index' : label_index,
- 'name' : name,
- 'position' : position,
-}
-user._elemdict = {
-}
-window._propdict = {
-}
-window._elemdict = {
-}
-_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 ', #
-}
-
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
- 'swnd' : sharing_window,
- 'iwnd' : information_window,
- 'ccdv' : control_panel,
- 'cwnd' : container_window,
- 'appf' : application_file,
- 'prcs' : process,
- 'cdis' : disk,
- 'cwin' : window,
- 'dafi' : desk_accessory_file,
- 'sgrp' : group,
- 'alia' : alias_file,
- 'ctnr' : container,
- 'qwnd' : status_window,
- 'fsut' : font_suitcase,
- 'sndf' : sound_file,
- 'priv' : sharing_privileges,
- 'dwnd' : content_space,
- 'pcap' : application_process,
- 'stcs' : suitcase,
- 'ctrs' : trash_2d_object,
- 'file' : file,
- 'cobj' : item,
- 'cuse' : user,
- 'cdsk' : desktop_2d_object,
- 'pcda' : accessory_process,
- 'capp' : application,
- 'cfol' : folder,
- 'sctr' : sharable_container,
- 'dsut' : accessory_suitcase,
- 'docf' : document_file,
- 'fntf' : font_file,
-}
-
-_propdeclarations = {
- 'swnd' : sharing_window,
- 'fshr' : file_sharing,
- 'pvew' : view,
- 'pusd' : partition_space_used,
- 'fcrt' : creator_type,
- 'sdat' : date_heading,
- 'sdin' : disk_information_heading,
- 'strt' : startup_items_folder,
- 'issl' : selected,
- 'pvis' : visible,
- 'slbl' : label_heading,
- 'cdis' : disk,
- 'fitp' : file_type,
- 'smou' : mounted,
- 'pexc' : completely_expanded,
- 'pexa' : expandable,
- 'comt' : comment,
- 'svew' : previous_list_view,
- 'labi' : label_index,
- 'sctr' : sharable_container,
- 'sknd' : kind_heading,
- 'trsh' : trash,
- 'fstg' : staggered_grid,
- 'macs' : system_folder,
- 'vfsz' : view_font_size,
- 'pexp' : expanded,
- 'posn' : position,
- 'cobj' : item,
- 'amnu' : apple_menu_items_folder,
- 'pvwp' : view_preferences,
- 'desk' : desktop,
- 'pnam' : name,
- 'mprt' : minimum_partition_size,
- 'cwin' : window,
- 'pcli' : clipboard,
- 'spro' : protected,
- 'islk' : locked,
- 'sprt' : suggested_partition_size,
- 'pisf' : frontmost,
- 'sele' : selection,
- 'ffnt' : fonts_folder,
- 'istd' : startup,
- 'sdsk' : startup_disk,
- 'shar' : shared,
- 'dwnd' : content_space,
- 'file' : file,
- 'sfsz' : calculate_folder_sizes,
- 'ID ' : id,
- 'prvw' : make_changes,
- 'iprv' : inherited_privileges,
- 'prvr' : see_files,
- 'prvs' : see_folders,
- 'phys' : physical_size,
- 'ctrl' : control_panels_folder,
- 'cwnd' : container_window,
- 'extn' : extensions_folder,
- 'ownr' : owner_privileges,
- 'modd' : modification_date,
- 'dafi' : desk_accessory_file,
- 'sgrp' : group,
- 'temp' : temporary_items_folder,
- 'fgrd' : snap_to_grid,
- 'ptsz' : size,
- 'kind' : kind,
- 'scut' : shortcuts,
- 'abbx' : about_this_macintosh,
- 'ctnr' : container,
- 'isej' : ejectable,
- 'svrs' : version_heading,
- 'vfnt' : view_font,
- 'warn' : warn_before_emptying,
- 'isab' : scriptable,
- 'isrv' : local_volume,
- 'lvis' : icon_size,
- 'shdf' : shutdown_items_folder,
- 'gstp' : guest_privileges,
- 'vers' : version,
- 'appf' : application_file,
- 'iwnd' : information_window,
- 'revt' : remote_events,
- 'frsp' : free_space,
- 'capa' : capacity,
- 'pspd' : stationery,
- 'scom' : comment_heading,
- 'pins' : insertion_location,
- 'orig' : original_item,
- 'pref' : preferences_folder,
- 'fsup' : sharing_starting_up,
- 'sown' : owner,
- 'cfol' : folder,
- 'mfre' : largest_free_block,
- 'ssiz' : size_heading,
- 'iimg' : icon,
- 'appt' : partition_size,
- 'gppr' : group_privileges,
- 'pbnd' : bounds,
- 'ects' : entire_contents,
- 'sexp' : exported,
- 'ver2' : product_version,
- 'crtd' : creation_date,
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
- 'gsen' : _Enum_gsen,
- 'vwby' : _Enum_vwby,
-}
diff --git a/Mac/Lib/lib-scripting/Metrowerks_Shell_Suite.py b/Mac/Lib/lib-scripting/Metrowerks_Shell_Suite.py
deleted file mode 100644
index 7012f99..0000000
--- a/Mac/Lib/lib-scripting/Metrowerks_Shell_Suite.py
+++ /dev/null
@@ -1,1820 +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 2.0.1
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'MMPR'
-
-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['----']
-
- def Set_Current_Target(self, _object=None, _attributes={}, **_arguments):
- """Set Current Target: Set the current target of a project
- Required argument: Name of target
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'MMPR'
- _subcode = 'STrg'
-
- if _arguments: raise TypeError, 'No optional args expected'
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.has_key('errn'):
- raise aetools.Error, aetools.decodeerror(_arguments)
- # XXXX Optionally decode result
- if _arguments.has_key('----'):
- return _arguments['----']
-
- def Set_Default_Project(self, _object, _attributes={}, **_arguments):
- """Set Default Project: Set the default project
- Required argument: Name of project
- Keyword argument _attributes: AppleEvent attribute dictionary
- """
- _code = 'MMPR'
- _subcode = 'SDfP'
-
- if _arguments: raise TypeError, 'No optional args expected'
- _arguments['----'] = _object
-
-
- _reply, _arguments, _attributes = self.send(_code, _subcode,
- _arguments, _attributes)
- if _arguments.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(aetools.ComponentItem):
- """Access Paths - Contains the definitions of a projectÕs access (search) paths."""
- want = 'PATH'
-class User_Paths(aetools.NProperty):
- """User Paths - To add an access path for the source files."""
- which = 'PA01'
- want = 'PInf'
-class System_Paths(aetools.NProperty):
- """System Paths - To add an access path for the include files. (Not supported in Pascal)"""
- which = 'PA03'
- want = 'PInf'
-class Always_Full_Search(aetools.NProperty):
- """Always Full Search - To force the compiler to search for system includes like it searches for user includes."""
- which = 'PA02'
- want = 'bool'
-
-class Editor(aetools.ComponentItem):
- """Editor - """
- want = 'EDTR'
-class Flash_delay(aetools.NProperty):
- """Flash delay - The amount of time, in sixtieths of a second, the editor highlights a matching bracket."""
- which = 'ED01'
- want = 'long'
-class Dynamic_scroll(aetools.NProperty):
- """Dynamic scroll - Display a windowÕs contents as you move the scroll box."""
- which = 'ED02'
- want = 'bool'
-class Balance(aetools.NProperty):
- """Balance - Flash the matching opening bracket when you type a closing bracket."""
- which = 'ED03'
- want = 'bool'
-class Use_Drag__26__Drop_Editing(aetools.NProperty):
- """Use Drag & Drop Editing - Use Drag & Drop text editing."""
- which = 'ED04'
- want = 'bool'
-class Save_on_update(aetools.NProperty):
- """Save on update - Save all editor windows automatically when you choose the Update command."""
- which = 'ED05'
- want = 'bool'
-class Sort_Function_Popup(aetools.NProperty):
- """Sort Function Popup - """
- which = 'ED06'
- want = 'bool'
-class Use_Multiple_Undo(aetools.NProperty):
- """Use Multiple Undo - """
- which = 'ED07'
- want = 'bool'
-class Remember_font(aetools.NProperty):
- """Remember font - Display a source file with its own font settings."""
- which = 'ED08'
- want = 'bool'
-class Remember_selection(aetools.NProperty):
- """Remember selection - Restore the previous selection in a file when you open it."""
- which = 'ED09'
- want = 'bool'
-class Remember_window(aetools.NProperty):
- """Remember window - Restore the last size and position for a source file window when you open it."""
- which = 'ED10'
- want = 'bool'
-class Main_Text_Color(aetools.NProperty):
- """Main Text Color - Main, default, color for text."""
- which = 'ED12'
- want = 'cRGB'
-class Background_Color(aetools.NProperty):
- """Background Color - Color of the background of editor windows."""
- which = 'ED13'
- want = 'cRGB'
-class Context_Popup_Delay(aetools.NProperty):
- """Context Popup Delay - The amount of time, in sixtieths of a second, before the context popup is displayed if you click and hold on a browser symbol."""
- which = 'ED14'
- want = 'bool'
-
-class Syntax_Coloring(aetools.ComponentItem):
- """Syntax Coloring - """
- want = 'SNTX'
-class Syntax_coloring(aetools.NProperty):
- """Syntax coloring - Mark keywords and comments with color."""
- which = 'GH01'
- want = 'bool'
-class Comment_color(aetools.NProperty):
- """Comment color - The color for comments."""
- which = 'GH02'
- want = 'cRGB'
-class Keyword_color(aetools.NProperty):
- """Keyword color - The color for language keywords."""
- which = 'GH03'
- want = 'cRGB'
-class String_color(aetools.NProperty):
- """String color - The color for strings."""
- which = 'GH04'
- want = 'cRGB'
-class Custom_color_1(aetools.NProperty):
- """Custom color 1 - The color for the first set of custom keywords."""
- which = 'GH05'
- want = 'cRGB'
-class Custom_color_2(aetools.NProperty):
- """Custom color 2 - The color for the second set custom keywords."""
- which = 'GH06'
- want = 'cRGB'
-class Custom_color_3(aetools.NProperty):
- """Custom color 3 - The color for the third set of custom keywords."""
- which = 'GH07'
- want = 'cRGB'
-class Custom_color_4(aetools.NProperty):
- """Custom color 4 - The color for the fourth set of custom keywords."""
- which = 'GH08'
- want = 'cRGB'
-
-class Custom_Keywords(aetools.ComponentItem):
- """Custom Keywords - """
- want = 'CUKW'
-class Custom_color_1(aetools.NProperty):
- """Custom color 1 - The color for the first set of custom keywords."""
- which = 'KW01'
- want = 'cRGB'
-class Custom_color_2(aetools.NProperty):
- """Custom color 2 - The color for the second set custom keywords."""
- which = 'KW02'
- want = 'cRGB'
-class Custom_color_3(aetools.NProperty):
- """Custom color 3 - The color for the third set of custom keywords."""
- which = 'KW03'
- want = 'cRGB'
-class Custom_color_4(aetools.NProperty):
- """Custom color 4 - The color for the fourth set of custom keywords."""
- which = 'KW04'
- want = 'cRGB'
-
-class Browser_Coloring(aetools.ComponentItem):
- """Browser Coloring - Colors for Browser symbols."""
- want = 'BRKW'
-class Browser_Keywords(aetools.NProperty):
- """Browser Keywords - Mark Browser symbols with color."""
- which = 'BW00'
- want = 'bool'
-class Classes_Color(aetools.NProperty):
- """Classes Color - The color for classes."""
- which = 'BW01'
- want = 'cRGB'
-class Constants_Color(aetools.NProperty):
- """Constants Color - The color for constants."""
- which = 'BW02'
- want = 'cRGB'
-class Enums_Color(aetools.NProperty):
- """Enums Color - The color for enums."""
- which = 'BW03'
- want = 'cRGB'
-class Functions_Color(aetools.NProperty):
- """Functions Color - Set color for functions."""
- which = 'BW04'
- want = 'cRGB'
-class Globals_Color(aetools.NProperty):
- """Globals Color - The color for globals"""
- which = 'BW05'
- want = 'cRGB'
-class Macros_Color(aetools.NProperty):
- """Macros Color - The color for macros."""
- which = 'BW06'
- want = 'cRGB'
-class Templates_Color(aetools.NProperty):
- """Templates Color - Set color for templates."""
- which = 'BW07'
- want = 'cRGB'
-class Typedefs_Color(aetools.NProperty):
- """Typedefs Color - The color for typedefs."""
- which = 'BW08'
- want = 'cRGB'
-
-class Error_Information(aetools.ComponentItem):
- """Error Information - Describes a single error or warning from the compiler or the linker."""
- want = 'ErrM'
-class kind(aetools.NProperty):
- """kind - The type of error or warning."""
- which = 'ErrT'
- want = 'ErrT'
-class message(aetools.NProperty):
- """message - The error or warning message."""
- which = 'ErrS'
- want = 'TEXT'
-class disk_file(aetools.NProperty):
- """disk file - The file where the error occurred. May not be returned for certain kinds of errors (eg, link errors)."""
- which = 'file'
- want = 'fss '
-class lineNumber(aetools.NProperty):
- """lineNumber - The line in the file where the error occurred. May not be returned for certain kinds of errors (eg, link errors)."""
- which = 'ErrL'
- want = 'long'
-
-class Extras(aetools.ComponentItem):
- """Extras - """
- want = 'GXTR'
-class Completion_sound(aetools.NProperty):
- """Completion sound - Play a sound when finished a Bring Up To Date or Make command."""
- which = 'EX01'
- want = 'bool'
-class Success_sound(aetools.NProperty):
- """Success sound - The sound CodeWarrior plays when it successfully finishes a Bring Up To Date or Make command."""
- which = 'EX02'
- want = 'TEXT'
-class Failure_sound(aetools.NProperty):
- """Failure sound - The sound CodeWarrior plays when it cannot finish a Bring Up To Date or Make command."""
- which = 'EX03'
- want = 'TEXT'
-class Full_screen_zoom(aetools.NProperty):
- """Full screen zoom - Zoom windows to the full screen width."""
- which = 'EX07'
- want = 'bool'
-class External_reference(aetools.NProperty):
- """External reference - Which on-line function reference to use."""
- which = 'EX08'
- want = 'RefP'
-class Use_Script_Menu(aetools.NProperty):
- """Use Script Menu - Controls the use of the AppleScript menu"""
- which = 'EX12'
- want = 'bool'
-class Use_Editor_Extensions(aetools.NProperty):
- """Use Editor Extensions - Controls the use of the Editor Extensions menu"""
- which = 'EX10'
- want = 'bool'
-class Use_External_Editor(aetools.NProperty):
- """Use External Editor - Controls whether CodeWarrior uses its own integrated editor or an external application for editing text files."""
- which = 'EX11'
- want = 'bool'
-class Honor_Projector_State_for_Projects(aetools.NProperty):
- """Honor Projector State for Projects - Controls whether CodeWarrior opens files set to read-only by Projector."""
- which = 'EX13'
- want = 'bool'
-
-class Build_Extras(aetools.ComponentItem):
- """Build Extras - """
- want = 'LXTR'
-class Browser_active(aetools.NProperty):
- """Browser active - Allow the collection of browser information."""
- which = 'EX09'
- want = 'bool'
-class Modification_date_caching(aetools.NProperty):
- """Modification date caching - """
- which = 'EX04'
- want = 'bool'
-class Multiprocessing_Compilation(aetools.NProperty):
- """Multiprocessing Compilation - """
- which = 'EX14'
- want = 'bool'
-class Show_ToolServer_Menu(aetools.NProperty):
- """Show ToolServer Menu - """
- which = 'EX18'
- want = 'bool'
-class Enable_Automatic_Toolbar_Help(aetools.NProperty):
- """Enable Automatic Toolbar Help - """
- which = 'EX19'
- want = 'bool'
-class Include_File_Cache_Size__28_K_29_(aetools.NProperty):
- """Include File Cache Size (K) - """
- which = 'EX15'
- want = 'long'
-class Recent_Documents(aetools.NProperty):
- """Recent Documents - """
- which = 'EX16'
- want = 'shor'
-class Recent_Projects(aetools.NProperty):
- """Recent Projects - """
- which = 'EX17'
- want = 'shor'
-
-class File_Mappings(aetools.ComponentItem):
- """File Mappings - Mappings of extensions & file types to compilers"""
- want = 'FLMP'
-class mappings(aetools.NProperty):
- """mappings - """
- which = 'FMps'
- want = 'FMap'
-
-class Font(aetools.ComponentItem):
- """Font - """
- want = 'mFNT'
-class Auto_indent(aetools.NProperty):
- """Auto indent - Indent new lines automatically."""
- which = 'FN01'
- want = 'bool'
-class Tab_size(aetools.NProperty):
- """Tab size - """
- which = 'FN02'
- want = 'shor'
-class Text_font(aetools.NProperty):
- """Text font - The font used in editing windows."""
- which = 'ptxf'
- want = 'TEXT'
-class Text_size(aetools.NProperty):
- """Text size - The size of the text in an editing window."""
- which = 'ptps'
- want = 'shor'
-
-class Function_Information(aetools.ComponentItem):
- """Function Information - Describes the location of any function or global data definition within the current project."""
- want = 'FDef'
-# repeated property disk_file The location on disk of the file containing the definition.
-# repeated property lineNumber The line number where the definition begins.
-
-class Path_Information(aetools.ComponentItem):
- """Path Information - Contains all of the parameters that describe an access path."""
- want = 'PInf'
-class name(aetools.NProperty):
- """name - The actual path name."""
- which = 'pnam'
- want = 'TEXT'
-class recursive(aetools.NProperty):
- """recursive - Will the path be searched recursively? (Default is true)"""
- which = 'Recu'
- want = 'bool'
-class origin(aetools.NProperty):
- """origin - """
- which = 'Orig'
- want = 'PPrm'
-
-class ProjectFile(aetools.ComponentItem):
- """ProjectFile - A file contained in a project"""
- want = 'SrcF'
-class filetype(aetools.NProperty):
- """filetype - What kind of file is this ?"""
- which = 'SrcT'
- want = 'SrcT'
-# repeated property name The fileÕs name
-# repeated property disk_file The fileÕs location on disk
-class codesize(aetools.NProperty):
- """codesize - The size of this fileÕs code."""
- which = 'CSiz'
- want = 'long'
-class datasize(aetools.NProperty):
- """datasize - The size of this fileÕs data."""
- which = 'DSiz'
- want = 'long'
-class up_to_date(aetools.NProperty):
- """up to date - Has the file been compiled since its last modification ?"""
- which = 'UpTD'
- want = 'bool'
-class symbols(aetools.NProperty):
- """symbols - Are debugging symbols generated for this file ?"""
- which = 'SymG'
- want = 'bool'
-class weak_link(aetools.NProperty):
- """weak link - Is this file imported weakly into the project ? [PowerPC only]"""
- which = 'Weak'
- want = 'bool'
-class initialize_before(aetools.NProperty):
- """initialize before - Intiailize the shared library before the main application."""
- which = 'Bfor'
- want = 'bool'
-class includes(aetools.NProperty):
- """includes - """
- which = 'IncF'
- want = 'fss '
-
-class Segment(aetools.ComponentItem):
- """Segment - A segment or group in the project"""
- want = 'Seg '
-# repeated property name
-class filecount(aetools.NProperty):
- """filecount - """
- which = 'NumF'
- want = 'shor'
-class preloaded(aetools.NProperty):
- """preloaded - Is the segment preloaded ? [68K only]"""
- which = 'Prel'
- want = 'bool'
-class protected(aetools.NProperty):
- """protected - Is the segment protected ? [68K only]"""
- which = 'Prot'
- want = 'bool'
-class locked(aetools.NProperty):
- """locked - Is the segment locked ? [68K only]"""
- which = 'PLck'
- want = 'bool'
-class purgeable(aetools.NProperty):
- """purgeable - Is the segment purgeable ? [68K only]"""
- which = 'Purg'
- want = 'bool'
-class system_heap(aetools.NProperty):
- """system heap - Is the segment loaded into the system heap ? [68K only]"""
- which = 'SysH'
- want = 'bool'
-
-class Target_Settings(aetools.ComponentItem):
- """Target Settings - Contains the definitions of a projectÕs target."""
- want = 'TARG'
-class Linker(aetools.NProperty):
- """Linker - The name of the current linker."""
- which = 'TA01'
- want = 'TEXT'
-class Post_Linker(aetools.NProperty):
- """Post Linker - """
- which = 'TA09'
- want = 'TEXT'
-class Target_Name(aetools.NProperty):
- """Target Name - """
- which = 'TA10'
- want = 'TEXT'
-class Output_Directory_Path(aetools.NProperty):
- """Output Directory Path - """
- which = 'TA11'
- want = 'TEXT'
-class Output_Directory_Origin(aetools.NProperty):
- """Output Directory Origin - """
- which = 'TA12'
- want = 'PPrm'
-
-class File_Mapping(aetools.ComponentItem):
- """File Mapping - """
- want = 'FMap'
-class File_Type(aetools.NProperty):
- """File Type - """
- which = 'PR04'
- want = 'TEXT'
-class Extension(aetools.NProperty):
- """Extension - """
- which = 'TA02'
- want = 'TEXT'
-class Precompiled(aetools.NProperty):
- """Precompiled - """
- which = 'TA03'
- want = 'bool'
-class Resource_File(aetools.NProperty):
- """Resource File - """
- which = 'TA04'
- want = 'bool'
-class Launchable(aetools.NProperty):
- """Launchable - """
- which = 'TA05'
- want = 'bool'
-class Ignored_by_Make(aetools.NProperty):
- """Ignored by Make - """
- which = 'TA06'
- want = 'bool'
-class Compiler(aetools.NProperty):
- """Compiler - """
- which = 'TA07'
- want = 'TEXT'
-
-class _class(aetools.ComponentItem):
- """class - A class, struct, or record type in the current project"""
- want = 'Clas'
-# repeated property name
-class language(aetools.NProperty):
- """language - Implementation language of this class"""
- which = 'Lang'
- want = 'Lang'
-class declaration_file(aetools.NProperty):
- """declaration file - Source file containing the class declaration"""
- which = 'DcFl'
- want = 'fss '
-class declaration_start_offset(aetools.NProperty):
- """declaration start offset - Start of class declaration source code"""
- which = 'DcSt'
- want = 'long'
-class declaration_end_offset(aetools.NProperty):
- """declaration end offset - End of class declaration"""
- which = 'DcEn'
- want = 'long'
-class subclasses(aetools.NProperty):
- """subclasses - the immediate subclasses of this class"""
- which = 'SubC'
- want = 'Clas'
-class all_subclasses(aetools.NProperty):
- """all subclasses - the classes directly or indirectly derived from this class"""
- which = 'SubA'
- want = 'Clas'
-# element 'BsCl' as ['indx']
-# element 'MbFn' as ['indx', 'name']
-# element 'DtMb' as ['indx', 'name']
-
-classes = _class
-
-class member_function(aetools.ComponentItem):
- """member function - A class member function or method."""
- want = 'MbFn'
-# repeated property name
-class access(aetools.NProperty):
- """access - """
- which = 'Acce'
- want = 'Acce'
-class virtual(aetools.NProperty):
- """virtual - """
- which = 'Virt'
- want = 'bool'
-class static(aetools.NProperty):
- """static - """
- which = 'Stat'
- want = 'bool'
-# repeated property declaration_file Source file containing the member function declaration
-# repeated property declaration_start_offset start of member function declaration source code
-# repeated property declaration_end_offset end of member function declaration
-class implementation_file(aetools.NProperty):
- """implementation file - Source file containing the member function definition"""
- which = 'DfFl'
- want = 'fss '
-class implementation_start_offset(aetools.NProperty):
- """implementation start offset - start of member function definition source code"""
- which = 'DfSt'
- want = 'long'
-class implementation_end_offset(aetools.NProperty):
- """implementation end offset - end of member function definition"""
- which = 'DfEn'
- want = 'long'
-
-member_functions = member_function
-
-class data_member(aetools.ComponentItem):
- """data member - A class data member or field"""
- want = 'DtMb'
-# repeated property name
-# repeated property access
-# repeated property static
-# repeated property declaration_start_offset
-# repeated property declaration_end_offset
-
-data_members = data_member
-
-class base_class(aetools.ComponentItem):
- """base class - A base class or super class of a class"""
- want = 'BsCl'
-class _class(aetools.NProperty):
- """class - The class object corresponding to this base class"""
- which = 'Clas'
- want = 'obj '
-# repeated property access
-# repeated property virtual
-
-base_classes = base_class
-
-class browser_catalog(aetools.ComponentItem):
- """browser catalog - The browser symbol catalog for the current project"""
- want = 'Cata'
-# element 'Clas' as ['indx', 'name']
-
-class VCS_Setup(aetools.ComponentItem):
- """VCS Setup - The version control system perferences."""
- want = 'VCSs'
-class VCS_Active(aetools.NProperty):
- """VCS Active - Use Version Control"""
- which = 'VC01'
- want = 'bool'
-class Connection_Method(aetools.NProperty):
- """Connection Method - Name of Version Control System to use."""
- which = 'VC02'
- want = 'TEXT'
-class Username(aetools.NProperty):
- """Username - The user name for the VCS."""
- which = 'VC03'
- want = 'TEXT'
-class Password(aetools.NProperty):
- """Password - The password for the VCS."""
- which = 'VC04'
- want = 'TEXT'
-class Auto_Connect(aetools.NProperty):
- """Auto Connect - Automatically connect to database when starting."""
- which = 'VC05'
- want = 'bool'
-class Store_Password(aetools.NProperty):
- """Store Password - Store the password."""
- which = 'VC06'
- want = 'bool'
-class Always_Prompt(aetools.NProperty):
- """Always Prompt - Always show login dialog"""
- which = 'VC07'
- want = 'bool'
-class Mount_Volume(aetools.NProperty):
- """Mount Volume - Attempt to mount the database volume if it isn't available."""
- which = 'VC08'
- want = 'bool'
-class Database_Path(aetools.NProperty):
- """Database Path - Path to the VCS database."""
- which = 'VC09'
- want = 'PInf'
-class Local_Root(aetools.NProperty):
- """Local Root - Path to the local directory to checkout to."""
- which = 'VC10'
- want = 'PInf'
-Access_Paths._propdict = {
- 'User_Paths' : User_Paths,
- 'System_Paths' : System_Paths,
- 'Always_Full_Search' : Always_Full_Search,
-}
-Access_Paths._elemdict = {
-}
-Editor._propdict = {
- 'Flash_delay' : Flash_delay,
- 'Dynamic_scroll' : Dynamic_scroll,
- 'Balance' : Balance,
- 'Use_Drag__26__Drop_Editing' : Use_Drag__26__Drop_Editing,
- 'Save_on_update' : Save_on_update,
- 'Sort_Function_Popup' : Sort_Function_Popup,
- 'Use_Multiple_Undo' : Use_Multiple_Undo,
- 'Remember_font' : Remember_font,
- 'Remember_selection' : Remember_selection,
- 'Remember_window' : Remember_window,
- 'Main_Text_Color' : Main_Text_Color,
- 'Background_Color' : Background_Color,
- 'Context_Popup_Delay' : Context_Popup_Delay,
-}
-Editor._elemdict = {
-}
-Syntax_Coloring._propdict = {
- 'Syntax_coloring' : Syntax_coloring,
- 'Comment_color' : Comment_color,
- 'Keyword_color' : Keyword_color,
- 'String_color' : String_color,
- 'Custom_color_1' : Custom_color_1,
- 'Custom_color_2' : Custom_color_2,
- 'Custom_color_3' : Custom_color_3,
- 'Custom_color_4' : Custom_color_4,
-}
-Syntax_Coloring._elemdict = {
-}
-Custom_Keywords._propdict = {
- 'Custom_color_1' : Custom_color_1,
- 'Custom_color_2' : Custom_color_2,
- 'Custom_color_3' : Custom_color_3,
- 'Custom_color_4' : Custom_color_4,
-}
-Custom_Keywords._elemdict = {
-}
-Browser_Coloring._propdict = {
- 'Browser_Keywords' : Browser_Keywords,
- 'Classes_Color' : Classes_Color,
- 'Constants_Color' : Constants_Color,
- 'Enums_Color' : Enums_Color,
- 'Functions_Color' : Functions_Color,
- 'Globals_Color' : Globals_Color,
- 'Macros_Color' : Macros_Color,
- 'Templates_Color' : Templates_Color,
- 'Typedefs_Color' : Typedefs_Color,
-}
-Browser_Coloring._elemdict = {
-}
-Error_Information._propdict = {
- 'kind' : kind,
- 'message' : message,
- 'disk_file' : disk_file,
- 'lineNumber' : lineNumber,
-}
-Error_Information._elemdict = {
-}
-Extras._propdict = {
- 'Completion_sound' : Completion_sound,
- 'Success_sound' : Success_sound,
- 'Failure_sound' : Failure_sound,
- 'Full_screen_zoom' : Full_screen_zoom,
- 'External_reference' : External_reference,
- 'Use_Script_Menu' : Use_Script_Menu,
- 'Use_Editor_Extensions' : Use_Editor_Extensions,
- 'Use_External_Editor' : Use_External_Editor,
- 'Honor_Projector_State_for_Projects' : Honor_Projector_State_for_Projects,
-}
-Extras._elemdict = {
-}
-Build_Extras._propdict = {
- 'Browser_active' : Browser_active,
- 'Modification_date_caching' : Modification_date_caching,
- 'Multiprocessing_Compilation' : Multiprocessing_Compilation,
- 'Show_ToolServer_Menu' : Show_ToolServer_Menu,
- 'Enable_Automatic_Toolbar_Help' : Enable_Automatic_Toolbar_Help,
- 'Include_File_Cache_Size__28_K_29_' : Include_File_Cache_Size__28_K_29_,
- 'Recent_Documents' : Recent_Documents,
- 'Recent_Projects' : Recent_Projects,
-}
-Build_Extras._elemdict = {
-}
-File_Mappings._propdict = {
- 'mappings' : mappings,
-}
-File_Mappings._elemdict = {
-}
-Font._propdict = {
- 'Auto_indent' : Auto_indent,
- 'Tab_size' : Tab_size,
- 'Text_font' : Text_font,
- 'Text_size' : Text_size,
-}
-Font._elemdict = {
-}
-Function_Information._propdict = {
- 'disk_file' : disk_file,
- 'lineNumber' : lineNumber,
-}
-Function_Information._elemdict = {
-}
-Path_Information._propdict = {
- 'name' : name,
- 'recursive' : recursive,
- 'origin' : origin,
-}
-Path_Information._elemdict = {
-}
-ProjectFile._propdict = {
- 'filetype' : filetype,
- 'name' : name,
- 'disk_file' : disk_file,
- 'codesize' : codesize,
- 'datasize' : datasize,
- 'up_to_date' : up_to_date,
- 'symbols' : symbols,
- 'weak_link' : weak_link,
- 'initialize_before' : initialize_before,
- 'includes' : includes,
-}
-ProjectFile._elemdict = {
-}
-Segment._propdict = {
- 'name' : name,
- 'filecount' : filecount,
- 'preloaded' : preloaded,
- 'protected' : protected,
- 'locked' : locked,
- 'purgeable' : purgeable,
- 'system_heap' : system_heap,
-}
-Segment._elemdict = {
-}
-Target_Settings._propdict = {
- 'Linker' : Linker,
- 'Post_Linker' : Post_Linker,
- 'Target_Name' : Target_Name,
- 'Output_Directory_Path' : Output_Directory_Path,
- 'Output_Directory_Origin' : Output_Directory_Origin,
-}
-Target_Settings._elemdict = {
-}
-File_Mapping._propdict = {
- 'File_Type' : File_Type,
- 'Extension' : Extension,
- 'Precompiled' : Precompiled,
- 'Resource_File' : Resource_File,
- 'Launchable' : Launchable,
- 'Ignored_by_Make' : Ignored_by_Make,
- 'Compiler' : Compiler,
-}
-File_Mapping._elemdict = {
-}
-_class._propdict = {
- 'name' : name,
- 'language' : language,
- 'declaration_file' : declaration_file,
- 'declaration_start_offset' : declaration_start_offset,
- 'declaration_end_offset' : declaration_end_offset,
- 'subclasses' : subclasses,
- 'all_subclasses' : all_subclasses,
-}
-_class._elemdict = {
- 'base_class' : base_class,
- 'member_function' : member_function,
- 'data_member' : data_member,
-}
-member_function._propdict = {
- 'name' : name,
- 'access' : access,
- 'virtual' : virtual,
- 'static' : static,
- 'declaration_file' : declaration_file,
- 'declaration_start_offset' : declaration_start_offset,
- 'declaration_end_offset' : declaration_end_offset,
- 'implementation_file' : implementation_file,
- 'implementation_start_offset' : implementation_start_offset,
- 'implementation_end_offset' : implementation_end_offset,
-}
-member_function._elemdict = {
-}
-data_member._propdict = {
- 'name' : name,
- 'access' : access,
- 'static' : static,
- 'declaration_start_offset' : declaration_start_offset,
- 'declaration_end_offset' : declaration_end_offset,
-}
-data_member._elemdict = {
-}
-base_class._propdict = {
- '_class' : _class,
- 'access' : access,
- 'virtual' : virtual,
-}
-base_class._elemdict = {
-}
-browser_catalog._propdict = {
-}
-browser_catalog._elemdict = {
- '_class' : _class,
-}
-VCS_Setup._propdict = {
- 'VCS_Active' : VCS_Active,
- 'Connection_Method' : Connection_Method,
- 'Username' : Username,
- 'Password' : Password,
- 'Auto_Connect' : Auto_Connect,
- 'Store_Password' : Store_Password,
- 'Always_Prompt' : Always_Prompt,
- 'Mount_Volume' : Mount_Volume,
- 'Database_Path' : Database_Path,
- 'Local_Root' : Local_Root,
-}
-VCS_Setup._elemdict = {
-}
-_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.
- 'system_relative' : 'YRel', # A path relative to the system 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', #
-}
-
-_Enum_Inte = {
- 'never_interact' : 'eNvr', # Never allow user interactions
- 'interact_with_self' : 'eInS', # Allow user interaction only when an AppleEvent is sent from within CodeWarrior
- 'interact_with_local' : 'eInL', # Allow user interaction when AppleEvents are sent from applications on the same machine (default)
- 'interact_with_all' : 'eInA', # Allow user interaction from both local and remote AppleEvents
-}
-
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
- 'LXTR' : Build_Extras,
- 'Seg ' : Segment,
- 'BsCl' : base_class,
- 'PATH' : Access_Paths,
- 'mFNT' : Font,
- 'BRKW' : Browser_Coloring,
- 'FLMP' : File_Mappings,
- 'Cata' : browser_catalog,
- 'SNTX' : Syntax_Coloring,
- 'CUKW' : Custom_Keywords,
- 'PInf' : Path_Information,
- 'TARG' : Target_Settings,
- 'FDef' : Function_Information,
- 'EDTR' : Editor,
- 'VCSs' : VCS_Setup,
- 'ErrM' : Error_Information,
- 'Clas' : _class,
- 'SrcF' : ProjectFile,
- 'GXTR' : Extras,
- 'MbFn' : member_function,
- 'DtMb' : data_member,
- 'FMap' : File_Mapping,
-}
-
-_propdeclarations = {
- 'CSiz' : codesize,
- 'DcEn' : declaration_end_offset,
- 'FMps' : mappings,
- 'VC02' : Connection_Method,
- 'VC03' : Username,
- 'TA02' : Extension,
- 'UpTD' : up_to_date,
- 'VC07' : Always_Prompt,
- 'Virt' : virtual,
- 'VC05' : Auto_Connect,
- 'VC08' : Mount_Volume,
- 'VC09' : Database_Path,
- 'VC06' : Store_Password,
- 'PA02' : Always_Full_Search,
- 'PA03' : System_Paths,
- 'Clas' : _class,
- 'PA01' : User_Paths,
- 'TA09' : Post_Linker,
- 'Lang' : language,
- 'VC10' : Local_Root,
- 'EX09' : Browser_active,
- 'GH08' : Custom_color_4,
- 'DfFl' : implementation_file,
- 'GH06' : Custom_color_2,
- 'GH07' : Custom_color_3,
- 'GH04' : String_color,
- 'GH05' : Custom_color_1,
- 'KW01' : Custom_color_1,
- 'GH03' : Keyword_color,
- 'KW03' : Custom_color_3,
- 'KW02' : Custom_color_2,
- 'BW02' : Constants_Color,
- 'BW03' : Enums_Color,
- 'BW00' : Browser_Keywords,
- 'BW01' : Classes_Color,
- 'BW06' : Macros_Color,
- 'BW07' : Templates_Color,
- 'BW04' : Functions_Color,
- 'pnam' : name,
- 'DfSt' : implementation_start_offset,
- 'BW08' : Typedefs_Color,
- 'PR04' : File_Type,
- 'EX04' : Modification_date_caching,
- 'EX07' : Full_screen_zoom,
- 'PLck' : locked,
- 'EX02' : Success_sound,
- 'EX03' : Failure_sound,
- 'TA06' : Ignored_by_Make,
- 'TA07' : Compiler,
- 'TA04' : Resource_File,
- 'TA05' : Launchable,
- 'EX08' : External_reference,
- 'DSiz' : datasize,
- 'TA01' : Linker,
- 'VC04' : Password,
- 'Bfor' : initialize_before,
- 'SrcT' : filetype,
- 'SysH' : system_heap,
- 'GH01' : Syntax_coloring,
- 'GH02' : Comment_color,
- 'Prel' : preloaded,
- 'Orig' : origin,
- 'EX17' : Recent_Projects,
- 'EX16' : Recent_Documents,
- 'EX15' : Include_File_Cache_Size__28_K_29_,
- 'EX14' : Multiprocessing_Compilation,
- 'EX01' : Completion_sound,
- 'EX12' : Use_Script_Menu,
- 'EX11' : Use_External_Editor,
- 'EX10' : Use_Editor_Extensions,
- 'TA11' : Output_Directory_Path,
- 'TA10' : Target_Name,
- 'TA12' : Output_Directory_Origin,
- 'EX19' : Enable_Automatic_Toolbar_Help,
- 'EX18' : Show_ToolServer_Menu,
- 'ErrT' : kind,
- 'ptxf' : Text_font,
- 'ErrS' : message,
- 'SubA' : all_subclasses,
- 'SubC' : subclasses,
- 'ED08' : Remember_font,
- 'ED09' : Remember_selection,
- 'VC01' : VCS_Active,
- 'ErrL' : lineNumber,
- 'ED01' : Flash_delay,
- 'ED02' : Dynamic_scroll,
- 'ED03' : Balance,
- 'ED04' : Use_Drag__26__Drop_Editing,
- 'ED05' : Save_on_update,
- 'ED06' : Sort_Function_Popup,
- 'ED07' : Use_Multiple_Undo,
- 'Recu' : recursive,
- 'IncF' : includes,
- 'file' : disk_file,
- 'TA03' : Precompiled,
- 'Weak' : weak_link,
- 'DcSt' : declaration_start_offset,
- 'ptps' : Text_size,
- 'Stat' : static,
- 'ED10' : Remember_window,
- 'EX13' : Honor_Projector_State_for_Projects,
- 'DfEn' : implementation_end_offset,
- 'BW05' : Globals_Color,
- 'FN01' : Auto_indent,
- 'Purg' : purgeable,
- 'NumF' : filecount,
- 'Acce' : access,
- 'Prot' : protected,
- 'DcFl' : declaration_file,
- 'KW04' : Custom_color_4,
- 'ED13' : Background_Color,
- 'ED12' : Main_Text_Color,
- 'SymG' : symbols,
- 'FN02' : Tab_size,
- 'ED14' : Context_Popup_Delay,
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
- 'ErrT' : _Enum_ErrT,
- 'PPrm' : _Enum_PPrm,
- 'RefP' : _Enum_RefP,
- 'Acce' : _Enum_Acce,
- 'SrcT' : _Enum_SrcT,
- 'Mode' : _Enum_Mode,
- 'Inte' : _Enum_Inte,
- 'savo' : _Enum_savo,
- 'Lang' : _Enum_Lang,
-}
diff --git a/Mac/Lib/lib-scripting/QuickDraw_Graphics_Suite.py b/Mac/Lib/lib-scripting/QuickDraw_Graphics_Suite.py
deleted file mode 100644
index 09244cb..0000000
--- a/Mac/Lib/lib-scripting/QuickDraw_Graphics_Suite.py
+++ /dev/null
@@ -1,411 +0,0 @@
-"""Suite QuickDraw Graphics Suite: A set of basic classes for graphics
-Level 1, version 1
-
-Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'qdrw'
-
-class QuickDraw_Graphics_Suite:
-
- pass
-
-
-class arc(aetools.ComponentItem):
- """arc - An arc"""
- want = 'carc'
-class arc_angle(aetools.NProperty):
- """arc angle - Angle of the arc in degrees"""
- which = 'parc'
- want = 'fixd'
-class bounds(aetools.NProperty):
- """bounds - the smallest rectangle that contains the entire arc"""
- which = 'pbnd'
- want = 'qdrt'
-class _class(aetools.NProperty):
- """class - the class"""
- which = 'pcls'
- want = 'type'
-class definition_rect(aetools.NProperty):
- """definition rect - the rectangle that contains the circle or oval used to define the arc"""
- which = 'pdrt'
- want = 'qdrt'
-class fill_color(aetools.NProperty):
- """fill color - the fill color"""
- which = 'flcl'
- want = 'cRGB'
-class fill_pattern(aetools.NProperty):
- """fill pattern - the fill pattern"""
- which = 'flpt'
- want = 'cpix'
-class pen_color(aetools.NProperty):
- """pen color - the pen color"""
- which = 'ppcl'
- want = 'cRGB'
-class pen_pattern(aetools.NProperty):
- """pen pattern - the pen pattern"""
- which = 'pppa'
- want = 'cpix'
-class pen_width(aetools.NProperty):
- """pen width - the pen width"""
- which = 'ppwd'
- want = 'shor'
-class start_angle(aetools.NProperty):
- """start angle - the angle that defines the start of the arc, in degrees"""
- which = 'pang'
- want = 'fixd'
-class transfer_mode(aetools.NProperty):
- """transfer mode - the transfer mode"""
- which = 'pptm'
- want = 'tran'
-
-arcs = arc
-
-class drawing_area(aetools.ComponentItem):
- """drawing area - Container for graphics and supporting information"""
- want = 'cdrw'
-class background_color(aetools.NProperty):
- """background color - the color used to fill in unoccupied areas"""
- which = 'pbcl'
- want = 'cRGB'
-class background_pattern(aetools.NProperty):
- """background pattern - the pattern used to fill in unoccupied areas"""
- which = 'pbpt'
- want = 'cpix'
-class color_table(aetools.NProperty):
- """color table - the color table"""
- which = 'cltb'
- want = 'clrt'
-class ordering(aetools.NProperty):
- """ordering - the ordered list of graphic objects in the drawing area"""
- which = 'gobs'
- want = 'obj '
-class name(aetools.NProperty):
- """name - the name"""
- which = 'pnam'
- want = 'itxt'
-class default_location(aetools.NProperty):
- """default location - the default location of each new graphic object"""
- which = 'pnel'
- want = 'QDpt'
-class pixel_depth(aetools.NProperty):
- """pixel depth - Bits per pixel"""
- which = 'pdpt'
- want = 'shor'
-class writing_code(aetools.NProperty):
- """writing code - the script system and language of text objects in the drawing area"""
- which = 'psct'
- want = 'intl'
-class text_color(aetools.NProperty):
- """text color - the default color for text objects"""
- which = 'ptxc'
- want = 'cRGB'
-class default_font(aetools.NProperty):
- """default font - the name of the default font for text objects"""
- which = 'ptxf'
- want = 'itxt'
-class default_size(aetools.NProperty):
- """default size - the default size for text objects"""
- which = 'ptps'
- want = 'fixd'
-class style(aetools.NProperty):
- """style - the default text style for text objects"""
- which = 'txst'
- want = 'tsty'
-class update_on_change(aetools.NProperty):
- """update on change - Redraw after each change?"""
- which = 'pupd'
- want = 'bool'
-
-drawing_areas = drawing_area
-
-class graphic_line(aetools.ComponentItem):
- """graphic line - A graphic line"""
- want = 'glin'
-class dash_style(aetools.NProperty):
- """dash style - the dash style"""
- which = 'pdst'
- want = 'tdas'
-class end_point(aetools.NProperty):
- """end point - the ending point of the line"""
- which = 'pend'
- want = 'QDpt'
-class arrow_style(aetools.NProperty):
- """arrow style - the arrow style"""
- which = 'arro'
- want = 'arro'
-class start_point(aetools.NProperty):
- """start point - the starting point of the line"""
- which = 'pstp'
- want = 'QDpt'
-
-graphic_lines = graphic_line
-
-class graphic_object(aetools.ComponentItem):
- """graphic object - A graphic object"""
- want = 'cgob'
-
-graphic_objects = graphic_object
-
-class graphic_shape(aetools.ComponentItem):
- """graphic shape - A graphic shape"""
- want = 'cgsh'
-
-graphic_shapes = graphic_shape
-
-class graphic_text(aetools.ComponentItem):
- """graphic text - A series of characters within a drawing area"""
- want = 'cgtx'
-class color(aetools.NProperty):
- """color - the color of the first character"""
- which = 'colr'
- want = 'cRGB'
-class font(aetools.NProperty):
- """font - the name of the font of the first character"""
- which = 'font'
- want = 'ctxt'
-class size(aetools.NProperty):
- """size - the size in points of the first character"""
- which = 'ptsz'
- want = 'fixd'
-class uniform_styles(aetools.NProperty):
- """uniform styles - the text styles that are uniform throughout the text"""
- which = 'ustl'
- want = 'tsty'
-
-class graphic_group(aetools.ComponentItem):
- """graphic group - Group of graphics"""
- want = 'cpic'
-
-graphic_groups = graphic_group
-
-class oval(aetools.ComponentItem):
- """oval - An oval"""
- want = 'covl'
-
-ovals = oval
-
-class pixel(aetools.ComponentItem):
- """pixel - A pixel"""
- want = 'cpxl'
-# repeated property color the color
-
-pixels = pixel
-
-class pixel_map(aetools.ComponentItem):
- """pixel map - A pixel map"""
- want = 'cpix'
-
-pixel_maps = pixel_map
-
-class polygon(aetools.ComponentItem):
- """polygon - A polygon"""
- want = 'cpgn'
-class point_list(aetools.NProperty):
- """point list - the list of points that define the polygon"""
- which = 'ptlt'
- want = 'QDpt'
-
-polygons = polygon
-
-class rectangle(aetools.ComponentItem):
- """rectangle - A rectangle"""
- want = 'crec'
-
-rectangles = rectangle
-
-class rounded_rectangle(aetools.ComponentItem):
- """rounded rectangle - A rounded rectangle"""
- want = 'crrc'
-class corner_curve_height(aetools.NProperty):
- """corner curve height - the height of the oval used to define the shape of the rounded corners"""
- which = 'pchd'
- want = 'shor'
-class corner_curve_width(aetools.NProperty):
- """corner curve width - the width of the oval used to define the shape of the rounded corners"""
- which = 'pcwd'
- want = 'shor'
-
-rounded_rectangles = rounded_rectangle
-arc._propdict = {
- 'arc_angle' : arc_angle,
- 'bounds' : bounds,
- '_class' : _class,
- 'definition_rect' : definition_rect,
- 'fill_color' : fill_color,
- 'fill_pattern' : fill_pattern,
- 'pen_color' : pen_color,
- 'pen_pattern' : pen_pattern,
- 'pen_width' : pen_width,
- 'start_angle' : start_angle,
- 'transfer_mode' : transfer_mode,
-}
-arc._elemdict = {
-}
-drawing_area._propdict = {
- 'background_color' : background_color,
- 'background_pattern' : background_pattern,
- 'color_table' : color_table,
- 'ordering' : ordering,
- 'name' : name,
- 'default_location' : default_location,
- 'pixel_depth' : pixel_depth,
- 'writing_code' : writing_code,
- 'text_color' : text_color,
- 'default_font' : default_font,
- 'default_size' : default_size,
- 'style' : style,
- 'update_on_change' : update_on_change,
-}
-drawing_area._elemdict = {
-}
-graphic_line._propdict = {
- 'dash_style' : dash_style,
- 'end_point' : end_point,
- 'arrow_style' : arrow_style,
- 'start_point' : start_point,
-}
-graphic_line._elemdict = {
-}
-graphic_object._propdict = {
-}
-graphic_object._elemdict = {
-}
-graphic_shape._propdict = {
-}
-graphic_shape._elemdict = {
-}
-graphic_text._propdict = {
- 'color' : color,
- 'font' : font,
- 'size' : size,
- 'uniform_styles' : uniform_styles,
-}
-graphic_text._elemdict = {
-}
-graphic_group._propdict = {
-}
-graphic_group._elemdict = {
-}
-oval._propdict = {
-}
-oval._elemdict = {
-}
-pixel._propdict = {
- 'color' : color,
-}
-pixel._elemdict = {
-}
-pixel_map._propdict = {
-}
-pixel_map._elemdict = {
-}
-polygon._propdict = {
- 'point_list' : point_list,
-}
-polygon._elemdict = {
-}
-rectangle._propdict = {
-}
-rectangle._elemdict = {
-}
-rounded_rectangle._propdict = {
- 'corner_curve_height' : corner_curve_height,
- 'corner_curve_width' : corner_curve_width,
-}
-rounded_rectangle._elemdict = {
-}
-_Enum_tran = {
- 'copy_pixels' : 'cpy ', #
- 'not_copy_pixels' : 'ncpy', #
- 'or_pixels' : 'or ', #
- 'not_or_pixels' : 'ntor', #
- 'bic_pixels' : 'bic ', #
- 'not_bic_pixels' : 'nbic', #
- 'xor_pixels' : 'xor ', #
- 'not_xor_pixels' : 'nxor', #
- 'add_over_pixels' : 'addo', #
- 'add_pin_pixels' : 'addp', #
- 'sub_over_pixels' : 'subo', #
- 'sub_pin_pixels' : 'subp', #
- 'ad_max_pixels' : 'admx', #
- 'ad_min_pixels' : 'admn', #
- 'blend_pixels' : 'blnd', #
-}
-
-_Enum_arro = {
- 'no_arrow' : 'arno', # No arrow on line
- 'arrow_at_start' : 'arst', # Arrow at start of line
- 'arrow_at_end' : 'aren', # Arrow at end of line
- 'arrow_at_both_ends' : 'arbo', # Arrow at both the start and the end of the line
-}
-
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
- 'crec' : rectangle,
- 'cpix' : pixel_map,
- 'carc' : arc,
- 'cgsh' : graphic_shape,
- 'cpxl' : pixel,
- 'crrc' : rounded_rectangle,
- 'cpgn' : polygon,
- 'cdrw' : drawing_area,
- 'cgob' : graphic_object,
- 'glin' : graphic_line,
- 'cgtx' : graphic_text,
- 'covl' : oval,
- 'cpic' : graphic_group,
-}
-
-_propdeclarations = {
- 'pend' : end_point,
- 'pupd' : update_on_change,
- 'pstp' : start_point,
- 'pdrt' : definition_rect,
- 'pnam' : name,
- 'pbcl' : background_color,
- 'pptm' : transfer_mode,
- 'pnel' : default_location,
- 'pdpt' : pixel_depth,
- 'gobs' : ordering,
- 'ustl' : uniform_styles,
- 'ptlt' : point_list,
- 'pdst' : dash_style,
- 'psct' : writing_code,
- 'txst' : style,
- 'font' : font,
- 'pchd' : corner_curve_height,
- 'pcls' : _class,
- 'ppwd' : pen_width,
- 'ptps' : default_size,
- 'ppcl' : pen_color,
- 'ptxf' : default_font,
- 'pcwd' : corner_curve_width,
- 'ptxc' : text_color,
- 'cltb' : color_table,
- 'pppa' : pen_pattern,
- 'pang' : start_angle,
- 'flpt' : fill_pattern,
- 'colr' : color,
- 'arro' : arrow_style,
- 'pbnd' : bounds,
- 'ptsz' : size,
- 'parc' : arc_angle,
- 'flcl' : fill_color,
- 'pbpt' : background_pattern,
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
- 'tran' : _Enum_tran,
- 'arro' : _Enum_arro,
-}
diff --git a/Mac/Lib/lib-scripting/QuickDraw_Graphics_Supplemental b/Mac/Lib/lib-scripting/QuickDraw_Graphics_Supplemental
deleted file mode 100644
index 9666842..0000000
--- a/Mac/Lib/lib-scripting/QuickDraw_Graphics_Supplemental
+++ /dev/null
@@ -1,71 +0,0 @@
-"""Suite QuickDraw Graphics Supplemental Suite: Defines transformations of graphic objects
-Level 1, version 1
-
-Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'qdsp'
-
-class QuickDraw_Graphics_Supplemental_Suite:
-
- pass
-
-
-class drawing_area(aetools.ComponentItem):
- """drawing area - Container for graphics and supporting information"""
- want = 'cdrw'
-class rotation(aetools.NProperty):
- """rotation - the default rotation for objects in the drawing area"""
- which = 'prot'
- want = 'trot'
-class scale(aetools.NProperty):
- """scale - the default scaling for objects in the drawing area"""
- which = 'pscl'
- want = 'fixd'
-class translation(aetools.NProperty):
- """translation - the default repositioning for objects in the drawing area"""
- which = 'ptrs'
- want = 'QDpt'
-
-drawing_areas = drawing_area
-
-class graphic_group(aetools.ComponentItem):
- """graphic group - Group of graphics"""
- want = 'cpic'
-
-graphic_groups = graphic_group
-drawing_area._propdict = {
- 'rotation' : rotation,
- 'scale' : scale,
- 'translation' : translation,
-}
-drawing_area._elemdict = {
-}
-graphic_group._propdict = {
-}
-graphic_group._elemdict = {
-}
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
- 'cpic' : graphic_group,
- 'cdrw' : drawing_area,
-}
-
-_propdeclarations = {
- 'prot' : rotation,
- 'pscl' : scale,
- 'ptrs' : translation,
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
-}
diff --git a/Mac/Lib/lib-scripting/Required_Suite.py b/Mac/Lib/lib-scripting/Required_Suite.py
deleted file mode 100644
index d9aa5b9..0000000
--- a/Mac/Lib/lib-scripting/Required_Suite.py
+++ /dev/null
@@ -1,107 +0,0 @@
-"""Suite Required Suite: Terms that every application should support
-Level 1, version 1
-
-Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English 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['----']
-
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
-}
-
-_propdeclarations = {
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
-}
diff --git a/Mac/Lib/lib-scripting/Standard_Suite.py b/Mac/Lib/lib-scripting/Standard_Suite.py
deleted file mode 100644
index f6d9b5a..0000000
--- a/Mac/Lib/lib-scripting/Standard_Suite.py
+++ /dev/null
@@ -1,713 +0,0 @@
-"""Suite Standard Suite: Common terms for most applications
-Level 1, version 1
-
-Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'core'
-
-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(aetools.ComponentItem):
- """application - An application program"""
- want = 'capp'
-class clipboard(aetools.NProperty):
- """clipboard - the clipboard"""
- which = 'pcli'
- want = '****'
-class frontmost(aetools.NProperty):
- """frontmost - Is this the frontmost application?"""
- which = 'pisf'
- want = 'bool'
-class name(aetools.NProperty):
- """name - the name"""
- which = 'pnam'
- want = 'itxt'
-class selection(aetools.NProperty):
- """selection - the selection visible to the user"""
- which = 'sele'
- want = 'csel'
-class version(aetools.NProperty):
- """version - the version of the application"""
- which = 'vers'
- want = 'vers'
-
-applications = application
-
-class character(aetools.ComponentItem):
- """character - A character"""
- want = 'cha '
-class color(aetools.NProperty):
- """color - the color"""
- which = 'colr'
- want = 'cRGB'
-class font(aetools.NProperty):
- """font - the name of the font"""
- which = 'font'
- want = 'ctxt'
-class size(aetools.NProperty):
- """size - the size in points"""
- which = 'ptsz'
- want = 'fixd'
-class writing_code(aetools.NProperty):
- """writing code - the script system and language"""
- which = 'psct'
- want = 'intl'
-class style(aetools.NProperty):
- """style - the text style"""
- which = 'txst'
- want = 'tsty'
-class uniform_styles(aetools.NProperty):
- """uniform styles - the text style"""
- which = 'ustl'
- want = 'tsty'
-
-characters = character
-
-class document(aetools.ComponentItem):
- """document - A document"""
- want = 'docu'
-class modified(aetools.NProperty):
- """modified - Has the document been modified since the last save?"""
- which = 'imod'
- want = 'bool'
-
-documents = document
-
-class file(aetools.ComponentItem):
- """file - A file"""
- want = 'file'
-class stationery(aetools.NProperty):
- """stationery - Is the file a stationery file?"""
- which = 'pspd'
- want = 'bool'
-
-files = file
-
-class selection_2d_object(aetools.ComponentItem):
- """selection-object - the selection visible to the user"""
- want = 'csel'
-class contents(aetools.NProperty):
- """contents - the contents of the selection"""
- which = 'pcnt'
- want = 'type'
-
-class text(aetools.ComponentItem):
- """text - Text"""
- want = 'ctxt'
-# repeated property font the name of the font of the first character
-
-class text_style_info(aetools.ComponentItem):
- """text style info - On and Off styles of text run"""
- want = 'tsty'
-class on_styles(aetools.NProperty):
- """on styles - the styles that are on for the text"""
- which = 'onst'
- want = 'styl'
-class off_styles(aetools.NProperty):
- """off styles - the styles that are off for the text"""
- which = 'ofst'
- want = 'styl'
-
-text_style_infos = text_style_info
-
-class window(aetools.ComponentItem):
- """window - A window"""
- want = 'cwin'
-class bounds(aetools.NProperty):
- """bounds - the boundary rectangle for the window"""
- which = 'pbnd'
- want = 'qdrt'
-class closeable(aetools.NProperty):
- """closeable - Does the window have a close box?"""
- which = 'hclb'
- want = 'bool'
-class titled(aetools.NProperty):
- """titled - Does the window have a title bar?"""
- which = 'ptit'
- want = 'bool'
-class index(aetools.NProperty):
- """index - the number of the window"""
- which = 'pidx'
- want = 'long'
-class floating(aetools.NProperty):
- """floating - Does the window float?"""
- which = 'isfl'
- want = 'bool'
-class modal(aetools.NProperty):
- """modal - Is the window modal?"""
- which = 'pmod'
- want = 'bool'
-class resizable(aetools.NProperty):
- """resizable - Is the window resizable?"""
- which = 'prsz'
- want = 'bool'
-class zoomable(aetools.NProperty):
- """zoomable - Is the window zoomable?"""
- which = 'iszm'
- want = 'bool'
-class zoomed(aetools.NProperty):
- """zoomed - Is the window zoomed?"""
- which = 'pzum'
- want = 'bool'
-class visible(aetools.NProperty):
- """visible - Is the window visible?"""
- which = 'pvis'
- want = 'bool'
-
-windows = window
-
-class insertion_point(aetools.ComponentItem):
- """insertion point - An insertion location between two objects"""
- want = 'cins'
-
-insertion_points = insertion_point
-application._propdict = {
- 'clipboard' : clipboard,
- 'frontmost' : frontmost,
- 'name' : name,
- 'selection' : selection,
- 'version' : version,
-}
-application._elemdict = {
-}
-character._propdict = {
- 'color' : color,
- 'font' : font,
- 'size' : size,
- 'writing_code' : writing_code,
- 'style' : style,
- 'uniform_styles' : uniform_styles,
-}
-character._elemdict = {
-}
-document._propdict = {
- 'modified' : modified,
-}
-document._elemdict = {
-}
-file._propdict = {
- 'stationery' : stationery,
-}
-file._elemdict = {
-}
-selection_2d_object._propdict = {
- 'contents' : contents,
-}
-selection_2d_object._elemdict = {
-}
-text._propdict = {
- 'font' : font,
-}
-text._elemdict = {
-}
-text_style_info._propdict = {
- 'on_styles' : on_styles,
- 'off_styles' : off_styles,
-}
-text_style_info._elemdict = {
-}
-window._propdict = {
- 'bounds' : bounds,
- 'closeable' : closeable,
- 'titled' : titled,
- 'index' : index,
- 'floating' : floating,
- 'modal' : modal,
- 'resizable' : resizable,
- 'zoomable' : zoomable,
- 'zoomed' : zoomed,
- 'visible' : visible,
-}
-window._elemdict = {
-}
-insertion_point._propdict = {
-}
-insertion_point._elemdict = {
-}
-class starts_with(aetools.NComparison):
- """starts with - Starts with"""
-class contains(aetools.NComparison):
- """contains - Contains"""
-class ends_with(aetools.NComparison):
- """ends with - Ends with"""
-class _3d_(aetools.NComparison):
- """= - Equal"""
-class _3e_(aetools.NComparison):
- """> - Greater than"""
-class _b3_(aetools.NComparison):
- """³ - Greater than or equal to"""
-class _3c_(aetools.NComparison):
- """< - Less than"""
-class _b2_(aetools.NComparison):
- """² - Less than or equal to"""
-_Enum_savo = {
- 'yes' : 'yes ', # Save objects now
- 'no' : 'no ', # Do not save objects
- 'ask' : 'ask ', # Ask the user whether to save
-}
-
-_Enum_kfrm = {
- 'index' : 'indx', # keyform designating indexed access
- 'named' : 'name', # keyform designating named access
- 'id' : 'ID ', # keyform designating access by unique identifier
-}
-
-_Enum_styl = {
- 'plain' : 'plan', # Plain
- 'bold' : 'bold', # Bold
- 'italic' : 'ital', # Italic
- 'outline' : 'outl', # Outline
- 'shadow' : 'shad', # Shadow
- 'underline' : 'undl', # Underline
- 'superscript' : 'spsc', # Superscript
- 'subscript' : 'sbsc', # Subscript
- 'strikethrough' : 'strk', # Strikethrough
- 'small_caps' : 'smcp', # Small caps
- 'all_caps' : 'alcp', # All capital letters
- 'all_lowercase' : 'lowc', # Lowercase
- 'condensed' : 'cond', # Condensed
- 'expanded' : 'pexp', # Expanded
- 'hidden' : 'hidn', # Hidden
-}
-
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
- 'docu' : document,
- 'tsty' : text_style_info,
- 'ctxt' : text,
- 'capp' : application,
- 'csel' : selection_2d_object,
- 'file' : file,
- 'cwin' : window,
- 'cha ' : character,
- 'cins' : insertion_point,
-}
-
-_propdeclarations = {
- 'ptit' : titled,
- 'onst' : on_styles,
- 'pnam' : name,
- 'pcli' : clipboard,
- 'ustl' : uniform_styles,
- 'psct' : writing_code,
- 'txst' : style,
- 'pvis' : visible,
- 'pspd' : stationery,
- 'pisf' : frontmost,
- 'sele' : selection,
- 'pmod' : modal,
- 'imod' : modified,
- 'ofst' : off_styles,
- 'ptsz' : size,
- 'pzum' : zoomed,
- 'hclb' : closeable,
- 'font' : font,
- 'pcnt' : contents,
- 'isfl' : floating,
- 'pidx' : index,
- 'iszm' : zoomable,
- 'colr' : color,
- 'pbnd' : bounds,
- 'vers' : version,
- 'prsz' : resizable,
-}
-
-_compdeclarations = {
- '> ' : _3e_,
- 'bgwt' : starts_with,
- '>= ' : _b3_,
- '= ' : _3d_,
- '<= ' : _b2_,
- 'cont' : contains,
- 'ends' : ends_with,
- '< ' : _3c_,
-}
-
-_enumdeclarations = {
- 'styl' : _Enum_styl,
- 'savo' : _Enum_savo,
- 'kfrm' : _Enum_kfrm,
-}
diff --git a/Mac/Lib/lib-scripting/Standard_URL_suite.py b/Mac/Lib/lib-scripting/Standard_URL_suite.py
deleted file mode 100644
index 3c02ebd..0000000
--- a/Mac/Lib/lib-scripting/Standard_URL_suite.py
+++ /dev/null
@@ -1,62 +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.01
-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['----']
-
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
-}
-
-_propdeclarations = {
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
-}
diff --git a/Mac/Lib/lib-scripting/Table_Suite.py b/Mac/Lib/lib-scripting/Table_Suite.py
deleted file mode 100644
index ff1dbf7..0000000
--- a/Mac/Lib/lib-scripting/Table_Suite.py
+++ /dev/null
@@ -1,106 +0,0 @@
-"""Suite Table Suite: Classes for manipulating tables
-Level 1, version 1
-
-Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'tbls'
-
-class Table_Suite:
-
- pass
-
-
-class cell(aetools.ComponentItem):
- """cell - A cell"""
- want = 'ccel'
-class _class(aetools.NProperty):
- """class - the class"""
- which = 'pcls'
- want = 'type'
-class formula(aetools.NProperty):
- """formula - the formula of the cell"""
- which = 'pfor'
- want = 'ctxt'
-class protection(aetools.NProperty):
- """protection - Indicates whether value or formula in the cell can be changed"""
- which = 'ppro'
- want = 'prtn'
-
-cells = cell
-
-class column(aetools.ComponentItem):
- """column - A column"""
- want = 'ccol'
-class name(aetools.NProperty):
- """name - the name"""
- which = 'pnam'
- want = 'itxt'
-
-columns = column
-
-class row(aetools.ComponentItem):
- """row - A row"""
- want = 'crow'
-
-rows = row
-
-class table(aetools.ComponentItem):
- """table - A table"""
- want = 'ctbl'
-
-tables = table
-cell._propdict = {
- '_class' : _class,
- 'formula' : formula,
- 'protection' : protection,
-}
-cell._elemdict = {
-}
-column._propdict = {
- 'name' : name,
-}
-column._elemdict = {
-}
-row._propdict = {
-}
-row._elemdict = {
-}
-table._propdict = {
-}
-table._elemdict = {
-}
-_Enum_prtn = {
- 'read_only' : 'nmod', # Can't change values or formulas
- 'formulas_protected' : 'fpro', # Can changes values but not formulas
- 'read_2f_write' : 'modf', # Can change values and formulas
-}
-
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
- 'ccel' : cell,
- 'ctbl' : table,
- 'ccol' : column,
- 'crow' : row,
-}
-
-_propdeclarations = {
- 'ppro' : protection,
- 'pnam' : name,
- 'pfor' : formula,
- 'pcls' : _class,
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
- 'prtn' : _Enum_prtn,
-}
diff --git a/Mac/Lib/lib-scripting/Text_Suite.py b/Mac/Lib/lib-scripting/Text_Suite.py
deleted file mode 100644
index e4e82d9..0000000
--- a/Mac/Lib/lib-scripting/Text_Suite.py
+++ /dev/null
@@ -1,186 +0,0 @@
-"""Suite Text Suite: A set of basic classes for text processing
-Level 1, version 1
-
-Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'TEXT'
-
-class Text_Suite:
-
- pass
-
-
-class character(aetools.ComponentItem):
- """character - A character"""
- want = 'cha '
-class best_type(aetools.NProperty):
- """best type - the best descriptor type"""
- which = 'pbst'
- want = 'type'
-class _class(aetools.NProperty):
- """class - the class"""
- which = 'pcls'
- want = 'type'
-class color(aetools.NProperty):
- """color - the color"""
- which = 'colr'
- want = 'cRGB'
-class default_type(aetools.NProperty):
- """default type - the default descriptor type"""
- which = 'deft'
- want = 'type'
-class font(aetools.NProperty):
- """font - the name of the font"""
- which = 'font'
- want = 'ctxt'
-class size(aetools.NProperty):
- """size - the size in points"""
- which = 'ptsz'
- want = 'fixd'
-class writing_code(aetools.NProperty):
- """writing code - the script system and language"""
- which = 'psct'
- want = 'intl'
-class style(aetools.NProperty):
- """style - the text style"""
- which = 'txst'
- want = 'tsty'
-class uniform_styles(aetools.NProperty):
- """uniform styles - the text style"""
- which = 'ustl'
- want = 'tsty'
-
-class line(aetools.ComponentItem):
- """line - A line of text"""
- want = 'clin'
-class justification(aetools.NProperty):
- """justification - Justification of the text"""
- which = 'pjst'
- want = 'just'
-
-lines = line
-
-class paragraph(aetools.ComponentItem):
- """paragraph - A paragraph"""
- want = 'cpar'
-
-paragraphs = paragraph
-
-class text(aetools.ComponentItem):
- """text - Text"""
- want = 'ctxt'
-
-class text_flow(aetools.ComponentItem):
- """text flow - A contiguous block of text"""
- want = 'cflo'
-class name(aetools.NProperty):
- """name - the name"""
- which = 'pnam'
- want = 'itxt'
-
-text_flows = text_flow
-
-class word(aetools.ComponentItem):
- """word - A word"""
- want = 'cwor'
-
-words = word
-character._propdict = {
- 'best_type' : best_type,
- '_class' : _class,
- 'color' : color,
- 'default_type' : default_type,
- 'font' : font,
- 'size' : size,
- 'writing_code' : writing_code,
- 'style' : style,
- 'uniform_styles' : uniform_styles,
-}
-character._elemdict = {
-}
-line._propdict = {
- 'justification' : justification,
-}
-line._elemdict = {
-}
-paragraph._propdict = {
-}
-paragraph._elemdict = {
-}
-text._propdict = {
-}
-text._elemdict = {
-}
-text_flow._propdict = {
- 'name' : name,
-}
-text_flow._elemdict = {
-}
-word._propdict = {
-}
-word._elemdict = {
-}
-_Enum_just = {
- 'left' : 'left', # Align with left margin
- 'right' : 'rght', # Align with right margin
- 'center' : 'cent', # Align with center
- 'full' : 'full', # Align with both left and right margins
-}
-
-_Enum_styl = {
- 'plain' : 'plan', # Plain
- 'bold' : 'bold', # Bold
- 'italic' : 'ital', # Italic
- 'outline' : 'outl', # Outline
- 'shadow' : 'shad', # Shadow
- 'underline' : 'undl', # Underline
- 'superscript' : 'spsc', # Superscript
- 'subscript' : 'sbsc', # Subscript
- 'strikethrough' : 'strk', # Strikethrough
- 'small_caps' : 'smcp', # Small caps
- 'all_caps' : 'alcp', # All capital letters
- 'all_lowercase' : 'lowc', # Lowercase
- 'condensed' : 'cond', # Condensed
- 'expanded' : 'pexp', # Expanded
- 'hidden' : 'hidn', # Hidden
-}
-
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
- 'cflo' : text_flow,
- 'clin' : line,
- 'ctxt' : text,
- 'cha ' : character,
- 'cwor' : word,
- 'cpar' : paragraph,
-}
-
-_propdeclarations = {
- 'pbst' : best_type,
- 'psct' : writing_code,
- 'txst' : style,
- 'colr' : color,
- 'font' : font,
- 'pnam' : name,
- 'pcls' : _class,
- 'deft' : default_type,
- 'pjst' : justification,
- 'ptsz' : size,
- 'ustl' : uniform_styles,
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
- 'styl' : _Enum_styl,
- 'just' : _Enum_just,
-}
diff --git a/Mac/Lib/lib-scripting/Type_Names_Suite.py b/Mac/Lib/lib-scripting/Type_Names_Suite.py
deleted file mode 100644
index 60301f7..0000000
--- a/Mac/Lib/lib-scripting/Type_Names_Suite.py
+++ /dev/null
@@ -1,454 +0,0 @@
-"""Suite Type Names Suite: Terminology for Registry data types
-Level 1, version 1
-
-Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'tpnm'
-
-class Type_Names_Suite:
-
- pass
-
-
-class anything(aetools.ComponentItem):
- """anything - various types of data"""
- want = '****'
-
-class type_class(aetools.ComponentItem):
- """type class - class name"""
- want = 'type'
-
-class type_class_info(aetools.ComponentItem):
- """type class info - information about properties and elements of a class"""
- want = 'gcli'
-
-class type_event_info(aetools.ComponentItem):
- """type event info - information about an event"""
- want = 'evin'
-
-class string(aetools.ComponentItem):
- """string - text in a specific language and script system"""
- want = 'itxt'
-
-class writing_code(aetools.ComponentItem):
- """writing code - codes which identify the language and script system"""
- want = 'intl'
-
-class bounding_rectangle(aetools.ComponentItem):
- """bounding rectangle - bounding rectangle"""
- want = 'qdrt'
-
-class point(aetools.ComponentItem):
- """point - point coordinates"""
- want = 'QDpt'
-
-class fixed(aetools.ComponentItem):
- """fixed - a real number"""
- want = 'fixd'
-
-class location_reference(aetools.ComponentItem):
- """location reference - """
- want = 'insl'
-
-class application_dictionary(aetools.ComponentItem):
- """application dictionary - """
- want = 'aete'
-
-class color_table(aetools.ComponentItem):
- """color table - """
- want = 'clrt'
-
-class dash_style(aetools.ComponentItem):
- """dash style - """
- want = 'tdas'
-
-class double_integer(aetools.ComponentItem):
- """double integer - """
- want = 'comp'
-
-class extended_real(aetools.ComponentItem):
- """extended real - """
- want = 'exte'
-
-class file_specification(aetools.ComponentItem):
- """file specification - """
- want = 'fss '
-
-class fixed_point(aetools.ComponentItem):
- """fixed point - """
- want = 'fpnt'
-
-class fixed_rectangle(aetools.ComponentItem):
- """fixed rectangle - """
- want = 'frct'
-
-class long_fixed(aetools.ComponentItem):
- """long fixed - """
- want = 'lfxd'
-
-class long_fixed_point(aetools.ComponentItem):
- """long fixed point - """
- want = 'lfpt'
-
-class long_fixed_rectangle(aetools.ComponentItem):
- """long fixed rectangle - """
- want = 'lfrc'
-
-class long_point(aetools.ComponentItem):
- """long point - """
- want = 'lpnt'
-
-class long_rectangle(aetools.ComponentItem):
- """long rectangle - """
- want = 'lrct'
-
-class machine_location(aetools.ComponentItem):
- """machine location - """
- want = 'mLoc'
-
-class menu(aetools.ComponentItem):
- """menu - """
- want = 'cmnu'
-
-class menu_item(aetools.ComponentItem):
- """menu item - """
- want = 'cmen'
-
-class null(aetools.ComponentItem):
- """null - """
- want = 'null'
-
-class picture(aetools.ComponentItem):
- """picture - """
- want = 'PICT'
-
-class pixel_map_record(aetools.ComponentItem):
- """pixel map record - """
- want = 'tpmm'
-
-class PostScript_picture(aetools.ComponentItem):
- """PostScript picture - """
- want = 'EPS '
-
-class RGB16_color(aetools.ComponentItem):
- """RGB16 color - """
- want = 'tr16'
-
-class RGB96_color(aetools.ComponentItem):
- """RGB96 color - """
- want = 'tr96'
-
-class small_integer(aetools.ComponentItem):
- """small integer - """
- want = 'shor'
-
-class small_real(aetools.ComponentItem):
- """small real - """
- want = 'sing'
-
-class system_dictionary(aetools.ComponentItem):
- """system dictionary - """
- want = 'aeut'
-
-class rotation(aetools.ComponentItem):
- """rotation - """
- want = 'trot'
-
-class scrap_styles(aetools.ComponentItem):
- """scrap styles - """
- want = 'styl'
-
-class TIFF_picture(aetools.ComponentItem):
- """TIFF picture - """
- want = 'TIFF'
-
-class version(aetools.ComponentItem):
- """version - """
- want = 'vers'
-
-class unsigned_integer(aetools.ComponentItem):
- """unsigned integer - """
- want = 'magn'
-
-class type_property_info(aetools.ComponentItem):
- """type property info - """
- want = 'pinf'
-
-class type_element_info(aetools.ComponentItem):
- """type element info - """
- want = 'elin'
-
-class type_parameter_info(aetools.ComponentItem):
- """type parameter info - """
- want = 'pmin'
-
-class type_suite_info(aetools.ComponentItem):
- """type suite info - """
- want = 'suin'
-
-class target_id(aetools.ComponentItem):
- """target id - """
- want = 'targ'
-
-class plain_text(aetools.ComponentItem):
- """plain text - """
- want = 'TEXT'
-
-class writing_code(aetools.ComponentItem):
- """writing code - codes which identify the language and script system"""
- want = 'psct'
-anything._propdict = {
-}
-anything._elemdict = {
-}
-type_class._propdict = {
-}
-type_class._elemdict = {
-}
-type_class_info._propdict = {
-}
-type_class_info._elemdict = {
-}
-type_event_info._propdict = {
-}
-type_event_info._elemdict = {
-}
-string._propdict = {
-}
-string._elemdict = {
-}
-writing_code._propdict = {
-}
-writing_code._elemdict = {
-}
-bounding_rectangle._propdict = {
-}
-bounding_rectangle._elemdict = {
-}
-point._propdict = {
-}
-point._elemdict = {
-}
-fixed._propdict = {
-}
-fixed._elemdict = {
-}
-location_reference._propdict = {
-}
-location_reference._elemdict = {
-}
-application_dictionary._propdict = {
-}
-application_dictionary._elemdict = {
-}
-color_table._propdict = {
-}
-color_table._elemdict = {
-}
-dash_style._propdict = {
-}
-dash_style._elemdict = {
-}
-double_integer._propdict = {
-}
-double_integer._elemdict = {
-}
-extended_real._propdict = {
-}
-extended_real._elemdict = {
-}
-file_specification._propdict = {
-}
-file_specification._elemdict = {
-}
-fixed_point._propdict = {
-}
-fixed_point._elemdict = {
-}
-fixed_rectangle._propdict = {
-}
-fixed_rectangle._elemdict = {
-}
-long_fixed._propdict = {
-}
-long_fixed._elemdict = {
-}
-long_fixed_point._propdict = {
-}
-long_fixed_point._elemdict = {
-}
-long_fixed_rectangle._propdict = {
-}
-long_fixed_rectangle._elemdict = {
-}
-long_point._propdict = {
-}
-long_point._elemdict = {
-}
-long_rectangle._propdict = {
-}
-long_rectangle._elemdict = {
-}
-machine_location._propdict = {
-}
-machine_location._elemdict = {
-}
-menu._propdict = {
-}
-menu._elemdict = {
-}
-menu_item._propdict = {
-}
-menu_item._elemdict = {
-}
-null._propdict = {
-}
-null._elemdict = {
-}
-picture._propdict = {
-}
-picture._elemdict = {
-}
-pixel_map_record._propdict = {
-}
-pixel_map_record._elemdict = {
-}
-PostScript_picture._propdict = {
-}
-PostScript_picture._elemdict = {
-}
-RGB16_color._propdict = {
-}
-RGB16_color._elemdict = {
-}
-RGB96_color._propdict = {
-}
-RGB96_color._elemdict = {
-}
-small_integer._propdict = {
-}
-small_integer._elemdict = {
-}
-small_real._propdict = {
-}
-small_real._elemdict = {
-}
-system_dictionary._propdict = {
-}
-system_dictionary._elemdict = {
-}
-rotation._propdict = {
-}
-rotation._elemdict = {
-}
-scrap_styles._propdict = {
-}
-scrap_styles._elemdict = {
-}
-TIFF_picture._propdict = {
-}
-TIFF_picture._elemdict = {
-}
-version._propdict = {
-}
-version._elemdict = {
-}
-unsigned_integer._propdict = {
-}
-unsigned_integer._elemdict = {
-}
-type_property_info._propdict = {
-}
-type_property_info._elemdict = {
-}
-type_element_info._propdict = {
-}
-type_element_info._elemdict = {
-}
-type_parameter_info._propdict = {
-}
-type_parameter_info._elemdict = {
-}
-type_suite_info._propdict = {
-}
-type_suite_info._elemdict = {
-}
-target_id._propdict = {
-}
-target_id._elemdict = {
-}
-plain_text._propdict = {
-}
-plain_text._elemdict = {
-}
-writing_code._propdict = {
-}
-writing_code._elemdict = {
-}
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
- 'targ' : target_id,
- 'fss ' : file_specification,
- 'lrct' : long_rectangle,
- 'exte' : extended_real,
- 'tdas' : dash_style,
- 'tr96' : RGB96_color,
- 'gcli' : type_class_info,
- 'suin' : type_suite_info,
- 'evin' : type_event_info,
- 'fixd' : fixed,
- 'lfrc' : long_fixed_rectangle,
- 'frct' : fixed_rectangle,
- 'cmnu' : menu,
- 'magn' : unsigned_integer,
- 'aete' : application_dictionary,
- 'styl' : scrap_styles,
- 'QDpt' : point,
- 'insl' : location_reference,
- 'comp' : double_integer,
- 'tr16' : RGB16_color,
- 'vers' : version,
- 'type' : type_class,
- 'lfxd' : long_fixed,
- 'TIFF' : TIFF_picture,
- 'qdrt' : bounding_rectangle,
- 'lfpt' : long_fixed_point,
- 'pmin' : type_parameter_info,
- 'psct' : writing_code,
- 'pinf' : type_property_info,
- '****' : anything,
- 'PICT' : picture,
- 'lpnt' : long_point,
- 'trot' : rotation,
- 'null' : null,
- 'sing' : small_real,
- 'tpmm' : pixel_map_record,
- 'cmen' : menu_item,
- 'itxt' : string,
- 'EPS ' : PostScript_picture,
- 'mLoc' : machine_location,
- 'elin' : type_element_info,
- 'intl' : writing_code,
- 'fpnt' : fixed_point,
- 'clrt' : color_table,
- 'aeut' : system_dictionary,
- 'shor' : small_integer,
- 'TEXT' : plain_text,
-}
-
-_propdeclarations = {
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
-}
diff --git a/Mac/Lib/lib-scripting/WWW_Suite.py b/Mac/Lib/lib-scripting/WWW_Suite.py
deleted file mode 100644
index 308e13c..0000000
--- a/Mac/Lib/lib-scripting/WWW_Suite.py
+++ /dev/null
@@ -1,426 +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.01
-AETE/AEUT resource version 1/0, language 0, script 0
-"""
-
-import aetools
-import MacOS
-
-_code = 'WWW!'
-
-class WorldWideWeb_suite_2c__as_defined_in_Spyglass_spec_2e_:
-
- _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['----']
-
-
-#
-# Indices of types declared in this module
-#
-_classdeclarations = {
-}
-
-_propdeclarations = {
-}
-
-_compdeclarations = {
-}
-
-_enumdeclarations = {
-}