Debian Codegraph @

cpython27/Lib/plat-mac/lib-scriptpackages/Explorer/URL_Suite.py

raw symbols SCIP
1 """Suite URL Suite: Standard suite for Uniform Resource Locators
2 Level 1, version 1
3
4 Generated from /Applications/Internet Explorer.app
5 AETE/AEUT resource version 1/0, language 0, script 0
6 """
7
8 import aetools
9 import MacOS
10
11 _code = 'GURL'
12
13 class URL_Suite_Events:
14
15 _argmap_GetURL = {
16 'to' : 'dest',
17 }
18
19 def GetURL(self, _object, _attributes={}, **_arguments):
20 """GetURL: Open the URL (and optionally save it to disk)
21 Required argument: URL to open
22 Keyword argument to: File into which to save resource located at URL.
23 Keyword argument _attributes: AppleEvent attribute dictionary
24 """
25 _code = 'GURL'
26 _subcode = 'GURL'
27
28 aetools.keysubst(_arguments, self._argmap_GetURL)
29 _arguments['----'] = _object
30
31
32 _reply, _arguments, _attributes = self.send(_code, _subcode,
33 _arguments, _attributes)
34 if _arguments.get('errn', 0):
35 raise aetools.Error, aetools.decodeerror(_arguments)
36 # XXXX Optionally decode result
37 if _arguments.has_key('----'):
38 return _arguments['----']
39
40
41 #
42 # Indices of types declared in this module
43 #
44 _classdeclarations = {
45 }
46
47 _propdeclarations = {
48 }
49
50 _compdeclarations = {
51 }
52
53 _enumdeclarations = {
54 }