More installation info. Bump alpha version.
[python/dscho.git] / Lib / plat-mac / lib-scriptpackages / Finder / Containers_and_folders.py
blobc3aac1670762ca8b9f1a394cafd1ea2cbb3e51cb
1 """Suite Containers and folders: Classes that can contain other file system items
2 Level 1, version 1
4 Generated from /Volumes/Sap/System Folder/Finder
5 AETE/AEUT resource version 0/144, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = 'fndr'
13 class Containers_and_folders_Events:
15 pass
18 class container(aetools.ComponentItem):
19 """container - An item that contains other items """
20 want = 'ctnr'
21 class _3c_Inheritance_3e_(aetools.NProperty):
22 """<Inheritance> - inherits some of its properties from the item class """
23 which = 'c@#^'
24 want = 'cobj'
25 class selection(aetools.NProperty):
26 """selection - the selection visible to the user """
27 which = 'sele'
28 want = 'obj '
29 class entire_contents(aetools.NProperty):
30 """entire contents - the entire contents of the container, including the contents of its children """
31 which = 'ects'
32 want = 'obj '
33 class expandable(aetools.NProperty):
34 """expandable - Is the container capable of being expanded as an outline? """
35 which = 'pexa'
36 want = 'bool'
37 class expanded(aetools.NProperty):
38 """expanded - Is the container opened as an outline? (can only be set for containers viewed as lists) """
39 which = 'pexp'
40 want = 'bool'
41 class completely_expanded(aetools.NProperty):
42 """completely expanded - Are the container and all of its children opened as outlines? (can only be set for containers viewed as lists) """
43 which = 'pexc'
44 want = 'bool'
45 class icon_size(aetools.NProperty):
46 """icon size - the size of icons displayed in the window. Can be specified as a number, or ... """
47 which = 'lvis'
48 want = 'long'
49 class view_options_window(aetools.NProperty):
50 """view options window - the view options window for the container (can only be opened when the container window is open) """
51 which = 'vwnd'
52 want = 'vwnd'
53 # element 'cobj' as ['indx', 'name']
54 # element 'ctnr' as ['indx', 'name']
55 # element 'sctr' as ['indx', 'name']
56 # element 'cfol' as ['indx', 'name', 'ID ']
57 # element 'file' as ['indx', 'name']
58 # element 'alia' as ['indx', 'name']
59 # element 'appf' as ['indx', 'name', 'ID ']
60 # element 'docf' as ['indx', 'name']
61 # element 'fntf' as ['indx', 'name']
62 # element 'dafi' as ['indx', 'name']
63 # element 'inlf' as ['indx', 'name']
64 # element 'sndf' as ['indx', 'name']
65 # element 'clpf' as ['indx', 'name']
66 # element 'pack' as ['indx', 'name']
67 # element 'stcs' as ['indx', 'name']
68 # element 'fsut' as ['indx', 'name']
69 # element 'dsut' as ['indx', 'name']
71 containers = container
73 class sharable_container(aetools.ComponentItem):
74 """sharable container - A container that may be shared (disks and folders) """
75 want = 'sctr'
76 class owner(aetools.NProperty):
77 """owner - the user that owns the container (file sharing must be on to use this property) """
78 which = 'sown'
79 want = 'itxt'
80 class group(aetools.NProperty):
81 """group - the user or group that has special access to the container (file sharing must be on to use this property) """
82 which = 'sgrp'
83 want = 'itxt'
84 class owner_privileges(aetools.NProperty):
85 """owner privileges - the see folders/see files/make changes privileges for the owner (file sharing must be on to use this property) """
86 which = 'ownr'
87 want = 'priv'
88 class group_privileges(aetools.NProperty):
89 """group privileges - the see folders/see files/make changes privileges for the group (file sharing must be on to use this property) """
90 which = 'gppr'
91 want = 'priv'
92 class guest_privileges(aetools.NProperty):
93 """guest privileges - the see folders/see files/make changes privileges for everyone (file sharing must be on to use this property) """
94 which = 'gstp'
95 want = 'priv'
96 class privileges_inherited(aetools.NProperty):
97 """privileges inherited - Are the privileges of the container always the same as the container in which it is stored? (file sharing must be on to use this property) """
98 which = 'iprv'
99 want = 'bool'
100 class mounted(aetools.NProperty):
101 """mounted - Is the container mounted on another machine's desktop? (file sharing must be on to use this property) """
102 which = 'smou'
103 want = 'bool'
104 class exported(aetools.NProperty):
105 """exported - Is the container a share point or inside a share point, i.e., can the container be shared? (file sharing must be on to use this property) """
106 which = 'sexp'
107 want = 'bool'
108 class shared(aetools.NProperty):
109 """shared - Is the container a share point, i.e., is the container currently being shared? (file sharing must be on to use this property) """
110 which = 'shar'
111 want = 'bool'
112 class protected(aetools.NProperty):
113 """protected - Is the container protected from being moved, renamed and deleted? (file sharing must be on to use this property) """
114 which = 'spro'
115 want = 'bool'
116 # element 'cobj' as ['indx', 'name']
117 # element 'ctnr' as ['indx', 'name']
118 # element 'sctr' as ['indx', 'name']
119 # element 'cfol' as ['indx', 'name', 'ID ']
120 # element 'file' as ['indx', 'name']
121 # element 'alia' as ['indx', 'name']
122 # element 'appf' as ['indx', 'name', 'ID ']
123 # element 'docf' as ['indx', 'name']
124 # element 'fntf' as ['indx', 'name']
125 # element 'dafi' as ['indx', 'name']
126 # element 'inlf' as ['indx', 'name']
127 # element 'sndf' as ['indx', 'name']
128 # element 'clpf' as ['indx', 'name']
129 # element 'pack' as ['indx', 'name']
130 # element 'stcs' as ['indx', 'name']
131 # element 'fsut' as ['indx', 'name']
132 # element 'dsut' as ['indx', 'name']
134 sharable_containers = sharable_container
136 class sharing_privileges(aetools.ComponentItem):
137 """sharing privileges - A set of sharing properties (used in sharable containers) """
138 want = 'priv'
139 class see_folders(aetools.NProperty):
140 """see folders - Can folders be seen? """
141 which = 'prvs'
142 want = 'bool'
143 class see_files(aetools.NProperty):
144 """see files - Can files be seen? """
145 which = 'prvr'
146 want = 'bool'
147 class make_changes(aetools.NProperty):
148 """make changes - Can changes be made? """
149 which = 'prvw'
150 want = 'bool'
152 class disk(aetools.ComponentItem):
153 """disk - A disk """
154 want = 'cdis'
155 class capacity(aetools.NProperty):
156 """capacity - the total number of bytes (free or used) on the disk """
157 which = 'capa'
158 want = 'long'
159 class free_space(aetools.NProperty):
160 """free space - the number of free bytes left on the disk """
161 which = 'frsp'
162 want = 'long'
163 class ejectable(aetools.NProperty):
164 """ejectable - Can the media be ejected (floppies, CD's, and so on)? """
165 which = 'isej'
166 want = 'bool'
167 class local_volume(aetools.NProperty):
168 """local volume - Is the media a local volume (as opposed to a file server)? """
169 which = 'isrv'
170 want = 'bool'
171 class startup(aetools.NProperty):
172 """startup - Is this disk the boot disk? """
173 which = 'istd'
174 want = 'bool'
175 # element 'cobj' as ['indx', 'name']
176 # element 'ctnr' as ['indx', 'name']
177 # element 'sctr' as ['indx', 'name']
178 # element 'cfol' as ['indx', 'name', 'ID ']
179 # element 'file' as ['indx', 'name']
180 # element 'alia' as ['indx', 'name']
181 # element 'appf' as ['indx', 'name', 'ID ']
182 # element 'docf' as ['indx', 'name']
183 # element 'fntf' as ['indx', 'name']
184 # element 'dafi' as ['indx', 'name']
185 # element 'inlf' as ['indx', 'name']
186 # element 'sndf' as ['indx', 'name']
187 # element 'clpf' as ['indx', 'name']
188 # element 'pack' as ['indx', 'name']
189 # element 'stcs' as ['indx', 'name']
190 # element 'fsut' as ['indx', 'name']
191 # element 'dsut' as ['indx', 'name']
193 disks = disk
195 class folder(aetools.ComponentItem):
196 """folder - A folder """
197 want = 'cfol'
198 # element 'cobj' as ['indx', 'name']
199 # element 'ctnr' as ['indx', 'name']
200 # element 'sctr' as ['indx', 'name']
201 # element 'cfol' as ['indx', 'name', 'ID ']
202 # element 'file' as ['indx', 'name']
203 # element 'alia' as ['indx', 'name']
204 # element 'appf' as ['indx', 'name', 'ID ']
205 # element 'docf' as ['indx', 'name']
206 # element 'fntf' as ['indx', 'name']
207 # element 'dafi' as ['indx', 'name']
208 # element 'inlf' as ['indx', 'name']
209 # element 'sndf' as ['indx', 'name']
210 # element 'clpf' as ['indx', 'name']
211 # element 'pack' as ['indx', 'name']
212 # element 'stcs' as ['indx', 'name']
213 # element 'fsut' as ['indx', 'name']
214 # element 'dsut' as ['indx', 'name']
216 folders = folder
218 class desktop_2d_object(aetools.ComponentItem):
219 """desktop-object - Desktop-object is the class of the \xd2desktop\xd3 object """
220 want = 'cdsk'
221 class startup_disk(aetools.NProperty):
222 """startup disk - the startup disk """
223 which = 'sdsk'
224 want = 'cdis'
225 class trash(aetools.NProperty):
226 """trash - the trash """
227 which = 'trsh'
228 want = 'ctrs'
229 # element 'cobj' as ['indx', 'name']
230 # element 'ctnr' as ['indx', 'name']
231 # element 'sctr' as ['indx', 'name']
232 # element 'cdis' as ['indx', 'name']
233 # element 'cfol' as ['indx', 'name', 'ID ']
234 # element 'file' as ['indx', 'name']
235 # element 'alia' as ['indx', 'name']
236 # element 'appf' as ['indx', 'name', 'ID ']
237 # element 'docf' as ['indx', 'name']
238 # element 'fntf' as ['indx', 'name']
239 # element 'dafi' as ['indx', 'name']
240 # element 'inlf' as ['indx', 'name']
241 # element 'sndf' as ['indx', 'name']
242 # element 'clpf' as ['indx', 'name']
243 # element 'pack' as ['indx', 'name']
244 # element 'stcs' as ['indx', 'name']
245 # element 'fsut' as ['indx', 'name']
246 # element 'dsut' as ['indx', 'name']
248 class trash_2d_object(aetools.ComponentItem):
249 """trash-object - Trash-object is the class of the \xd2trash\xd3 object """
250 want = 'ctrs'
251 class warns_before_emptying(aetools.NProperty):
252 """warns before emptying - Display a dialog when emptying the trash? """
253 which = 'warn'
254 want = 'bool'
255 # element 'cobj' as ['indx', 'name']
256 # element 'ctnr' as ['indx', 'name']
257 # element 'sctr' as ['indx', 'name']
258 # element 'cfol' as ['indx', 'name', 'ID ']
259 # element 'file' as ['indx', 'name']
260 # element 'alia' as ['indx', 'name']
261 # element 'appf' as ['indx', 'name', 'ID ']
262 # element 'docf' as ['indx', 'name']
263 # element 'fntf' as ['indx', 'name']
264 # element 'dafi' as ['indx', 'name']
265 # element 'inlf' as ['indx', 'name']
266 # element 'sndf' as ['indx', 'name']
267 # element 'clpf' as ['indx', 'name']
268 # element 'pack' as ['indx', 'name']
269 # element 'stcs' as ['indx', 'name']
270 # element 'fsut' as ['indx', 'name']
271 # element 'dsut' as ['indx', 'name']
272 import Earlier_terms
273 container._superclassnames = ['item']
274 import Files_and_suitcases
275 container._privpropdict = {
276 '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
277 'selection' : selection,
278 'entire_contents' : entire_contents,
279 'expandable' : expandable,
280 'expanded' : expanded,
281 'completely_expanded' : completely_expanded,
282 'icon_size' : icon_size,
283 'icon_size' : icon_size,
284 'view_options_window' : view_options_window,
286 container._privelemdict = {
287 'item' : Earlier_terms.item,
288 'container' : container,
289 'sharable_container' : sharable_container,
290 'folder' : folder,
291 'file' : Files_and_suitcases.file,
292 'alias_file' : Files_and_suitcases.alias_file,
293 'application_file' : Earlier_terms.application_file,
294 'document_file' : Files_and_suitcases.document_file,
295 'font_file' : Files_and_suitcases.font_file,
296 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
297 'internet_location' : Earlier_terms.internet_location,
298 'sound_file' : Files_and_suitcases.sound_file,
299 'clipping' : Files_and_suitcases.clipping,
300 'package' : Files_and_suitcases.package,
301 'suitcase' : Files_and_suitcases.suitcase,
302 'font_suitcase' : Files_and_suitcases.font_suitcase,
303 'accessory_suitcase' : Earlier_terms.accessory_suitcase,
305 sharable_container._superclassnames = ['container']
306 sharable_container._privpropdict = {
307 '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
308 'owner' : owner,
309 'group' : group,
310 'owner_privileges' : owner_privileges,
311 'group_privileges' : group_privileges,
312 'guest_privileges' : guest_privileges,
313 'privileges_inherited' : privileges_inherited,
314 'mounted' : mounted,
315 'exported' : exported,
316 'shared' : shared,
317 'protected' : protected,
319 sharable_container._privelemdict = {
320 'item' : Earlier_terms.item,
321 'container' : container,
322 'sharable_container' : sharable_container,
323 'folder' : folder,
324 'file' : Files_and_suitcases.file,
325 'alias_file' : Files_and_suitcases.alias_file,
326 'application_file' : Earlier_terms.application_file,
327 'document_file' : Files_and_suitcases.document_file,
328 'font_file' : Files_and_suitcases.font_file,
329 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
330 'internet_location' : Earlier_terms.internet_location,
331 'sound_file' : Files_and_suitcases.sound_file,
332 'clipping' : Files_and_suitcases.clipping,
333 'package' : Files_and_suitcases.package,
334 'suitcase' : Files_and_suitcases.suitcase,
335 'font_suitcase' : Files_and_suitcases.font_suitcase,
336 'accessory_suitcase' : Earlier_terms.accessory_suitcase,
338 sharing_privileges._superclassnames = []
339 sharing_privileges._privpropdict = {
340 'see_folders' : see_folders,
341 'see_files' : see_files,
342 'make_changes' : make_changes,
344 sharing_privileges._privelemdict = {
346 disk._superclassnames = ['sharable_container']
347 disk._privpropdict = {
348 '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
349 'capacity' : capacity,
350 'free_space' : free_space,
351 'ejectable' : ejectable,
352 'local_volume' : local_volume,
353 'startup' : startup,
355 disk._privelemdict = {
356 'item' : Earlier_terms.item,
357 'container' : container,
358 'sharable_container' : sharable_container,
359 'folder' : folder,
360 'file' : Files_and_suitcases.file,
361 'alias_file' : Files_and_suitcases.alias_file,
362 'application_file' : Earlier_terms.application_file,
363 'document_file' : Files_and_suitcases.document_file,
364 'font_file' : Files_and_suitcases.font_file,
365 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
366 'internet_location' : Earlier_terms.internet_location,
367 'sound_file' : Files_and_suitcases.sound_file,
368 'clipping' : Files_and_suitcases.clipping,
369 'package' : Files_and_suitcases.package,
370 'suitcase' : Files_and_suitcases.suitcase,
371 'font_suitcase' : Files_and_suitcases.font_suitcase,
372 'accessory_suitcase' : Earlier_terms.accessory_suitcase,
374 folder._superclassnames = ['sharable_container']
375 folder._privpropdict = {
376 '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
378 folder._privelemdict = {
379 'item' : Earlier_terms.item,
380 'container' : container,
381 'sharable_container' : sharable_container,
382 'folder' : folder,
383 'file' : Files_and_suitcases.file,
384 'alias_file' : Files_and_suitcases.alias_file,
385 'application_file' : Earlier_terms.application_file,
386 'document_file' : Files_and_suitcases.document_file,
387 'font_file' : Files_and_suitcases.font_file,
388 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
389 'internet_location' : Earlier_terms.internet_location,
390 'sound_file' : Files_and_suitcases.sound_file,
391 'clipping' : Files_and_suitcases.clipping,
392 'package' : Files_and_suitcases.package,
393 'suitcase' : Files_and_suitcases.suitcase,
394 'font_suitcase' : Files_and_suitcases.font_suitcase,
395 'accessory_suitcase' : Earlier_terms.accessory_suitcase,
397 desktop_2d_object._superclassnames = ['container']
398 desktop_2d_object._privpropdict = {
399 '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
400 'startup_disk' : startup_disk,
401 'trash' : trash,
403 desktop_2d_object._privelemdict = {
404 'item' : Earlier_terms.item,
405 'container' : container,
406 'sharable_container' : sharable_container,
407 'disk' : disk,
408 'folder' : folder,
409 'file' : Files_and_suitcases.file,
410 'alias_file' : Files_and_suitcases.alias_file,
411 'application_file' : Earlier_terms.application_file,
412 'document_file' : Files_and_suitcases.document_file,
413 'font_file' : Files_and_suitcases.font_file,
414 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
415 'internet_location' : Earlier_terms.internet_location,
416 'sound_file' : Files_and_suitcases.sound_file,
417 'clipping' : Files_and_suitcases.clipping,
418 'package' : Files_and_suitcases.package,
419 'suitcase' : Files_and_suitcases.suitcase,
420 'font_suitcase' : Files_and_suitcases.font_suitcase,
421 'accessory_suitcase' : Earlier_terms.accessory_suitcase,
423 trash_2d_object._superclassnames = ['container']
424 trash_2d_object._privpropdict = {
425 '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
426 'warns_before_emptying' : warns_before_emptying,
428 trash_2d_object._privelemdict = {
429 'item' : Earlier_terms.item,
430 'container' : container,
431 'sharable_container' : sharable_container,
432 'folder' : folder,
433 'file' : Files_and_suitcases.file,
434 'alias_file' : Files_and_suitcases.alias_file,
435 'application_file' : Earlier_terms.application_file,
436 'document_file' : Files_and_suitcases.document_file,
437 'font_file' : Files_and_suitcases.font_file,
438 'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
439 'internet_location' : Earlier_terms.internet_location,
440 'sound_file' : Files_and_suitcases.sound_file,
441 'clipping' : Files_and_suitcases.clipping,
442 'package' : Files_and_suitcases.package,
443 'suitcase' : Files_and_suitcases.suitcase,
444 'font_suitcase' : Files_and_suitcases.font_suitcase,
445 'accessory_suitcase' : Earlier_terms.accessory_suitcase,
449 # Indices of types declared in this module
451 _classdeclarations = {
452 'ctrs' : trash_2d_object,
453 'cdsk' : desktop_2d_object,
454 'sctr' : sharable_container,
455 'priv' : sharing_privileges,
456 'cdis' : disk,
457 'cfol' : folder,
458 'ctnr' : container,
461 _propdeclarations = {
462 'pexp' : expanded,
463 'gppr' : group_privileges,
464 'prvr' : see_files,
465 'ects' : entire_contents,
466 'lvis' : icon_size,
467 'iprv' : privileges_inherited,
468 'isrv' : local_volume,
469 'frsp' : free_space,
470 'pexa' : expandable,
471 'pexc' : completely_expanded,
472 'vwnd' : view_options_window,
473 'warn' : warns_before_emptying,
474 'sown' : owner,
475 'prvw' : make_changes,
476 'isej' : ejectable,
477 'capa' : capacity,
478 'shar' : shared,
479 'sexp' : exported,
480 'sdsk' : startup_disk,
481 'istd' : startup,
482 'gstp' : guest_privileges,
483 'trsh' : trash,
484 'smou' : mounted,
485 'sele' : selection,
486 'prvs' : see_folders,
487 'sgrp' : group,
488 'c@#^' : _3c_Inheritance_3e_,
489 'spro' : protected,
490 'ownr' : owner_privileges,
493 _compdeclarations = {
496 _enumdeclarations = {