1"""Suite Utility Events: Commands that allow the user to select Disk Copy files 2Level 1, version 1 3 4Generated from Macintosh HD:Hulpprogramma's:Disk Copy 5AETE/AEUT resource version 1/0, language 0, script 0 6""" 7 8import aetools 9import MacOS 10 11_code = 'ddsk' 12 13class Utility_Events_Events: 14 15 _argmap_select_disk_image = { 16 'with_prompt' : 'SELp', 17 } 18 19 def select_disk_image(self, _no_object=None, _attributes={}, **_arguments): 20 """select disk image: Prompt the user to select a disk image 21 Keyword argument with_prompt: the prompt string to be displayed 22 Keyword argument _attributes: AppleEvent attribute dictionary 23 Returns: a reference to a disk image 24 """ 25 _code = 'UTIL' 26 _subcode = 'SEL1' 27 28 aetools.keysubst(_arguments, self._argmap_select_disk_image) 29 if _no_object is not None: raise TypeError, 'No direct arg expected' 30 31 aetools.enumsubst(_arguments, 'SELp', _Enum_TEXT) 32 33 _reply, _arguments, _attributes = self.send(_code, _subcode, 34 _arguments, _attributes) 35 if _arguments.has_key('errn'): 36 raise aetools.Error, aetools.decodeerror(_arguments) 37 # XXXX Optionally decode result 38 if _arguments.has_key('----'): 39 return _arguments['----'] 40 41 _argmap_select_DiskScript = { 42 'with_prompt' : 'SELp', 43 } 44 45 def select_DiskScript(self, _no_object=None, _attributes={}, **_arguments): 46 """select DiskScript: Prompt the user to select a DiskScript 47 Keyword argument with_prompt: the prompt string to be displayed 48 Keyword argument _attributes: AppleEvent attribute dictionary 49 Returns: a reference to a DiskScript 50 """ 51 _code = 'UTIL' 52 _subcode = 'SEL2' 53 54 aetools.keysubst(_arguments, self._argmap_select_DiskScript) 55 if _no_object is not None: raise TypeError, 'No direct arg expected' 56 57 aetools.enumsubst(_arguments, 'SELp', _Enum_TEXT) 58 59 _reply, _arguments, _attributes = self.send(_code, _subcode, 60 _arguments, _attributes) 61 if _arguments.has_key('errn'): 62 raise aetools.Error, aetools.decodeerror(_arguments) 63 # XXXX Optionally decode result 64 if _arguments.has_key('----'): 65 return _arguments['----'] 66 67 _argmap_select_disk_image_or_DiskScript = { 68 'with_prompt' : 'SELp', 69 } 70 71 def select_disk_image_or_DiskScript(self, _no_object=None, _attributes={}, **_arguments): 72 """select disk image or DiskScript: Prompt the user to select a disk image or DiskScript 73 Keyword argument with_prompt: the prompt string to be displayed 74 Keyword argument _attributes: AppleEvent attribute dictionary 75 Returns: a reference to disk image or a DiskScript 76 """ 77 _code = 'UTIL' 78 _subcode = 'SEL3' 79 80 aetools.keysubst(_arguments, self._argmap_select_disk_image_or_DiskScript) 81 if _no_object is not None: raise TypeError, 'No direct arg expected' 82 83 aetools.enumsubst(_arguments, 'SELp', _Enum_TEXT) 84 85 _reply, _arguments, _attributes = self.send(_code, _subcode, 86 _arguments, _attributes) 87 if _arguments.has_key('errn'): 88 raise aetools.Error, aetools.decodeerror(_arguments) 89 # XXXX Optionally decode result 90 if _arguments.has_key('----'): 91 return _arguments['----'] 92 93 _argmap_select_floppy_disk_image = { 94 'with_prompt' : 'SELp', 95 } 96 97 def select_floppy_disk_image(self, _no_object=None, _attributes={}, **_arguments): 98 """select floppy disk image: Prompt the user to select a floppy disk image 99 Keyword argument with_prompt: the prompt string to be displayed 100 Keyword argument _attributes: AppleEvent attribute dictionary 101 Returns: a reference to a floppy disk image 102 """ 103 _code = 'UTIL' 104 _subcode = 'SEL4' 105 106 aetools.keysubst(_arguments, self._argmap_select_floppy_disk_image) 107 if _no_object is not None: raise TypeError, 'No direct arg expected' 108 109 aetools.enumsubst(_arguments, 'SELp', _Enum_TEXT) 110 111 _reply, _arguments, _attributes = self.send(_code, _subcode, 112 _arguments, _attributes) 113 if _arguments.has_key('errn'): 114 raise aetools.Error, aetools.decodeerror(_arguments) 115 # XXXX Optionally decode result 116 if _arguments.has_key('----'): 117 return _arguments['----'] 118 119 _argmap_select_disk = { 120 'with_prompt' : 'SELp', 121 } 122 123 def select_disk(self, _no_object=None, _attributes={}, **_arguments): 124 """select disk: Prompt the user to select a disk volume 125 Keyword argument with_prompt: the prompt string to be displayed 126 Keyword argument _attributes: AppleEvent attribute dictionary 127 Returns: a reference to the disk 128 """ 129 _code = 'UTIL' 130 _subcode = 'SEL5' 131 132 aetools.keysubst(_arguments, self._argmap_select_disk) 133 if _no_object is not None: raise TypeError, 'No direct arg expected' 134 135 aetools.enumsubst(_arguments, 'SELp', _Enum_TEXT) 136 137 _reply, _arguments, _attributes = self.send(_code, _subcode, 138 _arguments, _attributes) 139 if _arguments.has_key('errn'): 140 raise aetools.Error, aetools.decodeerror(_arguments) 141 # XXXX Optionally decode result 142 if _arguments.has_key('----'): 143 return _arguments['----'] 144 145 _argmap_select_folder = { 146 'with_prompt' : 'SELp', 147 } 148 149 def select_folder(self, _no_object=None, _attributes={}, **_arguments): 150 """select folder: Prompt the user to select a folder 151 Keyword argument with_prompt: the prompt string to be displayed 152 Keyword argument _attributes: AppleEvent attribute dictionary 153 Returns: a reference to the folder 154 """ 155 _code = 'UTIL' 156 _subcode = 'SEL6' 157 158 aetools.keysubst(_arguments, self._argmap_select_folder) 159 if _no_object is not None: raise TypeError, 'No direct arg expected' 160 161 aetools.enumsubst(_arguments, 'SELp', _Enum_TEXT) 162 163 _reply, _arguments, _attributes = self.send(_code, _subcode, 164 _arguments, _attributes) 165 if _arguments.has_key('errn'): 166 raise aetools.Error, aetools.decodeerror(_arguments) 167 # XXXX Optionally decode result 168 if _arguments.has_key('----'): 169 return _arguments['----'] 170 171 _argmap_log = { 172 'time_stamp' : 'TSMP', 173 } 174 175 def log(self, _object, _attributes={}, **_arguments): 176 """log: Add a string to the log window 177 Required argument: the string to add to the log window 178 Keyword argument time_stamp: Should the log entry be time-stamped? (false if not supplied) 179 Keyword argument _attributes: AppleEvent attribute dictionary 180 """ 181 _code = 'UTIL' 182 _subcode = 'LOG ' 183 184 aetools.keysubst(_arguments, self._argmap_log) 185 _arguments['----'] = _object 186 187 aetools.enumsubst(_arguments, 'TSMP', _Enum_bool) 188 189 _reply, _arguments, _attributes = self.send(_code, _subcode, 190 _arguments, _attributes) 191 if _arguments.has_key('errn'): 192 raise aetools.Error, aetools.decodeerror(_arguments) 193 # XXXX Optionally decode result 194 if _arguments.has_key('----'): 195 return _arguments['----'] 196 197_Enum_TEXT = None # XXXX enum TEXT not found!! 198_Enum_bool = None # XXXX enum bool not found!! 199 200# 201# Indices of types declared in this module 202# 203_classdeclarations = { 204} 205 206_propdeclarations = { 207} 208 209_compdeclarations = { 210} 211 212_enumdeclarations = { 213} 214