1 """Suite Finder Suite: Objects and Events for the Finder
4 Generated from flap:System Folder:Extensions:Finder Scripting Extension
5 AETE/AEUT resource version 0/144, language 0, script 0
19 def clean_up(self
, _object
, _attributes
={}, **_arguments
):
20 """clean up: Arrange items in window nicely
21 Required argument: the window to clean up
22 Keyword argument by: the order in which to clean up the objects
23 Keyword argument _attributes: AppleEvent attribute dictionary
28 aetools
.keysubst(_arguments
, self
._argmap
_clean
_up
)
29 _arguments
['----'] = _object
32 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
33 _arguments
, _attributes
)
34 if _arguments
.has_key('errn'):
35 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
36 # XXXX Optionally decode result
37 if _arguments
.has_key('----'):
38 return _arguments
['----']
44 def computer(self
, _object
, _attributes
={}, **_arguments
):
45 """computer: Test attributes of this computer
46 Required argument: the attribute to test
47 Keyword argument has: test specific bits of response
48 Keyword argument _attributes: AppleEvent attribute dictionary
49 Returns: the result of the query
54 aetools
.keysubst(_arguments
, self
._argmap
_computer
)
55 _arguments
['----'] = _object
58 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
59 _arguments
, _attributes
)
60 if _arguments
.has_key('errn'):
61 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
62 # XXXX Optionally decode result
63 if _arguments
.has_key('----'):
64 return _arguments
['----']
66 def eject(self
, _object
=None, _attributes
={}, **_arguments
):
67 """eject: Eject the specified disk(s), or every ejectable disk if no parameter is specified
68 Required argument: the items to eject
69 Keyword argument _attributes: AppleEvent attribute dictionary
74 if _arguments
: raise TypeError, 'No optional args expected'
75 _arguments
['----'] = _object
78 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
79 _arguments
, _attributes
)
80 if _arguments
.has_key('errn'):
81 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
82 # XXXX Optionally decode result
83 if _arguments
.has_key('----'):
84 return _arguments
['----']
86 def empty(self
, _object
=None, _attributes
={}, **_arguments
):
87 """empty: Empty the trash
88 Required argument: ³empty² and ³empty trash² both do the same thing
89 Keyword argument _attributes: AppleEvent attribute dictionary
94 if _arguments
: raise TypeError, 'No optional args expected'
95 _arguments
['----'] = _object
98 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
99 _arguments
, _attributes
)
100 if _arguments
.has_key('errn'):
101 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
102 # XXXX Optionally decode result
103 if _arguments
.has_key('----'):
104 return _arguments
['----']
106 def erase(self
, _object
, _attributes
={}, **_arguments
):
107 """erase: Erase the specified disk(s)
108 Required argument: the items to erase
109 Keyword argument _attributes: AppleEvent attribute dictionary
114 if _arguments
: raise TypeError, 'No optional args expected'
115 _arguments
['----'] = _object
118 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
119 _arguments
, _attributes
)
120 if _arguments
.has_key('errn'):
121 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
122 # XXXX Optionally decode result
123 if _arguments
.has_key('----'):
124 return _arguments
['----']
130 def put_away(self
, _object
, _attributes
={}, **_arguments
):
131 """put away: Put away the specified object(s)
132 Required argument: the items to put away
133 Keyword argument items: DO NOT USE: provided for backwards compatibility with old event suite. Will be removed in future Finders
134 Keyword argument _attributes: AppleEvent attribute dictionary
135 Returns: the object put away in its put-away location
140 aetools
.keysubst(_arguments
, self
._argmap
_put
_away
)
141 _arguments
['----'] = _object
144 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
145 _arguments
, _attributes
)
146 if _arguments
.has_key('errn'):
147 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
148 # XXXX Optionally decode result
149 if _arguments
.has_key('----'):
150 return _arguments
['----']
152 def restart(self
, _no_object
=None, _attributes
={}, **_arguments
):
153 """restart: Restart the Macintosh
154 Keyword argument _attributes: AppleEvent attribute dictionary
159 if _arguments
: raise TypeError, 'No optional args expected'
160 if _no_object
!= None: raise TypeError, 'No direct arg expected'
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
['----']
171 def reveal(self
, _object
, _attributes
={}, **_arguments
):
172 """reveal: Bring the specified object(s) into view
173 Required argument: the object to be made visible
174 Keyword argument _attributes: AppleEvent attribute dictionary
179 if _arguments
: raise TypeError, 'No optional args expected'
180 _arguments
['----'] = _object
183 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
184 _arguments
, _attributes
)
185 if _arguments
.has_key('errn'):
186 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
187 # XXXX Optionally decode result
188 if _arguments
.has_key('----'):
189 return _arguments
['----']
191 def select(self
, _object
, _attributes
={}, **_arguments
):
192 """select: Select the specified object(s)
193 Required argument: the object to select
194 Keyword argument _attributes: AppleEvent attribute dictionary
199 if _arguments
: raise TypeError, 'No optional args expected'
200 _arguments
['----'] = _object
203 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
204 _arguments
, _attributes
)
205 if _arguments
.has_key('errn'):
206 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
207 # XXXX Optionally decode result
208 if _arguments
.has_key('----'):
209 return _arguments
['----']
211 def shut_down(self
, _no_object
=None, _attributes
={}, **_arguments
):
212 """shut down: Shut Down the Macintosh
213 Keyword argument _attributes: AppleEvent attribute dictionary
218 if _arguments
: raise TypeError, 'No optional args expected'
219 if _no_object
!= None: raise TypeError, 'No direct arg expected'
222 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
223 _arguments
, _attributes
)
224 if _arguments
.has_key('errn'):
225 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
226 # XXXX Optionally decode result
227 if _arguments
.has_key('----'):
228 return _arguments
['----']
230 def sleep(self
, _no_object
=None, _attributes
={}, **_arguments
):
231 """sleep: Sleep the Macintosh
232 Keyword argument _attributes: AppleEvent attribute dictionary
237 if _arguments
: raise TypeError, 'No optional args expected'
238 if _no_object
!= None: raise TypeError, 'No direct arg expected'
241 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
242 _arguments
, _attributes
)
243 if _arguments
.has_key('errn'):
244 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
245 # XXXX Optionally decode result
246 if _arguments
.has_key('----'):
247 return _arguments
['----']
253 def sort(self
, _object
, _attributes
={}, **_arguments
):
254 """sort: Return the specified object(s) in a sorted list
255 Required argument: a list of finder objects to sort
256 Keyword argument by: the property to sort the items by
257 Keyword argument _attributes: AppleEvent attribute dictionary
258 Returns: the sorted items in their new order
263 aetools
.keysubst(_arguments
, self
._argmap
_sort
)
264 _arguments
['----'] = _object
267 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
268 _arguments
, _attributes
)
269 if _arguments
.has_key('errn'):
270 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
271 # XXXX Optionally decode result
272 if _arguments
.has_key('----'):
273 return _arguments
['----']
275 def update(self
, _object
, _attributes
={}, **_arguments
):
276 """update: Update the display of the specified object(s) to match their on-disk representation
277 Required argument: the item to update
278 Keyword argument _attributes: AppleEvent attribute dictionary
283 if _arguments
: raise TypeError, 'No optional args expected'
284 _arguments
['----'] = _object
287 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
288 _arguments
, _attributes
)
289 if _arguments
.has_key('errn'):
290 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
291 # XXXX Optionally decode result
292 if _arguments
.has_key('----'):
293 return _arguments
['----']
296 class accessory_process(aetools
.ComponentItem
):
297 """accessory process - A process launched from a desk accessory file"""
299 class desk_accessory_file(aetools
.NProperty
):
300 """desk accessory file - the desk accessory file from which this process was launched"""
304 accessory_processes
= accessory_process
306 class accessory_suitcase(aetools
.ComponentItem
):
307 """accessory suitcase - A desk accessory suitcase"""
309 # element 'cobj' as ['indx', 'name']
311 accessory_suitcases
= accessory_suitcase
313 class alias_file(aetools
.ComponentItem
):
314 """alias file - An alias file (created with ³Make Alias²)"""
316 class original_item(aetools
.NProperty
):
317 """original item - the original item pointed to by the alias"""
321 alias_files
= alias_file
323 class application(aetools
.ComponentItem
):
324 """application - An application program"""
326 class about_this_macintosh(aetools
.NProperty
):
327 """about this macintosh - the ³About this Macintosh² dialog, and the list of running processes displayed in it"""
330 class apple_menu_items_folder(aetools
.NProperty
):
331 """apple menu items folder - the special folder ³Apple Menu Items,² the contents of which appear in the Apple menu"""
334 class clipboard(aetools
.NProperty
):
335 """clipboard - the Finder's clipboard window"""
338 class control_panels_folder(aetools
.NProperty
):
339 """control panels folder - the special folder ³Control Panels²"""
342 class desktop(aetools
.NProperty
):
343 """desktop - the desktop"""
346 class extensions_folder(aetools
.NProperty
):
347 """extensions folder - the special folder ³Extensions²"""
350 class file_sharing(aetools
.NProperty
):
351 """file sharing - Is file sharing on?"""
354 class fonts_folder(aetools
.NProperty
):
355 """fonts folder - the special folder ³Fonts²"""
358 class frontmost(aetools
.NProperty
):
359 """frontmost - Is this the frontmost application?"""
362 class insertion_location(aetools
.NProperty
):
363 """insertion location - the container that a new folder would appear in if ³New Folder² was selected"""
366 class largest_free_block(aetools
.NProperty
):
367 """largest free block - the largest free block of process memory available to launch an application"""
370 class preferences_folder(aetools
.NProperty
):
371 """preferences folder - the special folder ³Preferences²"""
374 class product_version(aetools
.NProperty
):
375 """product version - the version of the System software running on this Macintosh"""
378 class selection(aetools
.NProperty
):
379 """selection - the selection visible to the user"""
382 class sharing_starting_up(aetools
.NProperty
):
383 """sharing starting up - Is File sharing in the process of starting up (still off, but soon to be on)?"""
386 class shortcuts(aetools
.NProperty
):
387 """shortcuts - the ³Finder Shortcuts² item in the Finder's help menu"""
390 class shutdown_items_folder(aetools
.NProperty
):
391 """shutdown items folder - the special folder ³Shutdown Items²"""
394 class startup_items_folder(aetools
.NProperty
):
395 """startup items folder - the special folder ³Startup Items²"""
398 class system_folder(aetools
.NProperty
):
399 """system folder - the System folder"""
402 class temporary_items_folder(aetools
.NProperty
):
403 """temporary items folder - the special folder ³Temporary Items² (invisible)"""
406 class version(aetools
.NProperty
):
407 """version - the version of the Finder Scripting Extension"""
410 class view_preferences(aetools
.NProperty
):
411 """view preferences - the view preferences control panel"""
414 class visible(aetools
.NProperty
):
415 """visible - Is the Finder's layer visible?"""
418 # element 'dsut' as ['indx', 'name']
419 # element 'alia' as ['indx', 'name']
420 # element 'appf' as ['indx', 'name', 'ID ']
421 # element 'ctnr' as ['indx', 'name']
422 # element 'cwnd' as ['indx', 'name']
423 # element 'dwnd' as ['indx', 'name']
424 # element 'ccdv' as ['indx', 'name']
425 # element 'dafi' as ['indx', 'name']
426 # element 'cdsk' as ['indx', 'name']
427 # element 'cdis' as ['indx', 'name', 'ID ']
428 # element 'docf' as ['indx', 'name']
429 # element 'file' as ['indx', 'name']
430 # element 'cfol' as ['indx', 'name', 'ID ']
431 # element 'fntf' as ['indx', 'name']
432 # element 'fsut' as ['indx', 'name']
433 # element 'iwnd' as ['indx', 'name']
434 # element 'cobj' as ['indx', 'name']
435 # element 'sctr' as ['indx', 'name']
436 # element 'swnd' as ['indx', 'name']
437 # element 'sndf' as ['indx', 'name']
438 # element 'stcs' as ['indx', 'name']
439 # element 'ctrs' as ['indx', 'name']
440 # element 'cwin' as ['indx', 'name']
442 class application_file(aetools
.ComponentItem
):
443 """application file - An application's file on disk"""
445 class minimum_partition_size(aetools
.NProperty
):
446 """minimum partition size - the smallest memory size that the application can possibly be launched with"""
449 class partition_size(aetools
.NProperty
):
450 """partition size - the memory size that the application will be launched with"""
453 class scriptable(aetools
.NProperty
):
454 """scriptable - Is this application high-level event aware (accepts open application, open document, print document, and quit)?"""
457 class suggested_partition_size(aetools
.NProperty
):
458 """suggested partition size - the memory size that the developer recommends that the application should be launched with"""
462 application_files
= application_file
464 class application_process(aetools
.ComponentItem
):
465 """application process - A process launched from an application file"""
467 class application_file(aetools
.NProperty
):
468 """application file - the application file from which this process was launched"""
472 application_processes
= application_process
474 class container(aetools
.ComponentItem
):
475 """container - An item that contains other items"""
477 class completely_expanded(aetools
.NProperty
):
478 """completely expanded - Is the container and all of its children open in outline view?"""
481 class container_window(aetools
.NProperty
):
482 """container window - the main window for the container"""
485 class entire_contents(aetools
.NProperty
):
486 """entire contents - the entire contents of the container, including the contents of its children"""
489 class expandable(aetools
.NProperty
):
490 """expandable - Is the container capable of being expanded into outline view?"""
493 class expanded(aetools
.NProperty
):
494 """expanded - Is the container open in outline view?"""
497 class previous_list_view(aetools
.NProperty
):
498 """previous list view - the last non-icon view (by name, by date, etc.) selected for the container (forgotten as soon as the window is closed)"""
501 # repeated property selection the selection visible to the user
502 class view(aetools
.NProperty
):
503 """view - the view selected for the container (by icon, by name, by date, etc.)"""
506 # element 'dsut' as ['indx', 'name']
507 # element 'alia' as ['indx', 'name']
508 # element 'appf' as ['indx', 'name']
509 # element 'ctnr' as ['indx', 'name']
510 # element 'ccdv' as ['indx', 'name']
511 # element 'dafi' as ['indx', 'name']
512 # element 'docf' as ['indx', 'name']
513 # element 'file' as ['indx', 'name']
514 # element 'cfol' as ['indx', 'name']
515 # element 'fntf' as ['indx', 'name']
516 # element 'fsut' as ['indx', 'name']
517 # element 'cobj' as ['indx', 'name']
518 # element 'sctr' as ['indx', 'name']
519 # element 'sndf' as ['indx', 'name']
520 # element 'stcs' as ['indx', 'name']
522 containers
= container
524 class container_window(aetools
.ComponentItem
):
525 """container window - A window that contains items"""
527 class container(aetools
.NProperty
):
528 """container - the container this window is opened from"""
531 class disk(aetools
.NProperty
):
532 """disk - the disk on which the item this window was opened from is stored"""
535 class folder(aetools
.NProperty
):
536 """folder - the folder this window is opened from"""
539 class item(aetools
.NProperty
):
540 """item - the item this window is opened from"""
543 # repeated property previous_list_view the last non-icon view (by name, by date, etc.) selected for the window (forgotten as soon as the window is closed)
544 # repeated property selection the selection visible to the user
545 # repeated property view the view selected for the window (by icon, by name, by date, etc.)
546 # element 'dsut' as ['indx', 'name']
547 # element 'alia' as ['indx', 'name']
548 # element 'appf' as ['indx', 'name']
549 # element 'ctnr' as ['indx', 'name']
550 # element 'ccdv' as ['indx', 'name']
551 # element 'dafi' as ['indx', 'name']
552 # element 'docf' as ['indx', 'name']
553 # element 'file' as ['indx', 'name']
554 # element 'cfol' as ['indx', 'name']
555 # element 'fntf' as ['indx', 'name']
556 # element 'fsut' as ['indx', 'name']
557 # element 'cobj' as ['indx', 'name']
558 # element 'sctr' as ['indx', 'name']
559 # element 'sndf' as ['indx', 'name']
560 # element 'stcs' as ['indx', 'name']
562 container_windows
= container_window
564 class content_space(aetools
.ComponentItem
):
565 """content space - All windows, including the desktop window (³Window² does not include the desktop window)"""
568 content_spaces
= content_space
570 class control_panel(aetools
.ComponentItem
):
571 """control panel - A control panel"""
573 class calculate_folder_sizes(aetools
.NProperty
):
574 """calculate folder sizes - (Views) Are folder sizes calculated and displayed in Finder list windows?"""
577 class comment_heading(aetools
.NProperty
):
578 """comment heading - (Views) Are comments displayed in Finder list windows?"""
581 class date_heading(aetools
.NProperty
):
582 """date heading - (Views) Are modification dates displayed in Finder list windows?"""
585 class disk_information_heading(aetools
.NProperty
):
586 """disk information heading - (Views) Is information about the volume displayed in Finder list windows?"""
589 class icon_size(aetools
.NProperty
):
590 """icon size - (Views) the size of icons displayed in Finder list windows"""
593 class kind_heading(aetools
.NProperty
):
594 """kind heading - (Views) Are document kinds displayed in Finder list windows?"""
597 class label_heading(aetools
.NProperty
):
598 """label heading - (Views) Are labels displayed in Finder list windows?"""
601 class size_heading(aetools
.NProperty
):
602 """size heading - (Views) Are file sizes displayed in Finder list windows"""
605 class snap_to_grid(aetools
.NProperty
):
606 """snap to grid - (Views) Are items always snapped to the nearest grid point when they are moved?"""
609 class staggered_grid(aetools
.NProperty
):
610 """staggered grid - (Views) Are grid lines staggered?"""
613 class version_heading(aetools
.NProperty
):
614 """version heading - (Views) Are file versions displayed in Finder list windows?"""
617 class view_font(aetools
.NProperty
):
618 """view font - (Views) the id of the font used in Finder views"""
621 class view_font_size(aetools
.NProperty
):
622 """view font size - (Views) the size of the font used in Finder views"""
626 control_panels
= control_panel
628 class desk_accessory_file(aetools
.ComponentItem
):
629 """desk accessory file - A desk accessory file"""
632 desk_accessory_files
= desk_accessory_file
634 class desktop_2d_object(aetools
.ComponentItem
):
635 """desktop-object - Desktop-object is the class of the ³desktop² object"""
637 class startup_disk(aetools
.NProperty
):
638 """startup disk - the startup disk"""
641 class trash(aetools
.NProperty
):
642 """trash - the trash"""
645 # element 'dsut' as ['indx', 'name']
646 # element 'alia' as ['indx', 'name']
647 # element 'appf' as ['indx', 'name']
648 # element 'ctnr' as ['indx', 'name']
649 # element 'ccdv' as ['indx', 'name']
650 # element 'dafi' as ['indx', 'name']
651 # element 'docf' as ['indx', 'name']
652 # element 'file' as ['indx', 'name']
653 # element 'cfol' as ['indx', 'name']
654 # element 'fntf' as ['indx', 'name']
655 # element 'fsut' as ['indx', 'name']
656 # element 'cobj' as ['indx', 'name']
657 # element 'sctr' as ['indx', 'name']
658 # element 'sndf' as ['indx', 'name']
659 # element 'stcs' as ['indx', 'name']
661 class disk(aetools
.ComponentItem
):
664 class capacity(aetools
.NProperty
):
665 """capacity - the total number of bytes (free or used) on the disk"""
668 class ejectable(aetools
.NProperty
):
669 """ejectable - Can the media can be ejected (floppies, CD's, syquest)?"""
672 class free_space(aetools
.NProperty
):
673 """free space - the number of free bytes left on the disk"""
676 class local_volume(aetools
.NProperty
):
677 """local volume - Is the media is a local volume (rather than a file server)?"""
680 class startup(aetools
.NProperty
):
681 """startup - Is this disk the boot disk?"""
684 # element 'dsut' as ['indx', 'name']
685 # element 'alia' as ['indx', 'name']
686 # element 'appf' as ['indx', 'name']
687 # element 'ctnr' as ['indx', 'name']
688 # element 'ccdv' as ['indx', 'name']
689 # element 'dafi' as ['indx', 'name']
690 # element 'docf' as ['indx', 'name']
691 # element 'file' as ['indx', 'name']
692 # element 'cfol' as ['indx', 'ID ', 'name']
693 # element 'fntf' as ['indx', 'name']
694 # element 'fsut' as ['indx', 'name']
695 # element 'cobj' as ['indx', 'name']
696 # element 'sctr' as ['indx', 'name']
697 # element 'sndf' as ['indx', 'name']
698 # element 'stcs' as ['indx', 'name']
702 class document_file(aetools
.ComponentItem
):
703 """document file - A document file"""
706 document_files
= document_file
708 class file(aetools
.ComponentItem
):
711 class creator_type(aetools
.NProperty
):
712 """creator type - the OSType identifying the application that created the item"""
715 class file_type(aetools
.NProperty
):
716 """file type - the OSType identifying the type of data contained in the item"""
719 class locked(aetools
.NProperty
):
720 """locked - Is the file locked?"""
723 # repeated property product_version the version of the product (visible at the top of the ³Get Info² dialog)
724 class stationery(aetools
.NProperty
):
725 """stationery - Is the item a stationery pad?"""
728 # repeated property version the version of the file (visible at the bottom of the ³Get Info² dialog)
732 class folder(aetools
.ComponentItem
):
733 """folder - A folder"""
735 # element 'dsut' as ['indx', 'name']
736 # element 'alia' as ['indx', 'name']
737 # element 'appf' as ['indx', 'name']
738 # element 'ctnr' as ['indx', 'name']
739 # element 'ccdv' as ['indx', 'name']
740 # element 'dafi' as ['indx', 'name']
741 # element 'docf' as ['indx', 'name']
742 # element 'file' as ['indx', 'name']
743 # element 'cfol' as ['indx', 'name']
744 # element 'fntf' as ['indx', 'name']
745 # element 'fsut' as ['indx', 'name']
746 # element 'cobj' as ['indx', 'name']
747 # element 'sctr' as ['indx', 'name']
748 # element 'sndf' as ['indx', 'name']
749 # element 'stcs' as ['indx', 'name']
753 class font_file(aetools
.ComponentItem
):
754 """font file - A font file"""
757 font_files
= font_file
759 class font_suitcase(aetools
.ComponentItem
):
760 """font suitcase - A font suitcase"""
762 # element 'cobj' as ['indx', 'name']
764 font_suitcases
= font_suitcase
766 class group(aetools
.ComponentItem
):
767 """group - A Group in the Users and Groups control panel"""
769 class bounds(aetools
.NProperty
):
770 """bounds - the bounding rectangle of the group"""
773 class icon(aetools
.NProperty
):
774 """icon - the icon bitmap of the group"""
777 class label_index(aetools
.NProperty
):
778 """label index - the label of the group"""
781 class name(aetools
.NProperty
):
782 """name - the name of the group"""
785 class position(aetools
.NProperty
):
786 """position - the position of the group within its parent window"""
792 class information_window(aetools
.ComponentItem
):
793 """information window - An information window (opened by ³Get InfoŠ²)"""
795 class comment(aetools
.NProperty
):
796 """comment - the comment"""
799 class creation_date(aetools
.NProperty
):
800 """creation date - the date on which the item was created"""
803 # repeated property icon the icon bitmap of the item
804 # repeated property item the item this window was opened from
805 # repeated property locked Is the item locked?
806 # repeated property minimum_partition_size the smallest memory size that the application can possibly be launched with
807 class modification_date(aetools
.NProperty
):
808 """modification date - the date on which the item was last modified"""
811 # repeated property partition_size the memory size that the application will be launched with
812 class physical_size(aetools
.NProperty
):
813 """physical size - the actual space used by the item on disk"""
816 # repeated property product_version the version of the product (visible at the top of the ³Get Info² dialog)
817 class size(aetools
.NProperty
):
818 """size - the logical size of the item"""
821 # repeated property stationery Is the item a stationery pad?
822 # repeated property suggested_partition_size the memory size that the developer recommends that the application should be launched with
823 # repeated property version the version of the file (visible at the bottom of the ³Get Info² dialog)
824 class warn_before_emptying(aetools
.NProperty
):
825 """warn before emptying - Is a dialog displayed when ³Empty trashŠ² is selected?"""
829 information_windows
= information_window
831 class item(aetools
.ComponentItem
):
834 # repeated property bounds the bounding rectangle of the item
835 # repeated property comment the comment displayed in the ³Get Info² window of the item
836 # repeated property container the container of this item
837 class content_space(aetools
.NProperty
):
838 """content space - the window that would open if the item was opened"""
841 # repeated property creation_date the date on which the item was created
842 # repeated property disk the disk on which the item is stored
843 # repeated property folder the folder in which the item is stored
844 # repeated property icon the icon bitmap of the item
845 class id(aetools
.NProperty
):
846 """id - an id that identifies the item"""
849 class information_window(aetools
.NProperty
):
850 """information window - the information window for the item"""
853 class kind(aetools
.NProperty
):
854 """kind - the kind of the item"""
857 # repeated property label_index the label of the item
858 # repeated property modification_date the date on which the item was last modified
859 # repeated property name the name of the item
860 # repeated property physical_size the actual space used by the item on disk
861 # repeated property position the position of the item within its parent window
862 class selected(aetools
.NProperty
):
863 """selected - Is the item selected?"""
866 # repeated property size the logical size of the item
867 class window(aetools
.NProperty
):
868 """window - the window that would open if the item was opened"""
874 class process(aetools
.ComponentItem
):
875 """process - A process running on this Macintosh"""
877 # repeated property creator_type the creator type of this process
878 class file(aetools
.NProperty
):
879 """file - the file that launched this process"""
882 # repeated property file_type the file type of the file that launched this process
883 # repeated property frontmost Is this the frontmost application?
884 # repeated property name the name of the process
885 # repeated property partition_size the size of the partition that this application was launched with
886 class partition_space_used(aetools
.NProperty
):
887 """partition space used - the number of bytes currently used in this partition"""
890 class remote_events(aetools
.NProperty
):
891 """remote events - Will this process accepts remote events?"""
894 # repeated property scriptable Is this process high-level event aware (accepts open application, open document, print document, and quit)?
895 # repeated property visible Is this process' layer visible?
899 class sharable_container(aetools
.ComponentItem
):
900 """sharable container - A container that may be shared (disks and folders)"""
902 class exported(aetools
.NProperty
):
903 """exported - Is this folder a share point or inside a share point?"""
906 class group(aetools
.NProperty
):
907 """group - the user or group that has special access to the folder"""
910 class group_privileges(aetools
.NProperty
):
911 """group privileges - the see folders/see files/make changes privileges for the group"""
914 class guest_privileges(aetools
.NProperty
):
915 """guest privileges - the see folders/see files/make changes privileges for everyone"""
918 class inherited_privileges(aetools
.NProperty
):
919 """inherited privileges - Are the privileges of this item always the same as the container it is stored in?"""
922 class mounted(aetools
.NProperty
):
923 """mounted - Is this folder mounted on another machine's desktop?"""
926 class owner(aetools
.NProperty
):
927 """owner - the user that owns this folder"""
930 class owner_privileges(aetools
.NProperty
):
931 """owner privileges - the see folders/see files/make changes privileges for the owner"""
934 class protected(aetools
.NProperty
):
935 """protected - Is container protected from being moved, renamed or deleted?"""
938 class shared(aetools
.NProperty
):
939 """shared - Is container a share point?"""
942 class sharing_window(aetools
.NProperty
):
943 """sharing window - the sharing window for the container"""
946 # element 'dsut' as ['indx', 'name']
947 # element 'alia' as ['indx', 'name']
948 # element 'appf' as ['indx', 'name']
949 # element 'ctnr' as ['indx', 'name']
950 # element 'ccdv' as ['indx', 'name']
951 # element 'dafi' as ['indx', 'name']
952 # element 'docf' as ['indx', 'name']
953 # element 'file' as ['indx', 'name']
954 # element 'cfol' as ['indx', 'name']
955 # element 'fntf' as ['indx', 'name']
956 # element 'fsut' as ['indx', 'name']
957 # element 'cobj' as ['indx', 'name']
958 # element 'sctr' as ['indx', 'name']
959 # element 'sndf' as ['indx', 'name']
960 # element 'stcs' as ['indx', 'name']
962 sharable_containers
= sharable_container
964 class sharing_privileges(aetools
.ComponentItem
):
965 """sharing privileges - A set of sharing properties"""
967 class make_changes(aetools
.NProperty
):
968 """make changes - privileges to make changes"""
971 class see_files(aetools
.NProperty
):
972 """see files - privileges to see files"""
975 class see_folders(aetools
.NProperty
):
976 """see folders - privileges to see folders"""
980 class sharing_window(aetools
.ComponentItem
):
981 """sharing window - A sharing window (opened by ³SharingŠ²)"""
983 # repeated property container the container that this window was opened from
984 # repeated property exported Is this container a share point or inside a share point?
985 # repeated property folder the folder that this window was opened from
986 # repeated property group the user or group that has special access to the container
987 # repeated property group_privileges the see folders/see files/make changes privileges for the group
988 # repeated property guest_privileges the see folders/see files/make changes privileges for everyone
989 # repeated property inherited_privileges Are the privileges of this item always the same as the container it is stored in?
990 # repeated property item the item that this window was opened from
991 # repeated property mounted Is this container mounted on another machine's desktop?
992 # repeated property owner the user that owns the container
993 # repeated property owner_privileges the see folders/see files/make changes privileges for the owner
994 # repeated property protected Is container protected from being moved, renamed or deleted?
995 class sharable_container(aetools
.NProperty
):
996 """sharable container - the sharable container that this window was opened from"""
999 # repeated property shared Is container a share point?
1001 sharing_windows
= sharing_window
1003 class sound_file(aetools
.ComponentItem
):
1004 """sound file - This class represents sound files"""
1007 sound_files
= sound_file
1009 class status_window(aetools
.ComponentItem
):
1010 """status window - These windows are progress dialogs (copy window, rebuild desktop database, empty trash)"""
1013 status_windows
= status_window
1015 class suitcase(aetools
.ComponentItem
):
1016 """suitcase - A font or desk accessory suitcase"""
1018 # element 'cobj' as ['indx', 'name']
1020 suitcases
= suitcase
1022 class trash_2d_object(aetools
.ComponentItem
):
1023 """trash-object - Trash-object is the class of the ³trash² object"""
1025 # repeated property warn_before_emptying Is a dialog displayed when ³Empty trashŠ² is selected?
1026 # element 'dsut' as ['indx', 'name']
1027 # element 'alia' as ['indx', 'name']
1028 # element 'appf' as ['indx', 'name']
1029 # element 'ctnr' as ['indx', 'name']
1030 # element 'ccdv' as ['indx', 'name']
1031 # element 'dafi' as ['indx', 'name']
1032 # element 'docf' as ['indx', 'name']
1033 # element 'file' as ['indx', 'name']
1034 # element 'cfol' as ['indx', 'name']
1035 # element 'fntf' as ['indx', 'name']
1036 # element 'fsut' as ['indx', 'name']
1037 # element 'cobj' as ['indx', 'name']
1038 # element 'sctr' as ['indx', 'name']
1039 # element 'sndf' as ['indx', 'name']
1040 # element 'stcs' as ['indx', 'name']
1042 class user(aetools
.ComponentItem
):
1043 """user - A User in the Users and Groups control panel"""
1045 # repeated property bounds the bounding rectangle of the user
1046 # repeated property icon the icon bitmap of the user
1047 # repeated property label_index the label of the user
1048 # repeated property name the name of the user
1049 # repeated property position the position of the user within its parent window
1053 class window(aetools
.ComponentItem
):
1054 """window - A window"""
1058 accessory_process
._propdict
= {
1059 'desk_accessory_file' : desk_accessory_file
,
1061 accessory_process
._elemdict
= {
1063 accessory_suitcase
._propdict
= {
1065 accessory_suitcase
._elemdict
= {
1068 alias_file
._propdict
= {
1069 'original_item' : original_item
,
1071 alias_file
._elemdict
= {
1073 application
._propdict
= {
1074 'about_this_macintosh' : about_this_macintosh
,
1075 'apple_menu_items_folder' : apple_menu_items_folder
,
1076 'clipboard' : clipboard
,
1077 'control_panels_folder' : control_panels_folder
,
1078 'desktop' : desktop
,
1079 'extensions_folder' : extensions_folder
,
1080 'file_sharing' : file_sharing
,
1081 'fonts_folder' : fonts_folder
,
1082 'frontmost' : frontmost
,
1083 'insertion_location' : insertion_location
,
1084 'largest_free_block' : largest_free_block
,
1085 'preferences_folder' : preferences_folder
,
1086 'product_version' : product_version
,
1087 'selection' : selection
,
1088 'sharing_starting_up' : sharing_starting_up
,
1089 'shortcuts' : shortcuts
,
1090 'shutdown_items_folder' : shutdown_items_folder
,
1091 'startup_items_folder' : startup_items_folder
,
1092 'system_folder' : system_folder
,
1093 'temporary_items_folder' : temporary_items_folder
,
1094 'version' : version
,
1095 'view_preferences' : view_preferences
,
1096 'visible' : visible
,
1098 application
._elemdict
= {
1099 'accessory_suitcase' : accessory_suitcase
,
1100 'alias_file' : alias_file
,
1101 'application_file' : application_file
,
1102 'container' : container
,
1103 'container_window' : container_window
,
1104 'content_space' : content_space
,
1105 'control_panel' : control_panel
,
1106 'desk_accessory_file' : desk_accessory_file
,
1107 'desktop_2d_object' : desktop_2d_object
,
1109 'document_file' : document_file
,
1112 'font_file' : font_file
,
1113 'font_suitcase' : font_suitcase
,
1114 'information_window' : information_window
,
1116 'sharable_container' : sharable_container
,
1117 'sharing_window' : sharing_window
,
1118 'sound_file' : sound_file
,
1119 'suitcase' : suitcase
,
1120 'trash_2d_object' : trash_2d_object
,
1123 application_file
._propdict
= {
1124 'minimum_partition_size' : minimum_partition_size
,
1125 'partition_size' : partition_size
,
1126 'scriptable' : scriptable
,
1127 'suggested_partition_size' : suggested_partition_size
,
1129 application_file
._elemdict
= {
1131 application_process
._propdict
= {
1132 'application_file' : application_file
,
1134 application_process
._elemdict
= {
1136 container
._propdict
= {
1137 'completely_expanded' : completely_expanded
,
1138 'container_window' : container_window
,
1139 'entire_contents' : entire_contents
,
1140 'expandable' : expandable
,
1141 'expanded' : expanded
,
1142 'previous_list_view' : previous_list_view
,
1143 'selection' : selection
,
1146 container
._elemdict
= {
1147 'accessory_suitcase' : accessory_suitcase
,
1148 'alias_file' : alias_file
,
1149 'application_file' : application_file
,
1150 'container' : container
,
1151 'control_panel' : control_panel
,
1152 'desk_accessory_file' : desk_accessory_file
,
1153 'document_file' : document_file
,
1156 'font_file' : font_file
,
1157 'font_suitcase' : font_suitcase
,
1159 'sharable_container' : sharable_container
,
1160 'sound_file' : sound_file
,
1161 'suitcase' : suitcase
,
1163 container_window
._propdict
= {
1164 'container' : container
,
1168 'previous_list_view' : previous_list_view
,
1169 'selection' : selection
,
1172 container_window
._elemdict
= {
1173 'accessory_suitcase' : accessory_suitcase
,
1174 'alias_file' : alias_file
,
1175 'application_file' : application_file
,
1176 'container' : container
,
1177 'control_panel' : control_panel
,
1178 'desk_accessory_file' : desk_accessory_file
,
1179 'document_file' : document_file
,
1182 'font_file' : font_file
,
1183 'font_suitcase' : font_suitcase
,
1185 'sharable_container' : sharable_container
,
1186 'sound_file' : sound_file
,
1187 'suitcase' : suitcase
,
1189 content_space
._propdict
= {
1191 content_space
._elemdict
= {
1193 control_panel
._propdict
= {
1194 'calculate_folder_sizes' : calculate_folder_sizes
,
1195 'comment_heading' : comment_heading
,
1196 'date_heading' : date_heading
,
1197 'disk_information_heading' : disk_information_heading
,
1198 'icon_size' : icon_size
,
1199 'kind_heading' : kind_heading
,
1200 'label_heading' : label_heading
,
1201 'size_heading' : size_heading
,
1202 'snap_to_grid' : snap_to_grid
,
1203 'staggered_grid' : staggered_grid
,
1204 'version_heading' : version_heading
,
1205 'view_font' : view_font
,
1206 'view_font_size' : view_font_size
,
1208 control_panel
._elemdict
= {
1210 desk_accessory_file
._propdict
= {
1212 desk_accessory_file
._elemdict
= {
1214 desktop_2d_object
._propdict
= {
1215 'startup_disk' : startup_disk
,
1218 desktop_2d_object
._elemdict
= {
1219 'accessory_suitcase' : accessory_suitcase
,
1220 'alias_file' : alias_file
,
1221 'application_file' : application_file
,
1222 'container' : container
,
1223 'control_panel' : control_panel
,
1224 'desk_accessory_file' : desk_accessory_file
,
1225 'document_file' : document_file
,
1228 'font_file' : font_file
,
1229 'font_suitcase' : font_suitcase
,
1231 'sharable_container' : sharable_container
,
1232 'sound_file' : sound_file
,
1233 'suitcase' : suitcase
,
1236 'capacity' : capacity
,
1237 'ejectable' : ejectable
,
1238 'free_space' : free_space
,
1239 'local_volume' : local_volume
,
1240 'startup' : startup
,
1243 'accessory_suitcase' : accessory_suitcase
,
1244 'alias_file' : alias_file
,
1245 'application_file' : application_file
,
1246 'container' : container
,
1247 'control_panel' : control_panel
,
1248 'desk_accessory_file' : desk_accessory_file
,
1249 'document_file' : document_file
,
1252 'font_file' : font_file
,
1253 'font_suitcase' : font_suitcase
,
1255 'sharable_container' : sharable_container
,
1256 'sound_file' : sound_file
,
1257 'suitcase' : suitcase
,
1259 document_file
._propdict
= {
1261 document_file
._elemdict
= {
1264 'creator_type' : creator_type
,
1265 'file_type' : file_type
,
1267 'product_version' : product_version
,
1268 'stationery' : stationery
,
1269 'version' : version
,
1273 folder
._propdict
= {
1275 folder
._elemdict
= {
1276 'accessory_suitcase' : accessory_suitcase
,
1277 'alias_file' : alias_file
,
1278 'application_file' : application_file
,
1279 'container' : container
,
1280 'control_panel' : control_panel
,
1281 'desk_accessory_file' : desk_accessory_file
,
1282 'document_file' : document_file
,
1285 'font_file' : font_file
,
1286 'font_suitcase' : font_suitcase
,
1288 'sharable_container' : sharable_container
,
1289 'sound_file' : sound_file
,
1290 'suitcase' : suitcase
,
1292 font_file
._propdict
= {
1294 font_file
._elemdict
= {
1296 font_suitcase
._propdict
= {
1298 font_suitcase
._elemdict
= {
1304 'label_index' : label_index
,
1306 'position' : position
,
1310 information_window
._propdict
= {
1311 'comment' : comment
,
1312 'creation_date' : creation_date
,
1316 'minimum_partition_size' : minimum_partition_size
,
1317 'modification_date' : modification_date
,
1318 'partition_size' : partition_size
,
1319 'physical_size' : physical_size
,
1320 'product_version' : product_version
,
1322 'stationery' : stationery
,
1323 'suggested_partition_size' : suggested_partition_size
,
1324 'version' : version
,
1325 'warn_before_emptying' : warn_before_emptying
,
1327 information_window
._elemdict
= {
1331 'comment' : comment
,
1332 'container' : container
,
1333 'content_space' : content_space
,
1334 'creation_date' : creation_date
,
1339 'information_window' : information_window
,
1341 'label_index' : label_index
,
1342 'modification_date' : modification_date
,
1344 'physical_size' : physical_size
,
1345 'position' : position
,
1346 'selected' : selected
,
1352 process
._propdict
= {
1353 'creator_type' : creator_type
,
1355 'file_type' : file_type
,
1356 'frontmost' : frontmost
,
1358 'partition_size' : partition_size
,
1359 'partition_space_used' : partition_space_used
,
1360 'remote_events' : remote_events
,
1361 'scriptable' : scriptable
,
1362 'visible' : visible
,
1364 process
._elemdict
= {
1366 sharable_container
._propdict
= {
1367 'exported' : exported
,
1369 'group_privileges' : group_privileges
,
1370 'guest_privileges' : guest_privileges
,
1371 'inherited_privileges' : inherited_privileges
,
1372 'mounted' : mounted
,
1374 'owner_privileges' : owner_privileges
,
1375 'protected' : protected
,
1377 'sharing_window' : sharing_window
,
1379 sharable_container
._elemdict
= {
1380 'accessory_suitcase' : accessory_suitcase
,
1381 'alias_file' : alias_file
,
1382 'application_file' : application_file
,
1383 'container' : container
,
1384 'control_panel' : control_panel
,
1385 'desk_accessory_file' : desk_accessory_file
,
1386 'document_file' : document_file
,
1389 'font_file' : font_file
,
1390 'font_suitcase' : font_suitcase
,
1392 'sharable_container' : sharable_container
,
1393 'sound_file' : sound_file
,
1394 'suitcase' : suitcase
,
1396 sharing_privileges
._propdict
= {
1397 'make_changes' : make_changes
,
1398 'see_files' : see_files
,
1399 'see_folders' : see_folders
,
1401 sharing_privileges
._elemdict
= {
1403 sharing_window
._propdict
= {
1404 'container' : container
,
1405 'exported' : exported
,
1408 'group_privileges' : group_privileges
,
1409 'guest_privileges' : guest_privileges
,
1410 'inherited_privileges' : inherited_privileges
,
1412 'mounted' : mounted
,
1414 'owner_privileges' : owner_privileges
,
1415 'protected' : protected
,
1416 'sharable_container' : sharable_container
,
1419 sharing_window
._elemdict
= {
1421 sound_file
._propdict
= {
1423 sound_file
._elemdict
= {
1425 status_window
._propdict
= {
1427 status_window
._elemdict
= {
1429 suitcase
._propdict
= {
1431 suitcase
._elemdict
= {
1434 trash_2d_object
._propdict
= {
1435 'warn_before_emptying' : warn_before_emptying
,
1437 trash_2d_object
._elemdict
= {
1438 'accessory_suitcase' : accessory_suitcase
,
1439 'alias_file' : alias_file
,
1440 'application_file' : application_file
,
1441 'container' : container
,
1442 'control_panel' : control_panel
,
1443 'desk_accessory_file' : desk_accessory_file
,
1444 'document_file' : document_file
,
1447 'font_file' : font_file
,
1448 'font_suitcase' : font_suitcase
,
1450 'sharable_container' : sharable_container
,
1451 'sound_file' : sound_file
,
1452 'suitcase' : suitcase
,
1457 'label_index' : label_index
,
1459 'position' : position
,
1463 window
._propdict
= {
1465 window
._elemdict
= {
1468 'conflicts' : 'cflc', #
1469 'existing_items' : 'exsi', #
1470 'small_icon' : 'smic', #
1478 'hardware' : 'hdwr', #
1479 'operating_system' : 'os ', #
1480 'sound_system' : 'snd ', #
1481 'memory_available' : 'lram', #
1482 'memory_installed' : 'ram ', #
1487 # Indices of types declared in this module
1489 _classdeclarations
= {
1490 'swnd' : sharing_window
,
1491 'iwnd' : information_window
,
1492 'ccdv' : control_panel
,
1493 'cwnd' : container_window
,
1494 'appf' : application_file
,
1498 'dafi' : desk_accessory_file
,
1500 'alia' : alias_file
,
1502 'qwnd' : status_window
,
1503 'fsut' : font_suitcase
,
1504 'sndf' : sound_file
,
1505 'priv' : sharing_privileges
,
1506 'dwnd' : content_space
,
1507 'pcap' : application_process
,
1509 'ctrs' : trash_2d_object
,
1513 'cdsk' : desktop_2d_object
,
1514 'pcda' : accessory_process
,
1515 'capp' : application
,
1517 'sctr' : sharable_container
,
1518 'dsut' : accessory_suitcase
,
1519 'docf' : document_file
,
1523 _propdeclarations
= {
1524 'swnd' : sharing_window
,
1525 'fshr' : file_sharing
,
1527 'pusd' : partition_space_used
,
1528 'fcrt' : creator_type
,
1529 'sdat' : date_heading
,
1530 'sdin' : disk_information_heading
,
1531 'strt' : startup_items_folder
,
1534 'slbl' : label_heading
,
1538 'pexc' : completely_expanded
,
1539 'pexa' : expandable
,
1541 'svew' : previous_list_view
,
1542 'labi' : label_index
,
1543 'sctr' : sharable_container
,
1544 'sknd' : kind_heading
,
1546 'fstg' : staggered_grid
,
1547 'macs' : system_folder
,
1548 'vfsz' : view_font_size
,
1552 'amnu' : apple_menu_items_folder
,
1553 'pvwp' : view_preferences
,
1556 'mprt' : minimum_partition_size
,
1561 'sprt' : suggested_partition_size
,
1564 'ffnt' : fonts_folder
,
1566 'sdsk' : startup_disk
,
1568 'dwnd' : content_space
,
1570 'sfsz' : calculate_folder_sizes
,
1572 'prvw' : make_changes
,
1573 'iprv' : inherited_privileges
,
1575 'prvs' : see_folders
,
1576 'phys' : physical_size
,
1577 'ctrl' : control_panels_folder
,
1578 'cwnd' : container_window
,
1579 'extn' : extensions_folder
,
1580 'ownr' : owner_privileges
,
1581 'modd' : modification_date
,
1582 'dafi' : desk_accessory_file
,
1584 'temp' : temporary_items_folder
,
1585 'fgrd' : snap_to_grid
,
1589 'abbx' : about_this_macintosh
,
1592 'svrs' : version_heading
,
1594 'warn' : warn_before_emptying
,
1595 'isab' : scriptable
,
1596 'isrv' : local_volume
,
1598 'shdf' : shutdown_items_folder
,
1599 'gstp' : guest_privileges
,
1601 'appf' : application_file
,
1602 'iwnd' : information_window
,
1603 'revt' : remote_events
,
1604 'frsp' : free_space
,
1606 'pspd' : stationery
,
1607 'scom' : comment_heading
,
1608 'pins' : insertion_location
,
1609 'orig' : original_item
,
1610 'pref' : preferences_folder
,
1611 'fsup' : sharing_starting_up
,
1614 'mfre' : largest_free_block
,
1615 'ssiz' : size_heading
,
1617 'appt' : partition_size
,
1618 'gppr' : group_privileges
,
1620 'ects' : entire_contents
,
1622 'ver2' : product_version
,
1623 'crtd' : creation_date
,
1626 _compdeclarations
= {
1629 _enumdeclarations
= {
1630 'gsen' : _Enum_gsen
,
1631 'vwby' : _Enum_vwby
,