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 / System_Events_Suite.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-07-20  |  3.4 KB  |  93 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. '''Suite System Events Suite: 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 = 'sevs'
  13.  
  14. class System_Events_Suite_Events:
  15.     
  16.     def do_script(self, _object, _attributes = { }, **_arguments):
  17.         '''do script: Execute an OSA script.
  18.         Required argument: the object for the command
  19.         Keyword argument _attributes: AppleEvent attribute dictionary
  20.         '''
  21.         _code = 'misc'
  22.         _subcode = 'dosc'
  23.         if _arguments:
  24.             raise TypeError, 'No optional args expected'
  25.         
  26.         _arguments['----'] = _object
  27.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  28.         if _arguments.get('errn', 0):
  29.             raise aetools.Error, aetools.decodeerror(_arguments)
  30.         
  31.         if _arguments.has_key('----'):
  32.             return _arguments['----']
  33.         
  34.  
  35.  
  36.  
  37. class application(aetools.ComponentItem):
  38.     '''application - The System Events application '''
  39.     want = 'capp'
  40.  
  41.  
  42. class _Prop__3c_Inheritance_3e_(aetools.NProperty):
  43.     '''<Inheritance> - All of the properties of the superclass. '''
  44.     which = 'c@#^'
  45.     want = 'capp'
  46.  
  47. _3c_Inheritance_3e_ = _Prop__3c_Inheritance_3e_()
  48.  
  49. class _Prop_folder_actions_enabled(aetools.NProperty):
  50.     '''folder actions enabled - Are Folder Actions currently being processed? '''
  51.     which = 'faen'
  52.     want = 'bool'
  53.  
  54. folder_actions_enabled = _Prop_folder_actions_enabled()
  55.  
  56. class _Prop_properties(aetools.NProperty):
  57.     '''properties - every property of the System Events application '''
  58.     which = 'pALL'
  59.     want = '****'
  60.  
  61. properties = _Prop_properties()
  62. applications = application
  63. application._superclassnames = []
  64. import Disk_Folder_File_Suite
  65. import Standard_Suite
  66. import Folder_Actions_Suite
  67. import Login_Items_Suite
  68. import Processes_Suite
  69. application._privpropdict = {
  70.     '_3c_Inheritance_3e_': _Prop__3c_Inheritance_3e_,
  71.     'folder_actions_enabled': _Prop_folder_actions_enabled,
  72.     'properties': _Prop_properties }
  73. application._privelemdict = {
  74.     'application_process': Processes_Suite.application_process,
  75.     'desk_accessory_process': Processes_Suite.desk_accessory_process,
  76.     'disk': Disk_Folder_File_Suite.disk,
  77.     'document': Standard_Suite.document,
  78.     'file': Disk_Folder_File_Suite.file,
  79.     'folder': Disk_Folder_File_Suite.folder,
  80.     'folder_action': Folder_Actions_Suite.folder_action,
  81.     'item': Disk_Folder_File_Suite.item,
  82.     'login_item': Login_Items_Suite.login_item,
  83.     'process': Processes_Suite.process,
  84.     'window': Standard_Suite.window }
  85. _classdeclarations = {
  86.     'capp': application }
  87. _propdeclarations = {
  88.     'c@#^': _Prop__3c_Inheritance_3e_,
  89.     'faen': _Prop_folder_actions_enabled,
  90.     'pALL': _Prop_properties }
  91. _compdeclarations = { }
  92. _enumdeclarations = { }
  93.