ยปCore Development>Code coverage>Lib/plat-mac/lib-scriptpackages/SystemEvents/Hidden_Suite.py

Python code coverage for Lib/plat-mac/lib-scriptpackages/SystemEvents/Hidden_Suite.py

#countcontent
1n/a"""Suite Hidden Suite: Hidden Terms and Events for controlling the System Events application
2n/aLevel 1, version 1
3n/a
4n/aGenerated from /System/Library/CoreServices/System Events.app
5n/aAETE/AEUT resource version 1/0, language 0, script 0
6n/a"""
7n/a
8n/aimport aetools
9n/aimport MacOS
10n/a
11n/a_code = 'tpnm'
12n/a
13n/afrom StdSuites.Type_Names_Suite import *
14n/aclass Hidden_Suite_Events(Type_Names_Suite_Events):
15n/a
16n/a def do_script(self, _object, _attributes={}, **_arguments):
17n/a """do script: Execute an OSA script.
18n/a Required argument: the object for the command
19n/a Keyword argument _attributes: AppleEvent attribute dictionary
20n/a """
21n/a _code = 'misc'
22n/a _subcode = 'dosc'
23n/a
24n/a if _arguments: raise TypeError, 'No optional args expected'
25n/a _arguments['----'] = _object
26n/a
27n/a
28n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
29n/a _arguments, _attributes)
30n/a if _arguments.get('errn', 0):
31n/a raise aetools.Error, aetools.decodeerror(_arguments)
32n/a # XXXX Optionally decode result
33n/a if _arguments.has_key('----'):
34n/a return _arguments['----']
35n/a
36n/a
37n/a#
38n/a# Indices of types declared in this module
39n/a#
40n/a_classdeclarations = {
41n/a}
42n/a
43n/a_propdeclarations = {
44n/a}
45n/a
46n/a_compdeclarations = {
47n/a}
48n/a
49n/a_enumdeclarations = {
50n/a}