parameters: (self, _object, _attributes={}, **_arguments)
docstring: do script: Execute script commands
          Required argument: JavaScript text to execute
          Keyword argument window: optional Window Identifier (as supplied by the ListWindows event) specifying context in which to execute the script
          Keyword argument _attributes: AppleEvent attribute dictionary
          Returns: Return value
docstring_summary: do script: Execute script commands
          Required argument: JavaScript text to execute
          Keyword argument window: optional Window Identifier (as supplied by the ListWindows event) specifying context in which to execute the script
          Keyword argument _attributes: AppleEvent attribute dictionary
          Returns: Return value
docstring_tokens: do script : Execute script commands Required argument : JavaScript text to execute Keyword argument window : optional Window Identifier ( as supplied by the ListWindows event ) specifying context in which to execute the script Keyword argument _attributes : AppleEvent attribute dictionary Returns : Return value
function: def do_script(self, _object, _attributes={}, **_arguments):
          """do script: Execute script commands
          Required argument: JavaScript text to execute
          Keyword argument window: optional Window Identifier (as supplied by the ListWindows event) specifying context in which to execute the script
          Keyword argument _attributes: AppleEvent attribute dictionary
          Returns: Return value
          """
          _code = 'misc'
          _subcode = 'dosc'
  
          aetools.keysubst(_arguments, self._argmap_do_script)
          _arguments['----'] = _object
  
  
          _reply, _arguments, _attributes = self.send(_code, _subcode,
                  _arguments, _attributes)
          if _arguments.get('errn', 0):
              raise aetools.Error, aetools.decodeerror(_arguments)
          # XXXX Optionally decode result
          if _arguments.has_key('----'):
              return _arguments['----']
function_tokens: def do_script ( self , _object , _attributes = { } , * * _arguments ) : _code = 'misc' _subcode = 'dosc' aetools . keysubst ( _arguments , self . _argmap_do_script ) _arguments [ '----' ] = _object _reply , _arguments , _attributes = self . send ( _code , _subcode , _arguments , _attributes ) if _arguments . get ( 'errn' , 0 ) : raise aetools . Error , aetools . decodeerror ( _arguments ) # XXXX Optionally decode result if _arguments . has_key ( '----' ) : return _arguments [ '----' ]