home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 May / maximum-cd-2010-05.iso / DiscContents / boxee-0.9.20.10711.exe / system / python / Lib / plat-mac / lib-scriptpackages / SystemEvents / Hidden_Suite.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-07-20  |  1.5 KB  |  41 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. '''Suite Hidden Suite: Hidden Terms and Events for controlling the System Events application
  5. Level 1, version 1
  6.  
  7. Generated from /System/Library/CoreServices/System Events.app
  8. AETE/AEUT resource version 1/0, language 0, script 0
  9. '''
  10. import aetools
  11. import MacOS
  12. _code = 'tpnm'
  13. from StdSuites.Type_Names_Suite import *
  14.  
  15. class Hidden_Suite_Events(Type_Names_Suite_Events):
  16.     
  17.     def do_script(self, _object, _attributes = { }, **_arguments):
  18.         '''do script: Execute an OSA script.
  19.         Required argument: the object for the command
  20.         Keyword argument _attributes: AppleEvent attribute dictionary
  21.         '''
  22.         _code = 'misc'
  23.         _subcode = 'dosc'
  24.         if _arguments:
  25.             raise TypeError, 'No optional args expected'
  26.         
  27.         _arguments['----'] = _object
  28.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  29.         if _arguments.get('errn', 0):
  30.             raise aetools.Error, aetools.decodeerror(_arguments)
  31.         
  32.         if _arguments.has_key('----'):
  33.             return _arguments['----']
  34.         
  35.  
  36.  
  37. _classdeclarations = { }
  38. _propdeclarations = { }
  39. _compdeclarations = { }
  40. _enumdeclarations = { }
  41.