PageRenderTime 374ms CodeModel.GetById 131ms app.highlight 3ms RepoModel.GetById 238ms app.codeStats 0ms

/Mac/Tools/Doc/HelpIndexingTool/odds_and_ends.py

http://unladen-swallow.googlecode.com/
Python | 49 lines | 23 code | 12 blank | 14 comment | 3 complexity | a5622c95a66ef4823e908e95c578b53b MD5 | raw file
 1"""Suite odds and ends: Things that should be in some standard suite, but aren\xd5t
 2Level 1, version 1
 3
 4Generated from /Developer/Applications/Apple Help Indexing Tool.app
 5AETE/AEUT resource version 1/1, language 0, script 0
 6"""
 7
 8import aetools
 9import MacOS
10
11_code = 'Odds'
12
13class odds_and_ends_Events:
14
15    def select(self, _object=None, _attributes={}, **_arguments):
16        """select: Select the specified object
17        Required argument: the object to select
18        Keyword argument _attributes: AppleEvent attribute dictionary
19        """
20        _code = 'misc'
21        _subcode = 'slct'
22
23        if _arguments: raise TypeError, 'No optional args expected'
24        _arguments['----'] = _object
25
26
27        _reply, _arguments, _attributes = self.send(_code, _subcode,
28                _arguments, _attributes)
29        if _arguments.get('errn', 0):
30            raise aetools.Error, aetools.decodeerror(_arguments)
31        # XXXX Optionally decode result
32        if _arguments.has_key('----'):
33            return _arguments['----']
34
35
36#
37# Indices of types declared in this module
38#
39_classdeclarations = {
40}
41
42_propdeclarations = {
43}
44
45_compdeclarations = {
46}
47
48_enumdeclarations = {
49}