| 1 |
"""Suite Standard Suite: Common terms for most applications |
| 2 |
Level 1, version 1 |
| 3 |
|
| 4 |
Generated from /Applications/Internet Explorer.app |
| 5 |
AETE/AEUT resource version 1/0, language 0, script 0 |
| 6 |
""" |
| 7 |
|
| 8 |
import aetools |
| 9 |
import MacOS |
| 10 |
|
| 11 |
_code = '****' |
| 12 |
|
| 13 |
class Standard_Suite_Events: |
| 14 |
|
| 15 |
_argmap_get = { |
| 16 |
'as' : 'rtyp', |
| 17 |
} |
| 18 |
|
| 19 |
def get(self, _object, _attributes={}, **_arguments): |
| 20 |
"""get: |
| 21 |
Required argument: an AE object reference |
| 22 |
Keyword argument as: undocumented, typecode 'type' |
| 23 |
Keyword argument _attributes: AppleEvent attribute dictionary |
| 24 |
Returns: anything |
| 25 |
""" |
| 26 |
_code = 'core' |
| 27 |
_subcode = 'getd' |
| 28 |
|
| 29 |
aetools.keysubst(_arguments, self._argmap_get) |
| 30 |
_arguments['----'] = _object |
| 31 |
|
| 32 |
|
| 33 |
_reply, _arguments, _attributes = self.send(_code, _subcode, |
| 34 |
_arguments, _attributes) |
| 35 |
if _arguments.get('errn', 0): |
| 36 |
raise aetools.Error, aetools.decodeerror(_arguments) |
| 37 |
|
| 38 |
if _arguments.has_key('----'): |
| 39 |
return _arguments['----'] |
| 40 |
|
| 41 |
|
| 42 |
class application(aetools.ComponentItem): |
| 43 |
"""application - An application program """ |
| 44 |
want = 'capp' |
| 45 |
class _Prop_selected_text(aetools.NProperty): |
| 46 |
"""selected text - the selected text """ |
| 47 |
which = 'stxt' |
| 48 |
want = 'TEXT' |
| 49 |
selected_text = _Prop_selected_text() |
| 50 |
application._superclassnames = [] |
| 51 |
application._privpropdict = { |
| 52 |
'selected_text' : _Prop_selected_text, |
| 53 |
} |
| 54 |
application._privelemdict = { |
| 55 |
} |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
_classdeclarations = { |
| 61 |
'capp' : application, |
| 62 |
} |
| 63 |
|
| 64 |
_propdeclarations = { |
| 65 |
'stxt' : _Prop_selected_text, |
| 66 |
} |
| 67 |
|
| 68 |
_compdeclarations = { |
| 69 |
} |
| 70 |
|
| 71 |
_enumdeclarations = { |
| 72 |
} |