/Lib/plat-mac/lib-scriptpackages/Explorer/Required_Suite.py

http://unladen-swallow.googlecode.com/ · Python · 108 lines · 97 code · 4 blank · 7 comment · 0 complexity · 7a5824cca09fbeb7a170f95d39dfc726 MD5 · raw file

  1. """Suite Required Suite: Events that every application should support
  2. Level 1, version 1
  3. Generated from /Applications/Internet Explorer.app
  4. AETE/AEUT resource version 1/0, language 0, script 0
  5. """
  6. import aetools
  7. import MacOS
  8. _code = 'reqd'
  9. from StdSuites.Required_Suite import *
  10. class Required_Suite_Events(Required_Suite_Events):
  11. def open(self, _object, _attributes={}, **_arguments):
  12. """open: Open documents
  13. Required argument: undocumented, typecode 'alis'
  14. Keyword argument _attributes: AppleEvent attribute dictionary
  15. """
  16. _code = 'aevt'
  17. _subcode = 'odoc'
  18. if _arguments: raise TypeError, 'No optional args expected'
  19. _arguments['----'] = _object
  20. _reply, _arguments, _attributes = self.send(_code, _subcode,
  21. _arguments, _attributes)
  22. if _arguments.get('errn', 0):
  23. raise aetools.Error, aetools.decodeerror(_arguments)
  24. # XXXX Optionally decode result
  25. if _arguments.has_key('----'):
  26. return _arguments['----']
  27. def print_(self, _object, _attributes={}, **_arguments):
  28. """print: Print documents
  29. Required argument: undocumented, typecode 'alis'
  30. Keyword argument _attributes: AppleEvent attribute dictionary
  31. """
  32. _code = 'aevt'
  33. _subcode = 'pdoc'
  34. if _arguments: raise TypeError, 'No optional args expected'
  35. _arguments['----'] = _object
  36. _reply, _arguments, _attributes = self.send(_code, _subcode,
  37. _arguments, _attributes)
  38. if _arguments.get('errn', 0):
  39. raise aetools.Error, aetools.decodeerror(_arguments)
  40. # XXXX Optionally decode result
  41. if _arguments.has_key('----'):
  42. return _arguments['----']
  43. def quit(self, _no_object=None, _attributes={}, **_arguments):
  44. """quit: Quit application
  45. Keyword argument _attributes: AppleEvent attribute dictionary
  46. """
  47. _code = 'aevt'
  48. _subcode = 'quit'
  49. if _arguments: raise TypeError, 'No optional args expected'
  50. if _no_object is not None: raise TypeError, 'No direct arg expected'
  51. _reply, _arguments, _attributes = self.send(_code, _subcode,
  52. _arguments, _attributes)
  53. if _arguments.get('errn', 0):
  54. raise aetools.Error, aetools.decodeerror(_arguments)
  55. # XXXX Optionally decode result
  56. if _arguments.has_key('----'):
  57. return _arguments['----']
  58. def run(self, _no_object=None, _attributes={}, **_arguments):
  59. """run:
  60. Keyword argument _attributes: AppleEvent attribute dictionary
  61. """
  62. _code = 'aevt'
  63. _subcode = 'oapp'
  64. if _arguments: raise TypeError, 'No optional args expected'
  65. if _no_object is not None: raise TypeError, 'No direct arg expected'
  66. _reply, _arguments, _attributes = self.send(_code, _subcode,
  67. _arguments, _attributes)
  68. if _arguments.get('errn', 0):
  69. raise aetools.Error, aetools.decodeerror(_arguments)
  70. # XXXX Optionally decode result
  71. if _arguments.has_key('----'):
  72. return _arguments['----']
  73. #
  74. # Indices of types declared in this module
  75. #
  76. _classdeclarations = {
  77. }
  78. _propdeclarations = {
  79. }
  80. _compdeclarations = {
  81. }
  82. _enumdeclarations = {
  83. }