1 """Suite Utility Events: Commands that allow the user to select Disk Copy files
4 Generated from Macintosh HD:Hulpprogramma's:Disk Copy
5 AETE/AEUT resource version 1/0, language 0, script 0
13 class Utility_Events_Events
:
15 _argmap_select_disk_image
= {
16 'with_prompt' : 'SELp',
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
28 aetools
.keysubst(_arguments
, self
._argmap
_select
_disk
_image
)
29 if _no_object
!= None: raise TypeError, 'No direct arg expected'
31 aetools
.enumsubst(_arguments
, 'SELp', _Enum_TEXT
)
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
['----']
41 _argmap_select_DiskScript
= {
42 'with_prompt' : 'SELp',
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
54 aetools
.keysubst(_arguments
, self
._argmap
_select
_DiskScript
)
55 if _no_object
!= None: raise TypeError, 'No direct arg expected'
57 aetools
.enumsubst(_arguments
, 'SELp', _Enum_TEXT
)
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
['----']
67 _argmap_select_disk_image_or_DiskScript
= {
68 'with_prompt' : 'SELp',
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
80 aetools
.keysubst(_arguments
, self
._argmap
_select
_disk
_image
_or
_DiskScript
)
81 if _no_object
!= None: raise TypeError, 'No direct arg expected'
83 aetools
.enumsubst(_arguments
, 'SELp', _Enum_TEXT
)
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
['----']
93 _argmap_select_floppy_disk_image
= {
94 'with_prompt' : 'SELp',
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
106 aetools
.keysubst(_arguments
, self
._argmap
_select
_floppy
_disk
_image
)
107 if _no_object
!= None: raise TypeError, 'No direct arg expected'
109 aetools
.enumsubst(_arguments
, 'SELp', _Enum_TEXT
)
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
['----']
119 _argmap_select_disk
= {
120 'with_prompt' : 'SELp',
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
132 aetools
.keysubst(_arguments
, self
._argmap
_select
_disk
)
133 if _no_object
!= None: raise TypeError, 'No direct arg expected'
135 aetools
.enumsubst(_arguments
, 'SELp', _Enum_TEXT
)
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
['----']
145 _argmap_select_folder
= {
146 'with_prompt' : 'SELp',
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
158 aetools
.keysubst(_arguments
, self
._argmap
_select
_folder
)
159 if _no_object
!= None: raise TypeError, 'No direct arg expected'
161 aetools
.enumsubst(_arguments
, 'SELp', _Enum_TEXT
)
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
['----']
172 'time_stamp' : 'TSMP',
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
184 aetools
.keysubst(_arguments
, self
._argmap
_log
)
185 _arguments
['----'] = _object
187 aetools
.enumsubst(_arguments
, 'TSMP', _Enum_bool
)
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
['----']
197 _Enum_TEXT
= None # XXXX enum TEXT not found!!
198 _Enum_bool
= None # XXXX enum bool not found!!
201 # Indices of types declared in this module
203 _classdeclarations
= {
206 _propdeclarations
= {
209 _compdeclarations
= {
212 _enumdeclarations
= {