1 """Suite Misc Suite: Suite that adds additional features to the Application.
4 Generated from MPW:MPW Shell
5 AETE/AEUT resource version 1/0, language 0, script 0
15 def DoScript(self
, _object
, _attributes
={}, **_arguments
):
16 """DoScript: Execute an MPW command, any command that could be executed from the command line can be sent as a script.
17 Required argument: The script to execute
18 Keyword argument _attributes: AppleEvent attribute dictionary
23 if _arguments
: raise TypeError, 'No optional args expected'
24 _arguments
['----'] = _object
27 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
28 _arguments
, _attributes
)
29 if _arguments
.has_key('errn'):
30 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
31 # XXXX Optionally decode result
32 if _arguments
.has_key('----'):
33 return _arguments
['----']
37 # Indices of types declared in this module
39 _classdeclarations
= {