• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""Suite Standard Suite: Common terms for most applications
2Level 1, version 1
3
4Generated from /Applications/Internet Explorer.app
5AETE/AEUT resource version 1/0, language 0, script 0
6"""
7
8import aetools
9import MacOS
10
11_code = '****'
12
13class 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        # XXXX Optionally decode result
38        if _arguments.has_key('----'):
39            return _arguments['----']
40
41
42class application(aetools.ComponentItem):
43    """application - An application program """
44    want = 'capp'
45class _Prop_selected_text(aetools.NProperty):
46    """selected text - the selected text """
47    which = 'stxt'
48    want = 'TEXT'
49selected_text = _Prop_selected_text()
50application._superclassnames = []
51application._privpropdict = {
52    'selected_text' : _Prop_selected_text,
53}
54application._privelemdict = {
55}
56
57#
58# Indices of types declared in this module
59#
60_classdeclarations = {
61    'capp' : application,
62}
63
64_propdeclarations = {
65    'stxt' : _Prop_selected_text,
66}
67
68_compdeclarations = {
69}
70
71_enumdeclarations = {
72}
73