1"""Suite URL Suite: Standard suite for Uniform Resource Locators 2Level 1, version 1 3 4Generated from /Applications/Internet Explorer.app 5AETE/AEUT resource version 1/0, language 0, script 0 6""" 7 8import aetools 9import MacOS 10 11_code = 'GURL' 12 13class 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} 55