Commit ff792c26 authored by Jack Jansen's avatar Jack Jansen

The package with standard suites. These are used separately and as base...

The package with standard suites. These are used separately and as base classes for other suite packages (StdSuite is slightly magical, in that it is the gensuitemodule default base package).
parent 87426b9f
"""Suite AppleScript Suite: Standard terms for AppleScript
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'ascr'
class AppleScript_Suite_Events:
def activate(self, _no_object=None, _attributes={}, **_arguments):
"""activate: Bring the targeted application program to the front
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'misc'
_subcode = 'actv'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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: undocumented, typecode 'TEXT'
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'ascr'
_subcode = 'cmnt'
if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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: Stop event logging in the script editor
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'ToyS'
_subcode = 'log0'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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: Start event logging in the script editor
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'ToyS'
_subcode = 'log1'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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: the number of seconds to wait for next idle event
"""
_code = 'misc'
_subcode = 'idle'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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
"""
_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: Record or log a tell statement
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'ascr'
_subcode = 'tell'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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: Record or log an end tell statement
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'ascr'
_subcode = 'tend'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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: the desired class for a failed coercion
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'ascr'
_subcode = 'err '
aetools.keysubst(_arguments, self._argmap_error)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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',
'about' : 'abou',
'since' : 'snce',
'given' : 'givn',
'with' : 'with',
'without' : 'wout',
}
def Call_a5_subroutine(self, _object=None, _attributes={}, **_arguments):
"""Callsubroutine: A subroutine call
Required argument: anything
Keyword argument at: a preposition
Keyword argument _from: a preposition
Keyword argument _for: a preposition
Keyword argument to: a preposition
Keyword argument thru: a preposition
Keyword argument through: a preposition
Keyword argument by: a preposition
Keyword argument on: a preposition
Keyword argument into: a preposition
Keyword argument onto: a preposition
Keyword argument between: a preposition
Keyword argument against: a preposition
Keyword argument out_of: a preposition
Keyword argument instead_of: a preposition
Keyword argument aside_from: a preposition
Keyword argument around: a preposition
Keyword argument beside: a preposition
Keyword argument beneath: a preposition
Keyword argument under: a preposition
Keyword argument over: a preposition
Keyword argument above: a preposition
Keyword argument below: a preposition
Keyword argument apart_from: a preposition
Keyword argument about: a preposition
Keyword argument since: a preposition
Keyword argument given: parameter:value pairs, comma-separated
Keyword argument with: formal parameter set to true if matching actual parameter is provided
Keyword argument without: formal parameter set to false if matching actual parmeter is provided
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything
"""
_code = 'ascr'
_subcode = 'psbr'
aetools.keysubst(_arguments, self._argmap_Call_a5_subroutine)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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 boolean(aetools.ComponentItem):
"""boolean - A true or false value """
want = 'bool'
booleans = boolean
class integer(aetools.ComponentItem):
"""integer - An integral number """
want = 'long'
integers = integer
class real(aetools.ComponentItem):
"""real - A real number """
want = 'doub'
reals = real
class number(aetools.ComponentItem):
"""number - an integer or real number """
want = 'nmbr'
numbers = number
class list(aetools.ComponentItem):
"""list - An ordered collection of items """
want = 'list'
class length(aetools.NProperty):
"""length - the length of a list """
which = 'leng'
want = 'long'
class reverse(aetools.NProperty):
"""reverse - the items of the list in reverse order """
which = 'rvse'
want = 'list'
class rest(aetools.NProperty):
"""rest - all items of the list excluding first """
which = 'rest'
want = 'list'
lists = list
class linked_list(aetools.ComponentItem):
"""linked list - An ordered collection of items """
want = 'llst'
# 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 item(aetools.ComponentItem):
"""item - An item of any type """
want = 'cobj'
class id(aetools.NProperty):
"""id - the unique ID number of this object """
which = 'ID '
want = 'long'
items = item
class script(aetools.ComponentItem):
"""script - An AppleScript script """
want = 'scpt'
class name(aetools.NProperty):
"""name - the name of the script """
which = 'pnam'
want = 'TEXT'
class parent(aetools.NProperty):
"""parent - its parent, i.e. the script that will handle events that this script doesnt """
which = 'pare'
want = 'scpt'
scripts = script
class list_or_record(aetools.ComponentItem):
"""list or record - a list or record """
want = 'lr '
class list_or_string(aetools.ComponentItem):
"""list or string - a list or string """
want = 'ls '
class number_or_string(aetools.ComponentItem):
"""number or string - a number or string """
want = 'ns '
class alias_or_string(aetools.ComponentItem):
"""alias or string - an alias or string """
want = 'sf '
class list_2c__record_or_text(aetools.ComponentItem):
"""list, record or text - a list, record or text """
want = 'lrs '
class number_or_date(aetools.ComponentItem):
"""number or date - a number or date """
want = 'nd '
class number_2c__date_or_text(aetools.ComponentItem):
"""number, date or text - a number, date or text """
want = 'nds '
class _class(aetools.ComponentItem):
"""class - the type of a value """
want = 'pcls'
class _3c_Inheritance_3e_(aetools.NProperty):
"""<Inheritance> - inherits some of its properties from this class """
which = 'c@#^'
want = 'type'
classes = _class
class event(aetools.ComponentItem):
"""event - an AppleEvents event """
want = 'evnt'
events = event
class property(aetools.ComponentItem):
"""property - an AppleEvents property """
want = 'prop'
properties = property
class constant(aetools.ComponentItem):
"""constant - A constant value """
want = 'enum'
constants = constant
class preposition(aetools.ComponentItem):
"""preposition - an AppleEvents preposition """
want = 'prep'
prepositions = preposition
class reference_form(aetools.ComponentItem):
"""reference form - an AppleEvents key form """
want = 'kfrm'
reference_forms = reference_form
class handler(aetools.ComponentItem):
"""handler - an AppleScript event or subroutine handler """
want = 'hand'
handlers = handler
class data(aetools.ComponentItem):
"""data - an AppleScript raw data object """
want = 'rdat'
class text(aetools.ComponentItem):
"""text - text with language and style information """
want = 'ctxt'
class international_text(aetools.ComponentItem):
"""international text - """
want = 'itxt'
international_text = international_text
class string(aetools.ComponentItem):
"""string - text in 8-bit Macintosh Roman format """
want = 'TEXT'
strings = string
class styled_text(aetools.ComponentItem):
"""styled text - """
want = 'STXT'
styled_text = styled_text
class styled_Clipboard_text(aetools.ComponentItem):
"""styled Clipboard text - """
want = 'styl'
styled_Clipboard_text = styled_Clipboard_text
class Unicode_text(aetools.ComponentItem):
"""Unicode text - """
want = 'utxt'
Unicode_text = Unicode_text
class styled_Unicode_text(aetools.ComponentItem):
"""styled Unicode text - """
want = 'sutx'
styled_Unicode_text = styled_Unicode_text
class encoded_string(aetools.ComponentItem):
"""encoded string - text encoded using the Text Encoding Converter """
want = 'encs'
encoded_strings = encoded_string
class C_string(aetools.ComponentItem):
"""C string - text followed by a null """
want = 'cstr'
C_strings = C_string
class Pascal_string(aetools.ComponentItem):
"""Pascal string - text up to 255 characters preceded by a length byte """
want = 'pstr'
Pascal_strings = Pascal_string
class character(aetools.ComponentItem):
"""character - an individual text character """
want = 'cha '
characters = character
class text_item(aetools.ComponentItem):
"""text item - text between delimiters """
want = 'citm'
text_items = text_item
class writing_code(aetools.ComponentItem):
"""writing code - codes that identify the language and script system """
want = 'psct'
class writing_code_info(aetools.ComponentItem):
"""writing code info - script code and language code of text run """
want = 'citl'
class script_code(aetools.NProperty):
"""script code - the script code for the text """
which = 'pscd'
want = 'shor'
class language_code(aetools.NProperty):
"""language code - the language code for the text """
which = 'plcd'
want = 'shor'
writing_code_infos = writing_code_info
class _empty_ae_name(aetools.ComponentItem):
""" - the undefined value """
want = 'undf'
class missing_value(aetools.ComponentItem):
"""missing value - unavailable value, such as properties missing from heterogeneous classes in a Whose clause """
want = 'msng'
missing_values = missing_value
class reference(aetools.ComponentItem):
"""reference - an AppleScript reference """
want = 'obj '
references = reference
class anything(aetools.ComponentItem):
"""anything - any class or reference """
want = '****'
class type_class(aetools.ComponentItem):
"""type class - the name of a particular class (or any four-character code) """
want = 'type'
class RGB_color(aetools.ComponentItem):
"""RGB color - Three integers specifying red, green, blue color values """
want = 'cRGB'
RGB_colors = RGB_color
class picture(aetools.ComponentItem):
"""picture - A QuickDraw picture object """
want = 'PICT'
pictures = picture
class sound(aetools.ComponentItem):
"""sound - a sound object on the clipboard """
want = 'snd '
sounds = sound
class version(aetools.ComponentItem):
"""version - a version value """
want = 'vers'
class file_specification(aetools.ComponentItem):
"""file specification - a file specification as used by the operating system """
want = 'fss '
file_specifications = file_specification
class alias(aetools.ComponentItem):
"""alias - a file on a disk or server. The file must exist when you check the syntax of your script. """
want = 'alis'
aliases = alias
class machine(aetools.ComponentItem):
"""machine - a computer """
want = 'mach'
machines = machine
class zone(aetools.ComponentItem):
"""zone - an AppleTalk zone """
want = 'zone'
zones = zone
class keystroke(aetools.ComponentItem):
"""keystroke - a press of a key combination on a Macintosh keyboard """
want = 'kprs'
class key(aetools.NProperty):
"""key - the character for the key was pressed (ignoring modifiers) """
which = 'kMsg'
want = 'cha '
class modifiers(aetools.NProperty):
"""modifiers - the modifier keys pressed in combination """
which = 'kMod'
want = 'eMds'
class key_kind(aetools.NProperty):
"""key kind - the kind of key that was pressed """
which = 'kknd'
want = 'ekst'
keystrokes = keystroke
class seconds(aetools.ComponentItem):
"""seconds - more than one second """
want = 'scnd'
class date(aetools.ComponentItem):
"""date - Absolute date and time values """
want = 'ldt '
class weekday(aetools.NProperty):
"""weekday - the day of a week of a date """
which = 'wkdy'
want = 'wkdy'
class month(aetools.NProperty):
"""month - the month of a date """
which = 'mnth'
want = 'mnth'
class day(aetools.NProperty):
"""day - the day of the month of a date """
which = 'day '
want = 'long'
class year(aetools.NProperty):
"""year - the year of a date """
which = 'year'
want = 'long'
class time(aetools.NProperty):
"""time - the time since midnight of a date """
which = 'time'
want = 'long'
class date_string(aetools.NProperty):
"""date string - the date portion of a date-time value as text """
which = 'dstr'
want = 'TEXT'
class time_string(aetools.NProperty):
"""time string - the time portion of a date-time value as text """
which = 'tstr'
want = 'TEXT'
dates = date
class month(aetools.ComponentItem):
"""month - a month """
want = 'mnth'
months = month
class January(aetools.ComponentItem):
"""January - the month of January """
want = 'jan '
class February(aetools.ComponentItem):
"""February - the month of February """
want = 'feb '
class March(aetools.ComponentItem):
"""March - the month of March """
want = 'mar '
class April(aetools.ComponentItem):
"""April - the month of April """
want = 'apr '
class May(aetools.ComponentItem):
"""May - the month of May """
want = 'may '
class June(aetools.ComponentItem):
"""June - the month of June """
want = 'jun '
class July(aetools.ComponentItem):
"""July - the month of July """
want = 'jul '
class August(aetools.ComponentItem):
"""August - the month of August """
want = 'aug '
class September(aetools.ComponentItem):
"""September - the month of September """
want = 'sep '
class October(aetools.ComponentItem):
"""October - the month of October """
want = 'oct '
class November(aetools.ComponentItem):
"""November - the month of November """
want = 'nov '
class December(aetools.ComponentItem):
"""December - the month of December """
want = 'dec '
class weekday(aetools.ComponentItem):
"""weekday - a weekday """
want = 'wkdy'
weekdays = weekday
class Sunday(aetools.ComponentItem):
"""Sunday - Sunday """
want = 'sun '
class Monday(aetools.ComponentItem):
"""Monday - Monday """
want = 'mon '
class Tuesday(aetools.ComponentItem):
"""Tuesday - Tuesday """
want = 'tue '
class Wednesday(aetools.ComponentItem):
"""Wednesday - Wednesday """
want = 'wed '
class Thursday(aetools.ComponentItem):
"""Thursday - Thursday """
want = 'thu '
class Friday(aetools.ComponentItem):
"""Friday - Friday """
want = 'fri '
class Saturday(aetools.ComponentItem):
"""Saturday - Saturday """
want = 'sat '
class metres(aetools.ComponentItem):
"""metres - a distance measurement in SI meters """
want = 'metr'
meters = metres
class inches(aetools.ComponentItem):
"""inches - a distance measurement in Imperial inches """
want = 'inch'
class feet(aetools.ComponentItem):
"""feet - a distance measurement in Imperial feet """
want = 'feet'
class yards(aetools.ComponentItem):
"""yards - a distance measurement in Imperial yards """
want = 'yard'
class miles(aetools.ComponentItem):
"""miles - a distance measurement in Imperial miles """
want = 'mile'
class kilometres(aetools.ComponentItem):
"""kilometres - a distance measurement in SI kilometers """
want = 'kmtr'
kilometers = kilometres
class centimetres(aetools.ComponentItem):
"""centimetres - a distance measurement in SI centimeters """
want = 'cmtr'
centimeters = centimetres
class square_metres(aetools.ComponentItem):
"""square metres - an area measurement in SI square meters """
want = 'sqrm'
square_meters = square_metres
class square_feet(aetools.ComponentItem):
"""square feet - an area measurement in Imperial square feet """
want = 'sqft'
class square_yards(aetools.ComponentItem):
"""square yards - an area measurement in Imperial square yards """
want = 'sqyd'
class square_miles(aetools.ComponentItem):
"""square miles - an area measurement in Imperial square miles """
want = 'sqmi'
class square_kilometres(aetools.ComponentItem):
"""square kilometres - an area measurement in SI square kilometers """
want = 'sqkm'
square_kilometers = square_kilometres
class litres(aetools.ComponentItem):
"""litres - a volume measurement in SI liters """
want = 'litr'
liters = litres
class gallons(aetools.ComponentItem):
"""gallons - a volume measurement in Imperial gallons """
want = 'galn'
class quarts(aetools.ComponentItem):
"""quarts - a volume measurement in Imperial quarts """
want = 'qrts'
class cubic_metres(aetools.ComponentItem):
"""cubic metres - a volume measurement in SI cubic meters """
want = 'cmet'
cubic_meters = cubic_metres
class cubic_centimetres(aetools.ComponentItem):
"""cubic centimetres - a volume measurement in SI cubic centimeters """
want = 'ccmt'
cubic_centimeters = cubic_centimetres
class cubic_feet(aetools.ComponentItem):
"""cubic feet - a volume measurement in Imperial cubic feet """
want = 'cfet'
class cubic_inches(aetools.ComponentItem):
"""cubic inches - a volume measurement in Imperial cubic inches """
want = 'cuin'
class cubic_yards(aetools.ComponentItem):
"""cubic yards - a distance measurement in Imperial cubic yards """
want = 'cyrd'
class kilograms(aetools.ComponentItem):
"""kilograms - a mass measurement in SI kilograms """
want = 'kgrm'
class grams(aetools.ComponentItem):
"""grams - a mass measurement in SI meters """
want = 'gram'
class ounces(aetools.ComponentItem):
"""ounces - a weight measurement in SI meters """
want = 'ozs '
class pounds(aetools.ComponentItem):
"""pounds - a weight measurement in SI meters """
want = 'lbs '
class degrees_Celsius(aetools.ComponentItem):
"""degrees Celsius - a temperature measurement in SI degrees Celsius """
want = 'degc'
class degrees_Fahrenheit(aetools.ComponentItem):
"""degrees Fahrenheit - a temperature measurement in degrees Fahrenheit """
want = 'degf'
class degrees_Kelvin(aetools.ComponentItem):
"""degrees Kelvin - a temperature measurement in degrees Kelvin """
want = 'degk'
class upper_case(aetools.ComponentItem):
"""upper case - Text with lower case converted to upper case """
want = 'case'
class app(aetools.ComponentItem):
"""app - Short name for application """
want = 'capp'
application = app
class result(aetools.NProperty):
"""result - the last result of evaluation """
which = 'rslt'
want = '****'
class space(aetools.NProperty):
"""space - a space character """
which = 'spac'
want = 'cha '
class _return(aetools.NProperty):
"""return - a return character """
which = 'ret '
want = 'cha '
class tab(aetools.NProperty):
"""tab - a tab character """
which = 'tab '
want = 'cha '
class minutes(aetools.NProperty):
"""minutes - the number of seconds in a minute """
which = 'min '
want = 'long'
class hours(aetools.NProperty):
"""hours - the number of seconds in an hour """
which = 'hour'
want = 'long'
class days(aetools.NProperty):
"""days - the number of seconds in a day """
which = 'days'
want = 'long'
class weeks(aetools.NProperty):
"""weeks - the number of seconds in a week """
which = 'week'
want = 'long'
class pi(aetools.NProperty):
"""pi - the constant pi """
which = 'pi '
want = 'doub'
class print_length(aetools.NProperty):
"""print length - the maximum length to print """
which = 'prln'
want = 'long'
class print_depth(aetools.NProperty):
"""print depth - the maximum depth to print """
which = 'prdp'
want = 'long'
class text_item_delimiters(aetools.NProperty):
"""text item delimiters - the text item delimiters of a string """
which = 'txdl'
want = 'list'
class AppleScript(aetools.NProperty):
"""AppleScript - the top-level script object """
which = 'ascr'
want = 'scpt'
applications = app
boolean._propdict = {
}
boolean._elemdict = {
}
integer._propdict = {
}
integer._elemdict = {
}
real._propdict = {
}
real._elemdict = {
}
number._propdict = {
}
number._elemdict = {
}
list._propdict = {
'length' : length,
'reverse' : reverse,
'rest' : rest,
}
list._elemdict = {
}
linked_list._propdict = {
'length' : length,
}
linked_list._elemdict = {
}
vector._propdict = {
'length' : length,
}
vector._elemdict = {
}
record._propdict = {
}
record._elemdict = {
}
item._propdict = {
'id' : id,
}
item._elemdict = {
}
script._propdict = {
'name' : name,
'parent' : parent,
}
script._elemdict = {
}
list_or_record._propdict = {
}
list_or_record._elemdict = {
}
list_or_string._propdict = {
}
list_or_string._elemdict = {
}
number_or_string._propdict = {
}
number_or_string._elemdict = {
}
alias_or_string._propdict = {
}
alias_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 = {
}
_class._propdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
}
_class._elemdict = {
}
event._propdict = {
}
event._elemdict = {
}
property._propdict = {
}
property._elemdict = {
}
constant._propdict = {
}
constant._elemdict = {
}
preposition._propdict = {
}
preposition._elemdict = {
}
reference_form._propdict = {
}
reference_form._elemdict = {
}
handler._propdict = {
}
handler._elemdict = {
}
data._propdict = {
}
data._elemdict = {
}
text._propdict = {
}
text._elemdict = {
}
international_text._propdict = {
}
international_text._elemdict = {
}
international_text._propdict = {
}
international_text._elemdict = {
}
string._propdict = {
}
string._elemdict = {
}
styled_text._propdict = {
}
styled_text._elemdict = {
}
styled_text._propdict = {
}
styled_text._elemdict = {
}
styled_Clipboard_text._propdict = {
}
styled_Clipboard_text._elemdict = {
}
styled_Clipboard_text._propdict = {
}
styled_Clipboard_text._elemdict = {
}
Unicode_text._propdict = {
}
Unicode_text._elemdict = {
}
Unicode_text._propdict = {
}
Unicode_text._elemdict = {
}
styled_Unicode_text._propdict = {
}
styled_Unicode_text._elemdict = {
}
styled_Unicode_text._propdict = {
}
styled_Unicode_text._elemdict = {
}
encoded_string._propdict = {
}
encoded_string._elemdict = {
}
C_string._propdict = {
}
C_string._elemdict = {
}
Pascal_string._propdict = {
}
Pascal_string._elemdict = {
}
character._propdict = {
}
character._elemdict = {
}
text_item._propdict = {
}
text_item._elemdict = {
}
writing_code._propdict = {
}
writing_code._elemdict = {
}
writing_code_info._propdict = {
'script_code' : script_code,
'language_code' : language_code,
}
writing_code_info._elemdict = {
}
_empty_ae_name._propdict = {
}
_empty_ae_name._elemdict = {
}
missing_value._propdict = {
}
missing_value._elemdict = {
}
reference._propdict = {
}
reference._elemdict = {
}
anything._propdict = {
}
anything._elemdict = {
}
type_class._propdict = {
}
type_class._elemdict = {
}
RGB_color._propdict = {
}
RGB_color._elemdict = {
}
picture._propdict = {
}
picture._elemdict = {
}
sound._propdict = {
}
sound._elemdict = {
}
version._propdict = {
}
version._elemdict = {
}
file_specification._propdict = {
}
file_specification._elemdict = {
}
alias._propdict = {
}
alias._elemdict = {
}
machine._propdict = {
}
machine._elemdict = {
}
zone._propdict = {
}
zone._elemdict = {
}
keystroke._propdict = {
'key' : key,
'modifiers' : modifiers,
'key_kind' : key_kind,
}
keystroke._elemdict = {
}
seconds._propdict = {
}
seconds._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 = {
}
metres._propdict = {
}
metres._elemdict = {
}
inches._propdict = {
}
inches._elemdict = {
}
feet._propdict = {
}
feet._elemdict = {
}
yards._propdict = {
}
yards._elemdict = {
}
miles._propdict = {
}
miles._elemdict = {
}
kilometres._propdict = {
}
kilometres._elemdict = {
}
centimetres._propdict = {
}
centimetres._elemdict = {
}
square_metres._propdict = {
}
square_metres._elemdict = {
}
square_feet._propdict = {
}
square_feet._elemdict = {
}
square_yards._propdict = {
}
square_yards._elemdict = {
}
square_miles._propdict = {
}
square_miles._elemdict = {
}
square_kilometres._propdict = {
}
square_kilometres._elemdict = {
}
litres._propdict = {
}
litres._elemdict = {
}
gallons._propdict = {
}
gallons._elemdict = {
}
quarts._propdict = {
}
quarts._elemdict = {
}
cubic_metres._propdict = {
}
cubic_metres._elemdict = {
}
cubic_centimetres._propdict = {
}
cubic_centimetres._elemdict = {
}
cubic_feet._propdict = {
}
cubic_feet._elemdict = {
}
cubic_inches._propdict = {
}
cubic_inches._elemdict = {
}
cubic_yards._propdict = {
}
cubic_yards._elemdict = {
}
kilograms._propdict = {
}
kilograms._elemdict = {
}
grams._propdict = {
}
grams._elemdict = {
}
ounces._propdict = {
}
ounces._elemdict = {
}
pounds._propdict = {
}
pounds._elemdict = {
}
degrees_Celsius._propdict = {
}
degrees_Celsius._elemdict = {
}
degrees_Fahrenheit._propdict = {
}
degrees_Fahrenheit._elemdict = {
}
degrees_Kelvin._propdict = {
}
degrees_Kelvin._elemdict = {
}
upper_case._propdict = {
}
upper_case._elemdict = {
}
app._propdict = {
}
app._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
}
_Enum_eMds = {
'option_down' : 'Kopt', #
'command_down' : 'Kcmd', #
'control_down' : 'Kctl', #
'shift_down' : 'Ksft', #
'caps_lock_down' : 'Kclk', #
}
_Enum_ekst = {
'escape_key' : 'ks5\000', #
'delete_key' : 'ks3\000', #
'tab_key' : 'ks0\000', #
'return_key' : 'ks$\000', #
'clear_key' : 'ksG\000', #
'enter_key' : 'ksL\000', #
'up_arrow_key' : 'ks~\000', #
'down_arrow_key' : 'ks}\000', #
'left_arrow_key' : 'ks{\000', #
'right_arrow_key' : 'ks|\000', #
'help_key' : 'ksr\000', #
'home_key' : 'kss\000', #
'page_up_key' : 'kst\000', #
'page_down_key' : 'ksy\000', #
'forward_del_key' : 'ksu\000', #
'end_key' : 'ksw\000', #
'F1_key' : 'ksz\000', #
'F2_key' : 'ksx\000', #
'F3_key' : 'ksc\000', #
'F4_key' : 'ksv\000', #
'F5_key' : 'ks`\000', #
'F6_key' : 'ksa\000', #
'F7_key' : 'ksb\000', #
'F8_key' : 'ksd\000', #
'F9_key' : 'kse\000', #
'F10_key' : 'ksm\000', #
'F11_key' : 'ksg\000', #
'F12_key' : 'kso\000', #
'F13_key' : 'ksi\000', #
'F14_key' : 'ksk\000', #
'F15_key' : 'ksq\000', #
}
#
# Indices of types declared in this module
#
_classdeclarations = {
'nmbr' : number,
'ctxt' : text,
'fss ' : file_specification,
'sat ' : Saturday,
'ccmt' : cubic_centimetres,
'cfet' : cubic_feet,
'lbs ' : pounds,
'yard' : yards,
'sqyd' : square_yards,
'mach' : machine,
'utxt' : Unicode_text,
'cstr' : C_string,
'rdat' : data,
'doub' : real,
'hand' : handler,
'sutx' : styled_Unicode_text,
'sqmi' : square_miles,
'undf' : _empty_ae_name,
'reco' : record,
'cha ' : character,
'cobj' : item,
'kfrm' : reference_form,
'enum' : constant,
'inch' : inches,
'sqrm' : square_metres,
'bool' : boolean,
'prop' : property,
'****' : anything,
'scpt' : script,
'kgrm' : kilograms,
'sep ' : September,
'snd ' : sound,
'mon ' : Monday,
'capp' : app,
'lr ' : list_or_record,
'fri ' : Friday,
'cuin' : cubic_inches,
'mar ' : March,
'galn' : gallons,
'encs' : encoded_string,
'litr' : litres,
'case' : upper_case,
'styl' : styled_Clipboard_text,
'llst' : linked_list,
'pcls' : _class,
'jun ' : June,
'ns ' : number_or_string,
'ozs ' : ounces,
'mnth' : month,
'metr' : metres,
'jan ' : January,
'pstr' : Pascal_string,
'alis' : alias,
'gram' : grams,
'msng' : missing_value,
'qrts' : quarts,
'nov ' : November,
'list' : list,
'sqft' : square_feet,
'kmtr' : kilometres,
'cRGB' : RGB_color,
'itxt' : international_text,
'scnd' : seconds,
'apr ' : April,
'nd ' : number_or_date,
'wkdy' : weekday,
'vect' : vector,
'obj ' : reference,
'sqkm' : square_kilometres,
'dec ' : December,
'wed ' : Wednesday,
'cyrd' : cubic_yards,
'vers' : version,
'tue ' : Tuesday,
'prep' : preposition,
'type' : type_class,
'citm' : text_item,
'citl' : writing_code_info,
'sf ' : alias_or_string,
'degc' : degrees_Celsius,
'long' : integer,
'ls ' : list_or_string,
'PICT' : picture,
'zone' : zone,
'psct' : writing_code,
'lrs ' : list_2c__record_or_text,
'cmtr' : centimetres,
'evnt' : event,
'oct ' : October,
'degk' : degrees_Kelvin,
'ldt ' : date,
'thu ' : Thursday,
'degf' : degrees_Fahrenheit,
'kprs' : keystroke,
'mile' : miles,
'feb ' : February,
'feet' : feet,
'nds ' : number_2c__date_or_text,
'STXT' : styled_text,
'cmet' : cubic_metres,
'sun ' : Sunday,
'aug ' : August,
'may ' : May,
'jul ' : July,
'TEXT' : string,
}
_propdeclarations = {
'pscd' : script_code,
'rslt' : result,
'pnam' : name,
'time' : time,
'txdl' : text_item_delimiters,
'prln' : print_length,
'prdp' : print_depth,
'kMod' : modifiers,
'days' : days,
'spac' : space,
'kMsg' : key,
'plcd' : language_code,
'ret ' : _return,
'tstr' : time_string,
'hour' : hours,
'tab ' : tab,
'rvse' : reverse,
'wkdy' : weekday,
'day ' : day,
'ID ' : id,
'c@#^' : _3c_Inheritance_3e_,
'kknd' : key_kind,
'ascr' : AppleScript,
'rest' : rest,
'dstr' : date_string,
'min ' : minutes,
'pi ' : pi,
'leng' : length,
'year' : year,
'pare' : parent,
'mnth' : month,
'week' : weeks,
}
_compdeclarations = {
}
_enumdeclarations = {
'boov' : _Enum_boov,
'ekst' : _Enum_ekst,
'misc' : _Enum_misc,
'cons' : _Enum_cons,
'eMds' : _Enum_eMds,
}
"""Suite Macintosh Connectivity Classes: Classes relating to Apple Macintosh personal computer connectivity
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'macc'
class Macintosh_Connectivity_Clas_Events:
pass
class device_specification(aetools.ComponentItem):
"""device specification - A device connected to a computer """
want = 'cdev'
class properties(aetools.NProperty):
"""properties - property that allows getting and setting of multiple properties """
which = 'pALL'
want = 'reco'
class device_type(aetools.NProperty):
"""device type - the kind of device """
which = 'pdvt'
want = 'edvt'
class device_address(aetools.NProperty):
"""device address - the address of the device """
which = 'pdva'
want = 'cadr'
device_specifications = device_specification
class address_specification(aetools.ComponentItem):
"""address specification - Unique designation of a device or service connected to this computer """
want = 'cadr'
# repeated property properties property that allows getting and setting of multiple properties
class conduit(aetools.NProperty):
"""conduit - How the addressee is physically connected """
which = 'pcon'
want = 'econ'
class protocol(aetools.NProperty):
"""protocol - How to talk to this addressee """
which = 'pprt'
want = 'epro'
address_specifications = address_specification
class ADB_address(aetools.ComponentItem):
"""ADB address - Addresses a device connected via Apple Desktop Bus """
want = 'cadb'
class _3c_inheritance_3e_(aetools.NProperty):
"""<inheritance> - inherits some of its properties from this class """
which = 'c@#^'
want = 'cadr'
class ID(aetools.NProperty):
"""ID - the Apple Desktop Bus device ID """
which = 'ID '
want = 'shor'
ADB_addresses = ADB_address
class AppleTalk_address(aetools.ComponentItem):
"""AppleTalk address - Addresses a device or service connected via the AppleTalk protocol """
want = 'cat '
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class AppleTalk_machine(aetools.NProperty):
"""AppleTalk machine - the machine name part of the address """
which = 'patm'
want = 'TEXT'
class AppleTalk_zone(aetools.NProperty):
"""AppleTalk zone - the zone part of the address """
which = 'patz'
want = 'TEXT'
class AppleTalk_type(aetools.NProperty):
"""AppleTalk type - the type part of the AppleTalk address """
which = 'patt'
want = 'TEXT'
AppleTalk_addresses = AppleTalk_address
class bus_slot(aetools.ComponentItem):
"""bus slot - Addresses a PC, PCI, or NuBus card """
want = 'cbus'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
# repeated property ID the slot number
bus_slots = bus_slot
class Ethernet_address(aetools.ComponentItem):
"""Ethernet address - Addresses a device by its Ethernet address """
want = 'cen '
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
# repeated property ID the Ethernet address
Ethernet_addresses = Ethernet_address
class FireWire_address(aetools.ComponentItem):
"""FireWire address - Addresses a device on the FireWire bus """
want = 'cfw '
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
# repeated property ID the FireWire device ID
FireWire_addresses = FireWire_address
class IP_address(aetools.ComponentItem):
"""IP address - Addresses a device or service via the Internet Protocol (IP) """
want = 'cip '
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
# repeated property ID the address in the form "127.201.0.1"
class DNS_form(aetools.NProperty):
"""DNS form - the address in the form "apple.com" """
which = 'pdns'
want = 'TEXT'
class port(aetools.NProperty):
"""port - the port number of the service or client being addressed """
which = 'ppor'
want = 'TEXT'
IP_addresses = IP_address
class LocalTalk_address(aetools.ComponentItem):
"""LocalTalk address - Addresses a device by its LocalTalk address """
want = 'clt '
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class network(aetools.NProperty):
"""network - the LocalTalk network number """
which = 'pnet'
want = 'shor'
class node(aetools.NProperty):
"""node - the LocalTalk node number """
which = 'pnod'
want = 'shor'
class socket(aetools.NProperty):
"""socket - the LocalTalk socket number """
which = 'psoc'
want = 'shor'
LocalTalk_addresses = LocalTalk_address
class SCSI_address(aetools.ComponentItem):
"""SCSI address - Addresses a SCSI device """
want = 'cscs'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class SCSI_bus(aetools.NProperty):
"""SCSI bus - the SCSI bus number """
which = 'pscb'
want = 'shor'
# repeated property ID the SCSI ID
class LUN(aetools.NProperty):
"""LUN - the SCSI logical unit number """
which = 'pslu'
want = 'shor'
SCSI_addresses = SCSI_address
class Token_Ring_address(aetools.ComponentItem):
"""Token Ring address - Addresses a device or service via the Token Ring protocol """
want = 'ctok'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
# repeated property ID the Token Ring ID
Token_Ring_addresses = Token_Ring_address
class USB_address(aetools.ComponentItem):
"""USB address - Addresses a device on the Universal Serial Bus """
want = 'cusb'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class name(aetools.NProperty):
"""name - the USB device name """
which = 'pnam'
want = 'TEXT'
USB_Addresses = USB_address
device_specification._propdict = {
'properties' : properties,
'device_type' : device_type,
'device_address' : device_address,
}
device_specification._elemdict = {
}
address_specification._propdict = {
'properties' : properties,
'conduit' : conduit,
'protocol' : protocol,
}
address_specification._elemdict = {
}
ADB_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
}
ADB_address._elemdict = {
}
AppleTalk_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'AppleTalk_machine' : AppleTalk_machine,
'AppleTalk_zone' : AppleTalk_zone,
'AppleTalk_type' : AppleTalk_type,
}
AppleTalk_address._elemdict = {
}
bus_slot._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
}
bus_slot._elemdict = {
}
Ethernet_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
}
Ethernet_address._elemdict = {
}
FireWire_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
}
FireWire_address._elemdict = {
}
IP_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
'DNS_form' : DNS_form,
'port' : port,
}
IP_address._elemdict = {
}
LocalTalk_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'network' : network,
'node' : node,
'socket' : socket,
}
LocalTalk_address._elemdict = {
}
SCSI_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'SCSI_bus' : SCSI_bus,
'ID' : ID,
'LUN' : LUN,
}
SCSI_address._elemdict = {
}
Token_Ring_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'ID' : ID,
}
Token_Ring_address._elemdict = {
}
USB_address._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'name' : name,
}
USB_address._elemdict = {
}
_Enum_edvt = {
'hard_disk_drive' : 'ehd ', #
'floppy_disk_drive' : 'efd ', #
'CD_ROM_drive' : 'ecd ', #
'DVD_drive' : 'edvd', #
'storage_device' : 'edst', #
'keyboard' : 'ekbd', #
'mouse' : 'emou', #
'trackball' : 'etrk', #
'trackpad' : 'edtp', #
'pointing_device' : 'edpd', #
'video_monitor' : 'edvm', #
'LCD_display' : 'edlc', #
'display' : 'edds', #
'modem' : 'edmm', #
'PC_card' : 'ecpc', #
'PCI_card' : 'edpi', #
'NuBus_card' : 'ednb', #
'printer' : 'edpr', #
'speakers' : 'edsp', #
'microphone' : 'ecmi', #
}
_Enum_econ = {
'ADB' : 'eadb', #
'printer_port' : 'ecpp', #
'modem_port' : 'ecmp', #
'modem_printer_port' : 'empp', #
'LocalTalk' : 'eclt', #
'Ethernet' : 'ecen', #
'Token_Ring' : 'etok', #
'SCSI' : 'ecsc', #
'USB' : 'ecus', #
'FireWire' : 'ecfw', #
'infrared' : 'ecir', #
'PC_card' : 'ecpc', #
'PCI_bus' : 'ecpi', #
'NuBus' : 'enub', #
'PDS_slot' : 'ecpd', #
'Comm_slot' : 'eccm', #
'monitor_out' : 'ecmn', #
'video_out' : 'ecvo', #
'video_in' : 'ecvi', #
'audio_out' : 'ecao', #
'audio_line_in' : 'ecai', #
'audio_line_out' : 'ecal', #
'microphone' : 'ecmi', #
}
_Enum_epro = {
'serial' : 'epsr', #
'AppleTalk' : 'epat', #
'IP' : 'epip', #
'SCSI' : 'ecsc', #
'ADB' : 'eadb', #
'FireWire' : 'ecfw', #
'IrDA' : 'epir', #
'IRTalk' : 'epit', #
'USB' : 'ecus', #
'PC_card' : 'ecpc', #
'PCI_bus' : 'ecpi', #
'NuBus' : 'enub', #
'bus' : 'ebus', #
'Macintosh_video' : 'epmv', #
'SVGA' : 'epsg', #
'S_video' : 'epsv', #
'analog_audio' : 'epau', #
'digital_audio' : 'epda', #
'PostScript' : 'epps', #
}
#
# Indices of types declared in this module
#
_classdeclarations = {
'cen ' : Ethernet_address,
'clt ' : LocalTalk_address,
'cip ' : IP_address,
'cusb' : USB_address,
'cadb' : ADB_address,
'cscs' : SCSI_address,
'cbus' : bus_slot,
'cdev' : device_specification,
'ctok' : Token_Ring_address,
'cfw ' : FireWire_address,
'cadr' : address_specification,
'cat ' : AppleTalk_address,
}
_propdeclarations = {
'pnod' : node,
'pslu' : LUN,
'patm' : AppleTalk_machine,
'pdva' : device_address,
'pscb' : SCSI_bus,
'ppor' : port,
'pALL' : properties,
'ID ' : ID,
'c@#^' : _3c_inheritance_3e_,
'pdvt' : device_type,
'pnet' : network,
'patz' : AppleTalk_zone,
'pnam' : name,
'pcon' : conduit,
'pprt' : protocol,
'patt' : AppleTalk_type,
'psoc' : socket,
'pdns' : DNS_form,
}
_compdeclarations = {
}
_enumdeclarations = {
'econ' : _Enum_econ,
'epro' : _Enum_epro,
'edvt' : _Enum_edvt,
}
"""Suite QuickDraw Graphics Suite: A set of basic classes for graphics
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'qdrw'
class QuickDraw_Graphics_Suite_Events:
pass
class arc(aetools.ComponentItem):
"""arc - An arc """
want = 'carc'
class arc_angle(aetools.NProperty):
"""arc angle - the angle of the arc in degrees """
which = 'parc'
want = 'fixd'
class bounds(aetools.NProperty):
"""bounds - the smallest rectangle that contains the entire arc """
which = 'pbnd'
want = 'qdrt'
class definition_rect(aetools.NProperty):
"""definition rect - the rectangle that contains the circle or oval used to define the arc """
which = 'pdrt'
want = 'qdrt'
class fill_color(aetools.NProperty):
"""fill color - the fill color """
which = 'flcl'
want = 'cRGB'
class fill_pattern(aetools.NProperty):
"""fill pattern - the fill pattern """
which = 'flpt'
want = 'cpix'
class pen_color(aetools.NProperty):
"""pen color - the pen color """
which = 'ppcl'
want = 'cRGB'
class pen_pattern(aetools.NProperty):
"""pen pattern - the pen pattern """
which = 'pppa'
want = 'cpix'
class pen_width(aetools.NProperty):
"""pen width - the pen width """
which = 'ppwd'
want = 'shor'
class start_angle(aetools.NProperty):
"""start angle - the angle that defines the start of the arc, in degrees """
which = 'pang'
want = 'fixd'
class transfer_mode(aetools.NProperty):
"""transfer mode - the transfer mode """
which = 'pptm'
want = 'tran'
arcs = arc
class drawing_area(aetools.ComponentItem):
"""drawing area - Container for graphics and supporting information """
want = 'cdrw'
class background_color(aetools.NProperty):
"""background color - the color used to fill in unoccupied areas """
which = 'pbcl'
want = 'cRGB'
class background_pattern(aetools.NProperty):
"""background pattern - the pattern used to fill in unoccupied areas """
which = 'pbpt'
want = 'cpix'
class color_table(aetools.NProperty):
"""color table - the color table """
which = 'cltb'
want = 'clrt'
class ordering(aetools.NProperty):
"""ordering - the ordered list of graphic objects in the drawing area """
which = 'gobs'
want = 'obj '
class name(aetools.NProperty):
"""name - the name """
which = 'pnam'
want = 'itxt'
class default_location(aetools.NProperty):
"""default location - the default location of each new graphic object """
which = 'pnel'
want = 'QDpt'
class pixel_depth(aetools.NProperty):
"""pixel depth - the number of bits per pixel """
which = 'pdpt'
want = 'shor'
class writing_code(aetools.NProperty):
"""writing code - the script system and language of text objects in the drawing area """
which = 'psct'
want = 'intl'
class text_color(aetools.NProperty):
"""text color - the default color for text objects """
which = 'ptxc'
want = 'cRGB'
class default_font(aetools.NProperty):
"""default font - the name of the default font for text objects """
which = 'ptxf'
want = 'itxt'
class default_size(aetools.NProperty):
"""default size - the default size for text objects """
which = 'ptps'
want = 'fixd'
class style(aetools.NProperty):
"""style - the default text style for text objects """
which = 'txst'
want = 'tsty'
class update_on_change(aetools.NProperty):
"""update on change - Redraw after each change? """
which = 'pupd'
want = 'bool'
drawing_areas = drawing_area
class graphic_line(aetools.ComponentItem):
"""graphic line - A graphic line """
want = 'glin'
class start_point(aetools.NProperty):
"""start point - the starting point of the line """
which = 'pstp'
want = 'QDpt'
class end_point(aetools.NProperty):
"""end point - the ending point of the line """
which = 'pend'
want = 'QDpt'
class dash_style(aetools.NProperty):
"""dash style - the dash style """
which = 'pdst'
want = 'tdas'
class arrow_style(aetools.NProperty):
"""arrow style - the arrow style """
which = 'arro'
want = 'arro'
graphic_lines = graphic_line
class graphic_object(aetools.ComponentItem):
"""graphic object - A graphic object """
want = 'cgob'
graphic_objects = graphic_object
class graphic_shape(aetools.ComponentItem):
"""graphic shape - A graphic shape """
want = 'cgsh'
graphic_shapes = graphic_shape
class graphic_text(aetools.ComponentItem):
"""graphic text - A series of characters within a drawing area """
want = 'cgtx'
class color(aetools.NProperty):
"""color - the color of the first character """
which = 'colr'
want = 'cRGB'
class font(aetools.NProperty):
"""font - the name of the font of the first character """
which = 'font'
want = 'ctxt'
class size(aetools.NProperty):
"""size - the size in points of the first character """
which = 'ptsz'
want = 'fixd'
class uniform_styles(aetools.NProperty):
"""uniform styles - the text styles that are uniform throughout the text """
which = 'ustl'
want = 'tsty'
class graphic_group(aetools.ComponentItem):
"""graphic group - Group of graphics """
want = 'cpic'
graphic_groups = graphic_group
class oval(aetools.ComponentItem):
"""oval - An oval """
want = 'covl'
ovals = oval
class pixel(aetools.ComponentItem):
"""pixel - A pixel """
want = 'cpxl'
# 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,
'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 = {
'start_point' : start_point,
'end_point' : end_point,
'dash_style' : dash_style,
'arrow_style' : arrow_style,
}
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,
'arro' : arrow_style,
'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,
'pbnd' : bounds,
'ptsz' : size,
'parc' : arc_angle,
'flcl' : fill_color,
'pbpt' : background_pattern,
}
_compdeclarations = {
}
_enumdeclarations = {
'tran' : _Enum_tran,
'arro' : _Enum_arro,
}
"""Suite QuickDraw Graphics Supplemental Suite: Defines transformations of graphic objects
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'qdsp'
class QuickDraw_Graphics_Suppleme_Events:
pass
class drawing_area(aetools.ComponentItem):
"""drawing area - Container for graphics and supporting information """
want = 'cdrw'
class rotation(aetools.NProperty):
"""rotation - the default rotation for objects in the drawing area """
which = 'prot'
want = 'trot'
class scale(aetools.NProperty):
"""scale - the default scaling for objects in the drawing area """
which = 'pscl'
want = 'fixd'
class translation(aetools.NProperty):
"""translation - the default repositioning for objects in the drawing area """
which = 'ptrs'
want = 'QDpt'
drawing_areas = drawing_area
class graphic_group(aetools.ComponentItem):
"""graphic group - Group of graphics """
want = 'cpic'
graphic_groups = graphic_group
drawing_area._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 = {
}
"""Suite Required Suite: Every application supports open, print, run, and quit
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'reqd'
class Required_Suite_Events:
pass
#
# Indices of types declared in this module
#
_classdeclarations = {
}
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}
"""Suite Standard Suite: Common terms for most applications
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'core'
class Standard_Suite_Events:
def open(self, _object, _attributes={}, **_arguments):
"""open: Open the specified object(s)
Required argument: list of objects to open
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'odoc'
if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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: Run an application. Most applications will open an empty, untitled window.
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'oapp'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.has_key('errn'):
raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result
if _arguments.has_key('----'):
return _arguments['----']
def reopen(self, _no_object=None, _attributes={}, **_arguments):
"""reopen: Reactivate a running application. Some applications will open a new untitled window if no window is open.
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'aevt'
_subcode = 'rapp'
if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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
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_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 an object
Required argument: the object whose elements are to be counted
Keyword argument each: if specified, restricts counting to objects of this class
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the number of elements
"""
_code = 'core'
_subcode = 'cnte'
aetools.keysubst(_arguments, self._argmap_count)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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 object from its container. Note this does not work on script variables, only on elements of application classes.
Required argument: the element to delete
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'core'
_subcode = 'delo'
if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.has_key('errn'):
raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result
if _arguments.has_key('----'):
return _arguments['----']
_argmap_duplicate = {
'to' : 'insh',
'with_properties' : 'prdt',
}
def duplicate(self, _object, _attributes={}, **_arguments):
"""duplicate: Duplicate one or more objects
Required argument: the object(s) to duplicate
Keyword argument to: the new location for the object(s)
Keyword argument with_properties: the initial values for properties of the new object that are to be different from the original
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: to the duplicated object(s)
"""
_code = 'core'
_subcode = 'clon'
aetools.keysubst(_arguments, self._argmap_duplicate)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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['----']
_argmap_save = {
'_in' : 'kfil',
'as' : 'fltp',
}
def save(self, _object, _attributes={}, **_arguments):
"""save: Save an object
Required argument: the object to save, usually a document or window
Keyword argument _in: the file in which to save the object
Keyword argument as: the file type of the document in which to save the data
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'core'
_subcode = 'save'
aetools.keysubst(_arguments, self._argmap_save)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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: Make a selection
Required argument: the object to select
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'misc'
_subcode = 'slct'
if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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: (optional) Return the size in bytes of an object
Required argument: the object whose data size is to be returned
Keyword argument as: the data type for which the size is calculated
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the size of the object in bytes
"""
_code = 'core'
_subcode = 'dsiz'
aetools.keysubst(_arguments, self._argmap_data_size)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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: (optional) Get information about event suite(s)
Required argument: the suite for which to return information
Keyword argument _in: the human language and script system in which to return information
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a record containing the suites and their versions
"""
_code = 'core'
_subcode = 'gtsi'
aetools.keysubst(_arguments, self._argmap_suite_info)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.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: (optional) Get information about the Apple events in a suite
Required argument: the event class of the Apple events for which to return information
Keyword argument _in: the human language and script system in which to return information
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a record containing the events and their parameters
"""
_code = 'core'
_subcode = 'gtei'
aetools.keysubst(_arguments, self._argmap_event_info)
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.has_key('errn'):
raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result
if _arguments.has_key('----'):
return _arguments['----']
_argmap_class_info = {
'_in' : 'wrcd',
}
def class_info(self, _object=None, _attributes={}, **_arguments):
"""class info: (optional) Get information about an object class
Required argument: the object class about which information is requested
Keyword argument _in: the human language and script system in which to return information
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a record containing the object¹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['----']
class application(aetools.ComponentItem):
"""application - An application program """
want = 'capp'
class name(aetools.NProperty):
"""name - the name of the application """
which = 'pnam'
want = 'itxt'
class frontmost(aetools.NProperty):
"""frontmost - Is this the frontmost application? """
which = 'pisf'
want = 'bool'
class selection(aetools.NProperty):
"""selection - the selection visible to the user. Use the Œselect¹ command to set a new selection; use Œcontents of selection¹ to get or change information in the document. """
which = 'sele'
want = 'csel'
class clipboard(aetools.NProperty):
"""clipboard - the contents of the clipboard for this application """
which = 'pcli'
want = '****'
class version(aetools.NProperty):
"""version - the version of the application """
which = 'vers'
want = 'vers'
applications = application
class document(aetools.ComponentItem):
"""document - A document of a scriptable application """
want = 'docu'
class modified(aetools.NProperty):
"""modified - Has the document been modified since the last save? """
which = 'imod'
want = 'bool'
documents = document
class file(aetools.ComponentItem):
"""file - a file on a disk or server (or a file yet to be created) """
want = 'file'
class stationery(aetools.NProperty):
"""stationery - Is the file a stationery file? """
which = 'pspd'
want = 'bool'
files = file
class alias(aetools.ComponentItem):
"""alias - a file on a disk or server. The file must exist when you check the syntax of your script. """
want = 'alis'
aliases = alias
class selection_2d_object(aetools.ComponentItem):
"""selection-object - A way to refer to the state of the current of the selection. Use the Œselect¹ command to make a new selection. """
want = 'csel'
class contents(aetools.NProperty):
"""contents - the information currently selected. Use Œcontents of selection¹ to get or change information in a document. """
which = 'pcnt'
want = '****'
class window(aetools.ComponentItem):
"""window - A window """
want = 'cwin'
class bounds(aetools.NProperty):
"""bounds - the boundary rectangle for the window """
which = 'pbnd'
want = 'qdrt'
class closeable(aetools.NProperty):
"""closeable - Does the window have a close box? """
which = 'hclb'
want = 'bool'
class titled(aetools.NProperty):
"""titled - Does the window have a title bar? """
which = 'ptit'
want = 'bool'
class index(aetools.NProperty):
"""index - the number of the window """
which = 'pidx'
want = 'long'
class floating(aetools.NProperty):
"""floating - Does the window float? """
which = 'isfl'
want = 'bool'
class modal(aetools.NProperty):
"""modal - Is the window modal? """
which = 'pmod'
want = 'bool'
class resizable(aetools.NProperty):
"""resizable - Is the window resizable? """
which = 'prsz'
want = 'bool'
class zoomable(aetools.NProperty):
"""zoomable - Is the window zoomable? """
which = 'iszm'
want = 'bool'
class zoomed(aetools.NProperty):
"""zoomed - Is the window zoomed? """
which = 'pzum'
want = 'bool'
class visible(aetools.NProperty):
"""visible - Is the window visible? """
which = 'pvis'
want = 'bool'
windows = window
class insertion_point(aetools.ComponentItem):
"""insertion point - An insertion location between two objects """
want = 'cins'
insertion_points = insertion_point
application._propdict = {
'name' : name,
'frontmost' : frontmost,
'selection' : selection,
'clipboard' : clipboard,
'version' : version,
}
application._elemdict = {
}
document._propdict = {
'modified' : modified,
}
document._elemdict = {
}
file._propdict = {
'stationery' : stationery,
}
file._elemdict = {
}
alias._propdict = {
}
alias._elemdict = {
}
selection_2d_object._propdict = {
'contents' : contents,
}
selection_2d_object._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,
'cins' : insertion_point,
'capp' : application,
'alis' : alias,
'csel' : selection_2d_object,
'file' : file,
'cwin' : window,
}
_propdeclarations = {
'ptit' : titled,
'pidx' : index,
'pnam' : name,
'pzum' : zoomed,
'pcnt' : contents,
'pcli' : clipboard,
'hclb' : closeable,
'iszm' : zoomable,
'isfl' : floating,
'pspd' : stationery,
'pisf' : frontmost,
'sele' : selection,
'pbnd' : bounds,
'imod' : modified,
'pvis' : visible,
'pmod' : modal,
'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,
}
"""Suite Table Suite: Classes for manipulating tables
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'tbls'
class Table_Suite_Events:
pass
class cell(aetools.ComponentItem):
"""cell - A cell """
want = 'ccel'
class formula(aetools.NProperty):
"""formula - the formula of the cell """
which = 'pfor'
want = 'ctxt'
class protection(aetools.NProperty):
"""protection - Indicates whether value or formula in the cell can be changed """
which = 'ppro'
want = 'prtn'
cells = cell
class column(aetools.ComponentItem):
"""column - A column """
want = 'ccol'
class name(aetools.NProperty):
"""name - the name of the column """
which = 'pnam'
want = 'itxt'
columns = column
class row(aetools.ComponentItem):
"""row - A row """
want = 'crow'
rows = row
class table(aetools.ComponentItem):
"""table - A table """
want = 'ctbl'
tables = table
cell._propdict = {
'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', # Cant 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,
'pfor' : formula,
'pnam' : name,
}
_compdeclarations = {
}
_enumdeclarations = {
'prtn' : _Enum_prtn,
}
"""Suite Text Suite: A set of basic classes for text processing
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'TEXT'
class Text_Suite_Events:
pass
class character(aetools.ComponentItem):
"""character - A character """
want = 'cha '
class _3c_inheritance_3e_(aetools.NProperty):
"""<inheritance> - inherits some of its properties from this class """
which = 'c@#^'
want = 'ctxt'
class line(aetools.ComponentItem):
"""line - A line of text """
want = 'clin'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class justification(aetools.NProperty):
"""justification - the justification of the text """
which = 'pjst'
want = 'just'
lines = line
class paragraph(aetools.ComponentItem):
"""paragraph - A paragraph """
want = 'cpar'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
paragraphs = paragraph
class text(aetools.ComponentItem):
"""text - Text """
want = 'ctxt'
class color(aetools.NProperty):
"""color - the color of the first character """
which = 'colr'
want = 'cRGB'
class font(aetools.NProperty):
"""font - the name of the font of the first character """
which = 'font'
want = 'ctxt'
class size(aetools.NProperty):
"""size - the size in points of the first character """
which = 'ptsz'
want = 'fixd'
class writing_code(aetools.NProperty):
"""writing code - the script system and language """
which = 'psct'
want = 'intl'
class style(aetools.NProperty):
"""style - the text style of the first character of the first character """
which = 'txst'
want = 'tsty'
class uniform_styles(aetools.NProperty):
"""uniform styles - the text styles that are uniform throughout the text """
which = 'ustl'
want = 'tsty'
# element 'cha ' as ['indx']
# element 'clin' as ['indx']
# element 'cpar' as ['indx']
# element 'ctxt' as ['indx']
# element 'cwor' as ['indx']
class text_flow(aetools.ComponentItem):
"""text flow - A contiguous block of text. Page layout applications call this a story. """
want = 'cflo'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class name(aetools.NProperty):
"""name - the name """
which = 'pnam'
want = 'itxt'
text_flows = text_flow
class text_style_info(aetools.ComponentItem):
"""text style info - On and Off styles of text run """
want = 'tsty'
class on_styles(aetools.NProperty):
"""on styles - the styles that are on for the text """
which = 'onst'
want = 'styl'
class off_styles(aetools.NProperty):
"""off styles - the styles that are off for the text """
which = 'ofst'
want = 'styl'
text_style_infos = text_style_info
class word(aetools.ComponentItem):
"""word - A word """
want = 'cwor'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class
words = word
character._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
}
character._elemdict = {
}
line._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'justification' : justification,
}
line._elemdict = {
}
paragraph._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
}
paragraph._elemdict = {
}
text._propdict = {
'color' : color,
'font' : font,
'size' : size,
'writing_code' : writing_code,
'style' : style,
'uniform_styles' : uniform_styles,
}
text._elemdict = {
'character' : character,
'line' : line,
'paragraph' : paragraph,
'text' : text,
'word' : word,
}
text_flow._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
'name' : name,
}
text_flow._elemdict = {
}
text_style_info._propdict = {
'on_styles' : on_styles,
'off_styles' : off_styles,
}
text_style_info._elemdict = {
}
word._propdict = {
'_3c_inheritance_3e_' : _3c_inheritance_3e_,
}
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 = {
'clin' : line,
'ctxt' : text,
'cwor' : word,
'cflo' : text_flow,
'cpar' : paragraph,
'tsty' : text_style_info,
'cha ' : character,
}
_propdeclarations = {
'psct' : writing_code,
'txst' : style,
'colr' : color,
'font' : font,
'pnam' : name,
'ustl' : uniform_styles,
'pjst' : justification,
'ofst' : off_styles,
'onst' : on_styles,
'ptsz' : size,
'c@#^' : _3c_inheritance_3e_,
}
_compdeclarations = {
}
_enumdeclarations = {
'styl' : _Enum_styl,
'just' : _Enum_just,
}
"""Suite Type Names Suite: Terminology for Registry data types
Level 1, version 1
Generated from Macintosh HD:Systeemmap:Extensies:AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""
import aetools
import MacOS
_code = 'tpnm'
class Type_Names_Suite_Events:
pass
class type_class_info(aetools.ComponentItem):
"""type class info - information about properties and elements of a class """
want = 'gcli'
class type_event_info(aetools.ComponentItem):
"""type event info - information about an event """
want = 'evin'
class plain_text(aetools.ComponentItem):
"""plain text - """
want = 'TEXT'
plain_text = plain_text
string = plain_text
class bounding_rectangle(aetools.ComponentItem):
"""bounding rectangle - bounding rectangle """
want = 'qdrt'
class point(aetools.ComponentItem):
"""point - point coordinates """
want = 'QDpt'
class fixed(aetools.ComponentItem):
"""fixed - a real number """
want = 'fixd'
class location_reference(aetools.ComponentItem):
"""location reference - """
want = 'insl'
class application_dictionary(aetools.ComponentItem):
"""application dictionary - """
want = 'aete'
class color_table(aetools.ComponentItem):
"""color table - """
want = 'clrt'
class dash_style(aetools.ComponentItem):
"""dash style - """
want = 'tdas'
class double_integer(aetools.ComponentItem):
"""double integer - """
want = 'comp'
class extended_real(aetools.ComponentItem):
"""extended real - """
want = 'exte'
class fixed_point(aetools.ComponentItem):
"""fixed point - """
want = 'fpnt'
class fixed_rectangle(aetools.ComponentItem):
"""fixed rectangle - """
want = 'frct'
class long_fixed(aetools.ComponentItem):
"""long fixed - """
want = 'lfxd'
class long_fixed_point(aetools.ComponentItem):
"""long fixed point - """
want = 'lfpt'
class long_fixed_rectangle(aetools.ComponentItem):
"""long fixed rectangle - """
want = 'lfrc'
class long_point(aetools.ComponentItem):
"""long point - """
want = 'lpnt'
class long_rectangle(aetools.ComponentItem):
"""long rectangle - """
want = 'lrct'
class machine_location(aetools.ComponentItem):
"""machine location - """
want = 'mLoc'
class menu(aetools.ComponentItem):
"""menu - """
want = 'cmnu'
class menu_item(aetools.ComponentItem):
"""menu item - """
want = 'cmen'
class null(aetools.ComponentItem):
"""null - """
want = 'null'
class pixel_map_record(aetools.ComponentItem):
"""pixel map record - """
want = 'tpmm'
class PostScript_picture(aetools.ComponentItem):
"""PostScript picture - """
want = 'EPS '
class RGB16_color(aetools.ComponentItem):
"""RGB16 color - """
want = 'tr16'
class RGB96_color(aetools.ComponentItem):
"""RGB96 color - """
want = 'tr96'
class small_integer(aetools.ComponentItem):
"""small integer - """
want = 'shor'
class small_real(aetools.ComponentItem):
"""small real - """
want = 'sing'
class system_dictionary(aetools.ComponentItem):
"""system dictionary - """
want = 'aeut'
class rotation(aetools.ComponentItem):
"""rotation - """
want = 'trot'
class scrap_styles(aetools.ComponentItem):
"""scrap styles - """
want = 'styl'
class TIFF_picture(aetools.ComponentItem):
"""TIFF picture - """
want = 'TIFF'
class version(aetools.ComponentItem):
"""version - """
want = 'vers'
class unsigned_integer(aetools.ComponentItem):
"""unsigned integer - """
want = 'magn'
class type_property_info(aetools.ComponentItem):
"""type property info - """
want = 'pinf'
class type_element_info(aetools.ComponentItem):
"""type element info - """
want = 'elin'
class type_parameter_info(aetools.ComponentItem):
"""type parameter info - """
want = 'pmin'
class type_suite_info(aetools.ComponentItem):
"""type suite info - """
want = 'suin'
class target_id(aetools.ComponentItem):
"""target id - """
want = 'targ'
type_class_info._propdict = {
}
type_class_info._elemdict = {
}
type_event_info._propdict = {
}
type_event_info._elemdict = {
}
plain_text._propdict = {
}
plain_text._elemdict = {
}
plain_text._propdict = {
}
plain_text._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 = {
}
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 = {
}
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 = {
}
#
# Indices of types declared in this module
#
_classdeclarations = {
'targ' : target_id,
'null' : null,
'lfxd' : long_fixed,
'TIFF' : TIFF_picture,
'vers' : version,
'magn' : unsigned_integer,
'exte' : extended_real,
'qdrt' : bounding_rectangle,
'lrct' : long_rectangle,
'lfpt' : long_fixed_point,
'pmin' : type_parameter_info,
'pinf' : type_property_info,
'tdas' : dash_style,
'tr96' : RGB96_color,
'cmnu' : menu,
'gcli' : type_class_info,
'lpnt' : long_point,
'suin' : type_suite_info,
'trot' : rotation,
'fixd' : fixed,
'lfrc' : long_fixed_rectangle,
'frct' : fixed_rectangle,
'evin' : type_event_info,
'sing' : small_real,
'aete' : application_dictionary,
'tpmm' : pixel_map_record,
'cmen' : menu_item,
'QDpt' : point,
'EPS ' : PostScript_picture,
'mLoc' : machine_location,
'insl' : location_reference,
'elin' : type_element_info,
'comp' : double_integer,
'fpnt' : fixed_point,
'clrt' : color_table,
'styl' : scrap_styles,
'aeut' : system_dictionary,
'tr16' : RGB16_color,
'shor' : small_integer,
'TEXT' : plain_text,
}
_propdeclarations = {
}
_compdeclarations = {
}
_enumdeclarations = {
}
"""
Package generated from Macintosh HD:Systeemmap:Extensies:AppleScript
Resource aeut resid 0 Standard Event Suites for English
"""
import aetools
import AppleScript_Suite
import Required_Suite
import Standard_Suite
import Text_Suite
import QuickDraw_Graphics_Suite
import QuickDraw_Graphics_Suppleme
import Table_Suite
import Macintosh_Connectivity_Clas
import Type_Names_Suite
_code_to_module = {
'ascr' : AppleScript_Suite,
'reqd' : Required_Suite,
'core' : Standard_Suite,
'TEXT' : Text_Suite,
'qdrw' : QuickDraw_Graphics_Suite,
'qdsp' : QuickDraw_Graphics_Suppleme,
'tbls' : Table_Suite,
'macc' : Macintosh_Connectivity_Clas,
'tpnm' : Type_Names_Suite,
}
_code_to_fullname = {
'ascr' : 'StdSuites.AppleScript_Suite',
'reqd' : 'StdSuites.Required_Suite',
'core' : 'StdSuites.Standard_Suite',
'TEXT' : 'StdSuites.Text_Suite',
'qdrw' : 'StdSuites.QuickDraw_Graphics_Suite',
'qdsp' : 'StdSuites.QuickDraw_Graphics_Suppleme',
'tbls' : 'StdSuites.Table_Suite',
'macc' : 'StdSuites.Macintosh_Connectivity_Clas',
'tpnm' : 'StdSuites.Type_Names_Suite',
}
from AppleScript_Suite import *
from Required_Suite import *
from Standard_Suite import *
from Text_Suite import *
from QuickDraw_Graphics_Suite import *
from QuickDraw_Graphics_Suppleme import *
from Table_Suite import *
from Macintosh_Connectivity_Clas import *
from Type_Names_Suite import *
class StdSuites(AppleScript_Suite_Events,
Required_Suite_Events,
Standard_Suite_Events,
Text_Suite_Events,
QuickDraw_Graphics_Suite_Events,
QuickDraw_Graphics_Suppleme_Events,
Table_Suite_Events,
Macintosh_Connectivity_Clas_Events,
Type_Names_Suite_Events,
aetools.TalkTo):
pass
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment