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