| 1 | n/a | """Suite Microsoft Internet Explorer Suite: Events defined by Internet Explorer |
|---|
| 2 | n/a | Level 1, version 1 |
|---|
| 3 | n/a | |
|---|
| 4 | n/a | Generated from /Applications/Internet Explorer.app |
|---|
| 5 | n/a | AETE/AEUT resource version 1/0, language 0, script 0 |
|---|
| 6 | n/a | """ |
|---|
| 7 | n/a | |
|---|
| 8 | n/a | import aetools |
|---|
| 9 | n/a | import MacOS |
|---|
| 10 | n/a | |
|---|
| 11 | n/a | _code = 'MSIE' |
|---|
| 12 | n/a | |
|---|
| 13 | n/a | class Microsoft_Internet_Explorer_Events: |
|---|
| 14 | n/a | |
|---|
| 15 | n/a | def GetSource(self, _object=None, _attributes={}, **_arguments): |
|---|
| 16 | n/a | """GetSource: Get the HTML source of a browser window |
|---|
| 17 | n/a | Required argument: Window Identifier of window from which to get the source. No value means get the source from the frontmost window. |
|---|
| 18 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 19 | n/a | Returns: undocumented, typecode 'TEXT' |
|---|
| 20 | n/a | """ |
|---|
| 21 | n/a | _code = 'MSIE' |
|---|
| 22 | n/a | _subcode = 'SORC' |
|---|
| 23 | n/a | |
|---|
| 24 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 25 | n/a | _arguments['----'] = _object |
|---|
| 26 | n/a | |
|---|
| 27 | n/a | |
|---|
| 28 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 29 | n/a | _arguments, _attributes) |
|---|
| 30 | n/a | if _arguments.get('errn', 0): |
|---|
| 31 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 32 | n/a | # XXXX Optionally decode result |
|---|
| 33 | n/a | if _arguments.has_key('----'): |
|---|
| 34 | n/a | return _arguments['----'] |
|---|
| 35 | n/a | |
|---|
| 36 | n/a | def PrintBrowserWindow(self, _object=None, _attributes={}, **_arguments): |
|---|
| 37 | n/a | """PrintBrowserWindow: Print contents of browser window (HTML) |
|---|
| 38 | n/a | Required argument: Window Identifier of the window to print. No value means print the frontmost browser window. |
|---|
| 39 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 40 | n/a | """ |
|---|
| 41 | n/a | _code = 'misc' |
|---|
| 42 | n/a | _subcode = 'pWND' |
|---|
| 43 | n/a | |
|---|
| 44 | n/a | if _arguments: raise TypeError, 'No optional args expected' |
|---|
| 45 | n/a | _arguments['----'] = _object |
|---|
| 46 | n/a | |
|---|
| 47 | n/a | |
|---|
| 48 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 49 | n/a | _arguments, _attributes) |
|---|
| 50 | n/a | if _arguments.get('errn', 0): |
|---|
| 51 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 52 | n/a | # XXXX Optionally decode result |
|---|
| 53 | n/a | if _arguments.has_key('----'): |
|---|
| 54 | n/a | return _arguments['----'] |
|---|
| 55 | n/a | |
|---|
| 56 | n/a | _argmap_do_script = { |
|---|
| 57 | n/a | 'window' : 'WIND', |
|---|
| 58 | n/a | } |
|---|
| 59 | n/a | |
|---|
| 60 | n/a | def do_script(self, _object, _attributes={}, **_arguments): |
|---|
| 61 | n/a | """do script: Execute script commands |
|---|
| 62 | n/a | Required argument: JavaScript text to execute |
|---|
| 63 | n/a | Keyword argument window: optional Window Identifier (as supplied by the ListWindows event) specifying context in which to execute the script |
|---|
| 64 | n/a | Keyword argument _attributes: AppleEvent attribute dictionary |
|---|
| 65 | n/a | Returns: Return value |
|---|
| 66 | n/a | """ |
|---|
| 67 | n/a | _code = 'misc' |
|---|
| 68 | n/a | _subcode = 'dosc' |
|---|
| 69 | n/a | |
|---|
| 70 | n/a | aetools.keysubst(_arguments, self._argmap_do_script) |
|---|
| 71 | n/a | _arguments['----'] = _object |
|---|
| 72 | n/a | |
|---|
| 73 | n/a | |
|---|
| 74 | n/a | _reply, _arguments, _attributes = self.send(_code, _subcode, |
|---|
| 75 | n/a | _arguments, _attributes) |
|---|
| 76 | n/a | if _arguments.get('errn', 0): |
|---|
| 77 | n/a | raise aetools.Error, aetools.decodeerror(_arguments) |
|---|
| 78 | n/a | # XXXX Optionally decode result |
|---|
| 79 | n/a | if _arguments.has_key('----'): |
|---|
| 80 | n/a | return _arguments['----'] |
|---|
| 81 | n/a | |
|---|
| 82 | n/a | |
|---|
| 83 | n/a | # |
|---|
| 84 | n/a | # Indices of types declared in this module |
|---|
| 85 | n/a | # |
|---|
| 86 | n/a | _classdeclarations = { |
|---|
| 87 | n/a | } |
|---|
| 88 | n/a | |
|---|
| 89 | n/a | _propdeclarations = { |
|---|
| 90 | n/a | } |
|---|
| 91 | n/a | |
|---|
| 92 | n/a | _compdeclarations = { |
|---|
| 93 | n/a | } |
|---|
| 94 | n/a | |
|---|
| 95 | n/a | _enumdeclarations = { |
|---|
| 96 | n/a | } |
|---|