home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / MacHacksBug / Python 1.5.2c1 / Mac / Lib / lib-scripting / Finder_Suite.py < prev    next >
Encoding:
Python Source  |  2000-06-23  |  50.6 KB  |  1,633 lines

  1. """Suite Finder Suite: Objects and Events for the Finder
  2. Level 1, version 1
  3.  
  4. Generated from flap:System Folder:Extensions:Finder Scripting Extension
  5. AETE/AEUT resource version 0/144, language 0, script 0
  6. """
  7.  
  8. import aetools
  9. import MacOS
  10.  
  11. _code = 'fndr'
  12.  
  13. class Finder_Suite:
  14.  
  15.     _argmap_clean_up = {
  16.         'by' : 'by  ',
  17.     }
  18.  
  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
  24.         """
  25.         _code = 'fndr'
  26.         _subcode = 'fclu'
  27.  
  28.         aetools.keysubst(_arguments, self._argmap_clean_up)
  29.         _arguments['----'] = _object
  30.  
  31.  
  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['----']
  39.  
  40.     _argmap_computer = {
  41.         'has' : 'has ',
  42.     }
  43.  
  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
  50.         """
  51.         _code = 'fndr'
  52.         _subcode = 'gstl'
  53.  
  54.         aetools.keysubst(_arguments, self._argmap_computer)
  55.         _arguments['----'] = _object
  56.  
  57.  
  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['----']
  65.  
  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
  70.         """
  71.         _code = 'fndr'
  72.         _subcode = 'ejct'
  73.  
  74.         if _arguments: raise TypeError, 'No optional args expected'
  75.         _arguments['----'] = _object
  76.  
  77.  
  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['----']
  85.  
  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
  90.         """
  91.         _code = 'fndr'
  92.         _subcode = 'empt'
  93.  
  94.         if _arguments: raise TypeError, 'No optional args expected'
  95.         _arguments['----'] = _object
  96.  
  97.  
  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['----']
  105.  
  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
  110.         """
  111.         _code = 'fndr'
  112.         _subcode = 'fera'
  113.  
  114.         if _arguments: raise TypeError, 'No optional args expected'
  115.         _arguments['----'] = _object
  116.  
  117.  
  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['----']
  125.  
  126.     _argmap_put_away = {
  127.         'items' : 'fsel',
  128.     }
  129.  
  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
  136.         """
  137.         _code = 'fndr'
  138.         _subcode = 'ptwy'
  139.  
  140.         aetools.keysubst(_arguments, self._argmap_put_away)
  141.         _arguments['----'] = _object
  142.  
  143.  
  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['----']
  151.  
  152.     def restart(self, _no_object=None, _attributes={}, **_arguments):
  153.         """restart: Restart the Macintosh
  154.         Keyword argument _attributes: AppleEvent attribute dictionary
  155.         """
  156.         _code = 'fndr'
  157.         _subcode = 'rest'
  158.  
  159.         if _arguments: raise TypeError, 'No optional args expected'
  160.         if _no_object != None: raise TypeError, 'No direct arg expected'
  161.  
  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.     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
  175.         """
  176.         _code = 'misc'
  177.         _subcode = 'mvis'
  178.  
  179.         if _arguments: raise TypeError, 'No optional args expected'
  180.         _arguments['----'] = _object
  181.  
  182.  
  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['----']
  190.  
  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
  195.         """
  196.         _code = 'misc'
  197.         _subcode = 'slct'
  198.  
  199.         if _arguments: raise TypeError, 'No optional args expected'
  200.         _arguments['----'] = _object
  201.  
  202.  
  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['----']
  210.  
  211.     def shut_down(self, _no_object=None, _attributes={}, **_arguments):
  212.         """shut down: Shut Down the Macintosh
  213.         Keyword argument _attributes: AppleEvent attribute dictionary
  214.         """
  215.         _code = 'fndr'
  216.         _subcode = 'shut'
  217.  
  218.         if _arguments: raise TypeError, 'No optional args expected'
  219.         if _no_object != None: raise TypeError, 'No direct arg expected'
  220.  
  221.  
  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['----']
  229.  
  230.     def sleep(self, _no_object=None, _attributes={}, **_arguments):
  231.         """sleep: Sleep the Macintosh
  232.         Keyword argument _attributes: AppleEvent attribute dictionary
  233.         """
  234.         _code = 'fndr'
  235.         _subcode = 'snoz'
  236.  
  237.         if _arguments: raise TypeError, 'No optional args expected'
  238.         if _no_object != None: raise TypeError, 'No direct arg expected'
  239.  
  240.  
  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['----']
  248.  
  249.     _argmap_sort = {
  250.         'by' : 'by  ',
  251.     }
  252.  
  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
  259.         """
  260.         _code = 'DATA'
  261.         _subcode = 'SORT'
  262.  
  263.         aetools.keysubst(_arguments, self._argmap_sort)
  264.         _arguments['----'] = _object
  265.  
  266.  
  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['----']
  274.  
  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
  279.         """
  280.         _code = 'fndr'
  281.         _subcode = 'fupd'
  282.  
  283.         if _arguments: raise TypeError, 'No optional args expected'
  284.         _arguments['----'] = _object
  285.  
  286.  
  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['----']
  294.  
  295.  
  296. class accessory_process(aetools.ComponentItem):
  297.     """accessory process - A process launched from a desk accessory file"""
  298.     want = 'pcda'
  299. class desk_accessory_file(aetools.NProperty):
  300.     """desk accessory file - the desk accessory file from which this process was launched"""
  301.     which = 'dafi'
  302.     want = 'obj '
  303.  
  304. accessory_processes = accessory_process
  305.  
  306. class accessory_suitcase(aetools.ComponentItem):
  307.     """accessory suitcase - A desk accessory suitcase"""
  308.     want = 'dsut'
  309. #        element 'cobj' as ['indx', 'name']
  310.  
  311. accessory_suitcases = accessory_suitcase
  312.  
  313. class alias_file(aetools.ComponentItem):
  314.     """alias file - An alias file (created with “Make Alias”)"""
  315.     want = 'alia'
  316. class original_item(aetools.NProperty):
  317.     """original item - the original item pointed to by the alias"""
  318.     which = 'orig'
  319.     want = 'obj '
  320.  
  321. alias_files = alias_file
  322.  
  323. class application(aetools.ComponentItem):
  324.     """application - An application program"""
  325.     want = 'capp'
  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"""
  328.     which = 'abbx'
  329.     want = 'obj '
  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"""
  332.     which = 'amnu'
  333.     want = 'obj '
  334. class clipboard(aetools.NProperty):
  335.     """clipboard - the Finder's clipboard window"""
  336.     which = 'pcli'
  337.     want = 'obj '
  338. class control_panels_folder(aetools.NProperty):
  339.     """control panels folder - the special folder “Control Panels”"""
  340.     which = 'ctrl'
  341.     want = 'obj '
  342. class desktop(aetools.NProperty):
  343.     """desktop - the desktop"""
  344.     which = 'desk'
  345.     want = 'obj '
  346. class extensions_folder(aetools.NProperty):
  347.     """extensions folder - the special folder “Extensions”"""
  348.     which = 'extn'
  349.     want = 'obj '
  350. class file_sharing(aetools.NProperty):
  351.     """file sharing - Is file sharing on?"""
  352.     which = 'fshr'
  353.     want = 'bool'
  354. class fonts_folder(aetools.NProperty):
  355.     """fonts folder - the special folder “Fonts”"""
  356.     which = 'ffnt'
  357.     want = 'obj '
  358. class frontmost(aetools.NProperty):
  359.     """frontmost - Is this the frontmost application?"""
  360.     which = 'pisf'
  361.     want = 'bool'
  362. class insertion_location(aetools.NProperty):
  363.     """insertion location - the container that a new folder would appear in if “New Folder” was selected"""
  364.     which = 'pins'
  365.     want = 'obj '
  366. class largest_free_block(aetools.NProperty):
  367.     """largest free block - the largest free block of process memory available to launch an application"""
  368.     which = 'mfre'
  369.     want = 'long'
  370. class preferences_folder(aetools.NProperty):
  371.     """preferences folder - the special folder “Preferences”"""
  372.     which = 'pref'
  373.     want = 'obj '
  374. class product_version(aetools.NProperty):
  375.     """product version - the version of the System software running on this Macintosh"""
  376.     which = 'ver2'
  377.     want = 'itxt'
  378. class selection(aetools.NProperty):
  379.     """selection - the selection visible to the user"""
  380.     which = 'sele'
  381.     want = 'obj '
  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)?"""
  384.     which = 'fsup'
  385.     want = 'bool'
  386. class shortcuts(aetools.NProperty):
  387.     """shortcuts - the “Finder Shortcuts” item in the Finder's help menu"""
  388.     which = 'scut'
  389.     want = 'obj '
  390. class shutdown_items_folder(aetools.NProperty):
  391.     """shutdown items folder - the special folder “Shutdown Items”"""
  392.     which = 'shdf'
  393.     want = 'obj '
  394. class startup_items_folder(aetools.NProperty):
  395.     """startup items folder - the special folder “Startup Items”"""
  396.     which = 'strt'
  397.     want = 'obj '
  398. class system_folder(aetools.NProperty):
  399.     """system folder - the System folder"""
  400.     which = 'macs'
  401.     want = 'obj '
  402. class temporary_items_folder(aetools.NProperty):
  403.     """temporary items folder - the special folder “Temporary Items” (invisible)"""
  404.     which = 'temp'
  405.     want = 'obj '
  406. class version(aetools.NProperty):
  407.     """version - the version of the Finder Scripting Extension"""
  408.     which = 'vers'
  409.     want = 'itxt'
  410. class view_preferences(aetools.NProperty):
  411.     """view preferences - the view preferences control panel"""
  412.     which = 'pvwp'
  413.     want = 'obj '
  414. class visible(aetools.NProperty):
  415.     """visible - Is the Finder's layer visible?"""
  416.     which = 'pvis'
  417.     want = 'bool'
  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']
  441.  
  442. class application_file(aetools.ComponentItem):
  443.     """application file - An application's file on disk"""
  444.     want = 'appf'
  445. class minimum_partition_size(aetools.NProperty):
  446.     """minimum partition size - the smallest memory size that the application can possibly be launched with"""
  447.     which = 'mprt'
  448.     want = 'long'
  449. class partition_size(aetools.NProperty):
  450.     """partition size - the memory size that the application will be launched with"""
  451.     which = 'appt'
  452.     want = 'long'
  453. class scriptable(aetools.NProperty):
  454.     """scriptable - Is this application high-level event aware (accepts open application, open document, print document, and quit)?"""
  455.     which = 'isab'
  456.     want = 'bool'
  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"""
  459.     which = 'sprt'
  460.     want = 'long'
  461.  
  462. application_files = application_file
  463.  
  464. class application_process(aetools.ComponentItem):
  465.     """application process - A process launched from an application file"""
  466.     want = 'pcap'
  467. class application_file(aetools.NProperty):
  468.     """application file - the application file from which this process was launched"""
  469.     which = 'appf'
  470.     want = 'appf'
  471.  
  472. application_processes = application_process
  473.  
  474. class container(aetools.ComponentItem):
  475.     """container - An item that contains other items"""
  476.     want = 'ctnr'
  477. class completely_expanded(aetools.NProperty):
  478.     """completely expanded - Is the container and all of its children open in outline view?"""
  479.     which = 'pexc'
  480.     want = 'bool'
  481. class container_window(aetools.NProperty):
  482.     """container window - the main window for the container"""
  483.     which = 'cwnd'
  484.     want = 'obj '
  485. class entire_contents(aetools.NProperty):
  486.     """entire contents - the entire contents of the container, including the contents of its children"""
  487.     which = 'ects'
  488.     want = 'obj '
  489. class expandable(aetools.NProperty):
  490.     """expandable - Is the container capable of being expanded into outline view?"""
  491.     which = 'pexa'
  492.     want = 'bool'
  493. class expanded(aetools.NProperty):
  494.     """expanded - Is the container open in outline view?"""
  495.     which = 'pexp'
  496.     want = 'bool'
  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)"""
  499.     which = 'svew'
  500.     want = 'long'
  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.)"""
  504.     which = 'pvew'
  505.     want = 'long'
  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']
  521.  
  522. containers = container
  523.  
  524. class container_window(aetools.ComponentItem):
  525.     """container window - A window that contains items"""
  526.     want = 'cwnd'
  527. class container(aetools.NProperty):
  528.     """container - the container this window is opened from"""
  529.     which = 'ctnr'
  530.     want = 'obj '
  531. class disk(aetools.NProperty):
  532.     """disk - the disk on which the item this window was opened from is stored"""
  533.     which = 'cdis'
  534.     want = 'obj '
  535. class folder(aetools.NProperty):
  536.     """folder - the folder this window is opened from"""
  537.     which = 'cfol'
  538.     want = 'obj '
  539. class item(aetools.NProperty):
  540.     """item - the item this window is opened from"""
  541.     which = 'cobj'
  542.     want = 'obj '
  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']
  561.  
  562. container_windows = container_window
  563.  
  564. class content_space(aetools.ComponentItem):
  565.     """content space - All windows, including the desktop window (“Window” does not include the desktop window)"""
  566.     want = 'dwnd'
  567.  
  568. content_spaces = content_space
  569.  
  570. class control_panel(aetools.ComponentItem):
  571.     """control panel - A control panel"""
  572.     want = 'ccdv'
  573. class calculate_folder_sizes(aetools.NProperty):
  574.     """calculate folder sizes - (Views) Are folder sizes calculated and displayed in Finder list windows?"""
  575.     which = 'sfsz'
  576.     want = 'bool'
  577. class comment_heading(aetools.NProperty):
  578.     """comment heading - (Views) Are comments displayed in Finder list windows?"""
  579.     which = 'scom'
  580.     want = 'bool'
  581. class date_heading(aetools.NProperty):
  582.     """date heading - (Views) Are modification dates displayed in Finder list windows?"""
  583.     which = 'sdat'
  584.     want = 'bool'
  585. class disk_information_heading(aetools.NProperty):
  586.     """disk information heading - (Views) Is information about the volume displayed in Finder list windows?"""
  587.     which = 'sdin'
  588.     want = 'bool'
  589. class icon_size(aetools.NProperty):
  590.     """icon size - (Views) the size of icons displayed in Finder list windows"""
  591.     which = 'lvis'
  592.     want = 'long'
  593. class kind_heading(aetools.NProperty):
  594.     """kind heading - (Views) Are document kinds displayed in Finder list windows?"""
  595.     which = 'sknd'
  596.     want = 'bool'
  597. class label_heading(aetools.NProperty):
  598.     """label heading - (Views) Are labels displayed in Finder list windows?"""
  599.     which = 'slbl'
  600.     want = 'bool'
  601. class size_heading(aetools.NProperty):
  602.     """size heading - (Views) Are file sizes displayed in Finder list windows"""
  603.     which = 'ssiz'
  604.     want = 'bool'
  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?"""
  607.     which = 'fgrd'
  608.     want = 'bool'
  609. class staggered_grid(aetools.NProperty):
  610.     """staggered grid - (Views) Are grid lines staggered?"""
  611.     which = 'fstg'
  612.     want = 'bool'
  613. class version_heading(aetools.NProperty):
  614.     """version heading - (Views) Are file versions displayed in Finder list windows?"""
  615.     which = 'svrs'
  616.     want = 'bool'
  617. class view_font(aetools.NProperty):
  618.     """view font - (Views) the id of the font used in Finder views"""
  619.     which = 'vfnt'
  620.     want = 'long'
  621. class view_font_size(aetools.NProperty):
  622.     """view font size - (Views) the size of the font used in Finder views"""
  623.     which = 'vfsz'
  624.     want = 'long'
  625.  
  626. control_panels = control_panel
  627.  
  628. class desk_accessory_file(aetools.ComponentItem):
  629.     """desk accessory file - A desk accessory file"""
  630.     want = 'dafi'
  631.  
  632. desk_accessory_files = desk_accessory_file
  633.  
  634. class desktop_2d_object(aetools.ComponentItem):
  635.     """desktop-object - Desktop-object is the class of the “desktop” object"""
  636.     want = 'cdsk'
  637. class startup_disk(aetools.NProperty):
  638.     """startup disk - the startup disk"""
  639.     which = 'sdsk'
  640.     want = 'obj '
  641. class trash(aetools.NProperty):
  642.     """trash - the trash"""
  643.     which = 'trsh'
  644.     want = 'obj '
  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']
  660.  
  661. class disk(aetools.ComponentItem):
  662.     """disk - A disk"""
  663.     want = 'cdis'
  664. class capacity(aetools.NProperty):
  665.     """capacity - the total number of bytes (free or used) on the disk"""
  666.     which = 'capa'
  667.     want = 'long'
  668. class ejectable(aetools.NProperty):
  669.     """ejectable - Can the media can be ejected (floppies, CD's, syquest)?"""
  670.     which = 'isej'
  671.     want = 'bool'
  672. class free_space(aetools.NProperty):
  673.     """free space - the number of free bytes left on the disk"""
  674.     which = 'frsp'
  675.     want = 'long'
  676. class local_volume(aetools.NProperty):
  677.     """local volume - Is the media is a local volume (rather than a file server)?"""
  678.     which = 'isrv'
  679.     want = 'bool'
  680. class startup(aetools.NProperty):
  681.     """startup - Is this disk the boot disk?"""
  682.     which = 'istd'
  683.     want = 'bool'
  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']
  699.  
  700. disks = disk
  701.  
  702. class document_file(aetools.ComponentItem):
  703.     """document file - A document file"""
  704.     want = 'docf'
  705.  
  706. document_files = document_file
  707.  
  708. class file(aetools.ComponentItem):
  709.     """file - A file"""
  710.     want = 'file'
  711. class creator_type(aetools.NProperty):
  712.     """creator type - the OSType identifying the application that created the item"""
  713.     which = 'fcrt'
  714.     want = 'type'
  715. class file_type(aetools.NProperty):
  716.     """file type - the OSType identifying the type of data contained in the item"""
  717.     which = 'fitp'
  718.     want = 'type'
  719. class locked(aetools.NProperty):
  720.     """locked - Is the file locked?"""
  721.     which = 'islk'
  722.     want = 'bool'
  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?"""
  726.     which = 'pspd'
  727.     want = 'bool'
  728. # repeated property version the version of the file (visible at the bottom of the “Get Info” dialog)
  729.  
  730. files = file
  731.  
  732. class folder(aetools.ComponentItem):
  733.     """folder - A folder"""
  734.     want = 'cfol'
  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']
  750.  
  751. folders = folder
  752.  
  753. class font_file(aetools.ComponentItem):
  754.     """font file - A font file"""
  755.     want = 'fntf'
  756.  
  757. font_files = font_file
  758.  
  759. class font_suitcase(aetools.ComponentItem):
  760.     """font suitcase - A font suitcase"""
  761.     want = 'fsut'
  762. #        element 'cobj' as ['indx', 'name']
  763.  
  764. font_suitcases = font_suitcase
  765.  
  766. class group(aetools.ComponentItem):
  767.     """group - A Group in the Users and Groups control panel"""
  768.     want = 'sgrp'
  769. class bounds(aetools.NProperty):
  770.     """bounds - the bounding rectangle of the group"""
  771.     which = 'pbnd'
  772.     want = 'qdrt'
  773. class icon(aetools.NProperty):
  774.     """icon - the icon bitmap of the group"""
  775.     which = 'iimg'
  776.     want = 'ifam'
  777. class label_index(aetools.NProperty):
  778.     """label index - the label of the group"""
  779.     which = 'labi'
  780.     want = 'long'
  781. class name(aetools.NProperty):
  782.     """name - the name of the group"""
  783.     which = 'pnam'
  784.     want = 'itxt'
  785. class position(aetools.NProperty):
  786.     """position - the position of the group within its parent window"""
  787.     which = 'posn'
  788.     want = 'QDpt'
  789.  
  790. groups = group
  791.  
  792. class information_window(aetools.ComponentItem):
  793.     """information window - An information window (opened by “Get Info…”)"""
  794.     want = 'iwnd'
  795. class comment(aetools.NProperty):
  796.     """comment - the comment"""
  797.     which = 'comt'
  798.     want = 'itxt'
  799. class creation_date(aetools.NProperty):
  800.     """creation date - the date on which the item was created"""
  801.     which = 'crtd'
  802.     want = 'ldt '
  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"""
  809.     which = 'modd'
  810.     want = 'ldt '
  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"""
  814.     which = 'phys'
  815.     want = 'long'
  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"""
  819.     which = 'ptsz'
  820.     want = 'long'
  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?"""
  826.     which = 'warn'
  827.     want = 'bool'
  828.  
  829. information_windows = information_window
  830.  
  831. class item(aetools.ComponentItem):
  832.     """item - An item"""
  833.     want = 'cobj'
  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"""
  839.     which = 'dwnd'
  840.     want = 'dwnd'
  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"""
  847.     which = 'ID  '
  848.     want = 'long'
  849. class information_window(aetools.NProperty):
  850.     """information window - the information window for the item"""
  851.     which = 'iwnd'
  852.     want = 'obj '
  853. class kind(aetools.NProperty):
  854.     """kind - the kind of the item"""
  855.     which = 'kind'
  856.     want = 'itxt'
  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?"""
  864.     which = 'issl'
  865.     want = 'bool'
  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"""
  869.     which = 'cwin'
  870.     want = 'cwin'
  871.  
  872. items = item
  873.  
  874. class process(aetools.ComponentItem):
  875.     """process - A process running on this Macintosh"""
  876.     want = 'prcs'
  877. # repeated property creator_type the creator type of this process
  878. class file(aetools.NProperty):
  879.     """file - the file that launched this process"""
  880.     which = 'file'
  881.     want = 'obj '
  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"""
  888.     which = 'pusd'
  889.     want = 'long'
  890. class remote_events(aetools.NProperty):
  891.     """remote events - Will this process accepts remote events?"""
  892.     which = 'revt'
  893.     want = 'bool'
  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?
  896.  
  897. processes = process
  898.  
  899. class sharable_container(aetools.ComponentItem):
  900.     """sharable container - A container that may be shared (disks and folders)"""
  901.     want = 'sctr'
  902. class exported(aetools.NProperty):
  903.     """exported - Is this folder a share point or inside a share point?"""
  904.     which = 'sexp'
  905.     want = 'bool'
  906. class group(aetools.NProperty):
  907.     """group - the user or group that has special access to the folder"""
  908.     which = 'sgrp'
  909.     want = 'itxt'
  910. class group_privileges(aetools.NProperty):
  911.     """group privileges - the see folders/see files/make changes privileges for the group"""
  912.     which = 'gppr'
  913.     want = 'priv'
  914. class guest_privileges(aetools.NProperty):
  915.     """guest privileges - the see folders/see files/make changes privileges for everyone"""
  916.     which = 'gstp'
  917.     want = 'priv'
  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?"""
  920.     which = 'iprv'
  921.     want = 'bool'
  922. class mounted(aetools.NProperty):
  923.     """mounted - Is this folder mounted on another machine's desktop?"""
  924.     which = 'smou'
  925.     want = 'bool'
  926. class owner(aetools.NProperty):
  927.     """owner - the user that owns this folder"""
  928.     which = 'sown'
  929.     want = 'itxt'
  930. class owner_privileges(aetools.NProperty):
  931.     """owner privileges - the see folders/see files/make changes privileges for the owner"""
  932.     which = 'ownr'
  933.     want = 'priv'
  934. class protected(aetools.NProperty):
  935.     """protected - Is container protected from being moved, renamed or deleted?"""
  936.     which = 'spro'
  937.     want = 'bool'
  938. class shared(aetools.NProperty):
  939.     """shared - Is container a share point?"""
  940.     which = 'shar'
  941.     want = 'bool'
  942. class sharing_window(aetools.NProperty):
  943.     """sharing window - the sharing window for the container"""
  944.     which = 'swnd'
  945.     want = 'obj '
  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']
  961.  
  962. sharable_containers = sharable_container
  963.  
  964. class sharing_privileges(aetools.ComponentItem):
  965.     """sharing privileges - A set of sharing properties"""
  966.     want = 'priv'
  967. class make_changes(aetools.NProperty):
  968.     """make changes - privileges to make changes"""
  969.     which = 'prvw'
  970.     want = 'bool'
  971. class see_files(aetools.NProperty):
  972.     """see files - privileges to see files"""
  973.     which = 'prvr'
  974.     want = 'bool'
  975. class see_folders(aetools.NProperty):
  976.     """see folders - privileges to see folders"""
  977.     which = 'prvs'
  978.     want = 'bool'
  979.  
  980. class sharing_window(aetools.ComponentItem):
  981.     """sharing window - A sharing window (opened by “Sharing…”)"""
  982.     want = 'swnd'
  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"""
  997.     which = 'sctr'
  998.     want = 'obj '
  999. # repeated property shared Is container a share point?
  1000.  
  1001. sharing_windows = sharing_window
  1002.  
  1003. class sound_file(aetools.ComponentItem):
  1004.     """sound file - This class represents sound files"""
  1005.     want = 'sndf'
  1006.  
  1007. sound_files = sound_file
  1008.  
  1009. class status_window(aetools.ComponentItem):
  1010.     """status window - These windows are progress dialogs (copy window, rebuild desktop database, empty trash)"""
  1011.     want = 'qwnd'
  1012.  
  1013. status_windows = status_window
  1014.  
  1015. class suitcase(aetools.ComponentItem):
  1016.     """suitcase - A font or desk accessory suitcase"""
  1017.     want = 'stcs'
  1018. #        element 'cobj' as ['indx', 'name']
  1019.  
  1020. suitcases = suitcase
  1021.  
  1022. class trash_2d_object(aetools.ComponentItem):
  1023.     """trash-object - Trash-object is the class of the “trash” object"""
  1024.     want = 'ctrs'
  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']
  1041.  
  1042. class user(aetools.ComponentItem):
  1043.     """user - A User in the Users and Groups control panel"""
  1044.     want = 'cuse'
  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
  1050.  
  1051. users = user
  1052.  
  1053. class window(aetools.ComponentItem):
  1054.     """window - A window"""
  1055.     want = 'cwin'
  1056.  
  1057. windows = window
  1058. accessory_process._propdict = {
  1059.     'desk_accessory_file' : desk_accessory_file,
  1060. }
  1061. accessory_process._elemdict = {
  1062. }
  1063. accessory_suitcase._propdict = {
  1064. }
  1065. accessory_suitcase._elemdict = {
  1066.     'item' : item,
  1067. }
  1068. alias_file._propdict = {
  1069.     'original_item' : original_item,
  1070. }
  1071. alias_file._elemdict = {
  1072. }
  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,
  1097. }
  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,
  1108.     'disk' : disk,
  1109.     'document_file' : document_file,
  1110.     'file' : file,
  1111.     'folder' : folder,
  1112.     'font_file' : font_file,
  1113.     'font_suitcase' : font_suitcase,
  1114.     'information_window' : information_window,
  1115.     'item' : item,
  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,
  1121.     'window' : window,
  1122. }
  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,
  1128. }
  1129. application_file._elemdict = {
  1130. }
  1131. application_process._propdict = {
  1132.     'application_file' : application_file,
  1133. }
  1134. application_process._elemdict = {
  1135. }
  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,
  1144.     'view' : view,
  1145. }
  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,
  1154.     'file' : file,
  1155.     'folder' : folder,
  1156.     'font_file' : font_file,
  1157.     'font_suitcase' : font_suitcase,
  1158.     'item' : item,
  1159.     'sharable_container' : sharable_container,
  1160.     'sound_file' : sound_file,
  1161.     'suitcase' : suitcase,
  1162. }
  1163. container_window._propdict = {
  1164.     'container' : container,
  1165.     'disk' : disk,
  1166.     'folder' : folder,
  1167.     'item' : item,
  1168.     'previous_list_view' : previous_list_view,
  1169.     'selection' : selection,
  1170.     'view' : view,
  1171. }
  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,
  1180.     'file' : file,
  1181.     'folder' : folder,
  1182.     'font_file' : font_file,
  1183.     'font_suitcase' : font_suitcase,
  1184.     'item' : item,
  1185.     'sharable_container' : sharable_container,
  1186.     'sound_file' : sound_file,
  1187.     'suitcase' : suitcase,
  1188. }
  1189. content_space._propdict = {
  1190. }
  1191. content_space._elemdict = {
  1192. }
  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,
  1207. }
  1208. control_panel._elemdict = {
  1209. }
  1210. desk_accessory_file._propdict = {
  1211. }
  1212. desk_accessory_file._elemdict = {
  1213. }
  1214. desktop_2d_object._propdict = {
  1215.     'startup_disk' : startup_disk,
  1216.     'trash' : trash,
  1217. }
  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,
  1226.     'file' : file,
  1227.     'folder' : folder,
  1228.     'font_file' : font_file,
  1229.     'font_suitcase' : font_suitcase,
  1230.     'item' : item,
  1231.     'sharable_container' : sharable_container,
  1232.     'sound_file' : sound_file,
  1233.     'suitcase' : suitcase,
  1234. }
  1235. disk._propdict = {
  1236.     'capacity' : capacity,
  1237.     'ejectable' : ejectable,
  1238.     'free_space' : free_space,
  1239.     'local_volume' : local_volume,
  1240.     'startup' : startup,
  1241. }
  1242. disk._elemdict = {
  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,
  1250.     'file' : file,
  1251.     'folder' : folder,
  1252.     'font_file' : font_file,
  1253.     'font_suitcase' : font_suitcase,
  1254.     'item' : item,
  1255.     'sharable_container' : sharable_container,
  1256.     'sound_file' : sound_file,
  1257.     'suitcase' : suitcase,
  1258. }
  1259. document_file._propdict = {
  1260. }
  1261. document_file._elemdict = {
  1262. }
  1263. file._propdict = {
  1264.     'creator_type' : creator_type,
  1265.     'file_type' : file_type,
  1266.     'locked' : locked,
  1267.     'product_version' : product_version,
  1268.     'stationery' : stationery,
  1269.     'version' : version,
  1270. }
  1271. file._elemdict = {
  1272. }
  1273. folder._propdict = {
  1274. }
  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,
  1283.     'file' : file,
  1284.     'folder' : folder,
  1285.     'font_file' : font_file,
  1286.     'font_suitcase' : font_suitcase,
  1287.     'item' : item,
  1288.     'sharable_container' : sharable_container,
  1289.     'sound_file' : sound_file,
  1290.     'suitcase' : suitcase,
  1291. }
  1292. font_file._propdict = {
  1293. }
  1294. font_file._elemdict = {
  1295. }
  1296. font_suitcase._propdict = {
  1297. }
  1298. font_suitcase._elemdict = {
  1299.     'item' : item,
  1300. }
  1301. group._propdict = {
  1302.     'bounds' : bounds,
  1303.     'icon' : icon,
  1304.     'label_index' : label_index,
  1305.     'name' : name,
  1306.     'position' : position,
  1307. }
  1308. group._elemdict = {
  1309. }
  1310. information_window._propdict = {
  1311.     'comment' : comment,
  1312.     'creation_date' : creation_date,
  1313.     'icon' : icon,
  1314.     'item' : item,
  1315.     'locked' : locked,
  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,
  1321.     'size' : size,
  1322.     'stationery' : stationery,
  1323.     'suggested_partition_size' : suggested_partition_size,
  1324.     'version' : version,
  1325.     'warn_before_emptying' : warn_before_emptying,
  1326. }
  1327. information_window._elemdict = {
  1328. }
  1329. item._propdict = {
  1330.     'bounds' : bounds,
  1331.     'comment' : comment,
  1332.     'container' : container,
  1333.     'content_space' : content_space,
  1334.     'creation_date' : creation_date,
  1335.     'disk' : disk,
  1336.     'folder' : folder,
  1337.     'icon' : icon,
  1338.     'id' : id,
  1339.     'information_window' : information_window,
  1340.     'kind' : kind,
  1341.     'label_index' : label_index,
  1342.     'modification_date' : modification_date,
  1343.     'name' : name,
  1344.     'physical_size' : physical_size,
  1345.     'position' : position,
  1346.     'selected' : selected,
  1347.     'size' : size,
  1348.     'window' : window,
  1349. }
  1350. item._elemdict = {
  1351. }
  1352. process._propdict = {
  1353.     'creator_type' : creator_type,
  1354.     'file' : file,
  1355.     'file_type' : file_type,
  1356.     'frontmost' : frontmost,
  1357.     'name' : name,
  1358.     'partition_size' : partition_size,
  1359.     'partition_space_used' : partition_space_used,
  1360.     'remote_events' : remote_events,
  1361.     'scriptable' : scriptable,
  1362.     'visible' : visible,
  1363. }
  1364. process._elemdict = {
  1365. }
  1366. sharable_container._propdict = {
  1367.     'exported' : exported,
  1368.     'group' : group,
  1369.     'group_privileges' : group_privileges,
  1370.     'guest_privileges' : guest_privileges,
  1371.     'inherited_privileges' : inherited_privileges,
  1372.     'mounted' : mounted,
  1373.     'owner' : owner,
  1374.     'owner_privileges' : owner_privileges,
  1375.     'protected' : protected,
  1376.     'shared' : shared,
  1377.     'sharing_window' : sharing_window,
  1378. }
  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,
  1387.     'file' : file,
  1388.     'folder' : folder,
  1389.     'font_file' : font_file,
  1390.     'font_suitcase' : font_suitcase,
  1391.     'item' : item,
  1392.     'sharable_container' : sharable_container,
  1393.     'sound_file' : sound_file,
  1394.     'suitcase' : suitcase,
  1395. }
  1396. sharing_privileges._propdict = {
  1397.     'make_changes' : make_changes,
  1398.     'see_files' : see_files,
  1399.     'see_folders' : see_folders,
  1400. }
  1401. sharing_privileges._elemdict = {
  1402. }
  1403. sharing_window._propdict = {
  1404.     'container' : container,
  1405.     'exported' : exported,
  1406.     'folder' : folder,
  1407.     'group' : group,
  1408.     'group_privileges' : group_privileges,
  1409.     'guest_privileges' : guest_privileges,
  1410.     'inherited_privileges' : inherited_privileges,
  1411.     'item' : item,
  1412.     'mounted' : mounted,
  1413.     'owner' : owner,
  1414.     'owner_privileges' : owner_privileges,
  1415.     'protected' : protected,
  1416.     'sharable_container' : sharable_container,
  1417.     'shared' : shared,
  1418. }
  1419. sharing_window._elemdict = {
  1420. }
  1421. sound_file._propdict = {
  1422. }
  1423. sound_file._elemdict = {
  1424. }
  1425. status_window._propdict = {
  1426. }
  1427. status_window._elemdict = {
  1428. }
  1429. suitcase._propdict = {
  1430. }
  1431. suitcase._elemdict = {
  1432.     'item' : item,
  1433. }
  1434. trash_2d_object._propdict = {
  1435.     'warn_before_emptying' : warn_before_emptying,
  1436. }
  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,
  1445.     'file' : file,
  1446.     'folder' : folder,
  1447.     'font_file' : font_file,
  1448.     'font_suitcase' : font_suitcase,
  1449.     'item' : item,
  1450.     'sharable_container' : sharable_container,
  1451.     'sound_file' : sound_file,
  1452.     'suitcase' : suitcase,
  1453. }
  1454. user._propdict = {
  1455.     'bounds' : bounds,
  1456.     'icon' : icon,
  1457.     'label_index' : label_index,
  1458.     'name' : name,
  1459.     'position' : position,
  1460. }
  1461. user._elemdict = {
  1462. }
  1463. window._propdict = {
  1464. }
  1465. window._elemdict = {
  1466. }
  1467. _Enum_vwby = {
  1468.     'conflicts' : 'cflc',    # 
  1469.     'existing_items' : 'exsi',    # 
  1470.     'small_icon' : 'smic',    # 
  1471.     'all' : 'kyal',    # 
  1472. }
  1473.  
  1474. _Enum_gsen = {
  1475.     'CPU' : 'proc',    # 
  1476.     'FPU' : 'fpu ',    # 
  1477.     'MMU' : 'mmu ',    # 
  1478.     'hardware' : 'hdwr',    # 
  1479.     'operating_system' : 'os  ',    # 
  1480.     'sound_system' : 'snd ',    # 
  1481.     'memory_available' : 'lram',    # 
  1482.     'memory_installed' : 'ram ',    # 
  1483. }
  1484.  
  1485.  
  1486. #
  1487. # Indices of types declared in this module
  1488. #
  1489. _classdeclarations = {
  1490.     'swnd' : sharing_window,
  1491.     'iwnd' : information_window,
  1492.     'ccdv' : control_panel,
  1493.     'cwnd' : container_window,
  1494.     'appf' : application_file,
  1495.     'prcs' : process,
  1496.     'cdis' : disk,
  1497.     'cwin' : window,
  1498.     'dafi' : desk_accessory_file,
  1499.     'sgrp' : group,
  1500.     'alia' : alias_file,
  1501.     'ctnr' : container,
  1502.     'qwnd' : status_window,
  1503.     'fsut' : font_suitcase,
  1504.     'sndf' : sound_file,
  1505.     'priv' : sharing_privileges,
  1506.     'dwnd' : content_space,
  1507.     'pcap' : application_process,
  1508.     'stcs' : suitcase,
  1509.     'ctrs' : trash_2d_object,
  1510.     'file' : file,
  1511.     'cobj' : item,
  1512.     'cuse' : user,
  1513.     'cdsk' : desktop_2d_object,
  1514.     'pcda' : accessory_process,
  1515.     'capp' : application,
  1516.     'cfol' : folder,
  1517.     'sctr' : sharable_container,
  1518.     'dsut' : accessory_suitcase,
  1519.     'docf' : document_file,
  1520.     'fntf' : font_file,
  1521. }
  1522.  
  1523. _propdeclarations = {
  1524.     'swnd' : sharing_window,
  1525.     'fshr' : file_sharing,
  1526.     'pvew' : view,
  1527.     'pusd' : partition_space_used,
  1528.     'fcrt' : creator_type,
  1529.     'sdat' : date_heading,
  1530.     'sdin' : disk_information_heading,
  1531.     'strt' : startup_items_folder,
  1532.     'issl' : selected,
  1533.     'pvis' : visible,
  1534.     'slbl' : label_heading,
  1535.     'cdis' : disk,
  1536.     'fitp' : file_type,
  1537.     'smou' : mounted,
  1538.     'pexc' : completely_expanded,
  1539.     'pexa' : expandable,
  1540.     'comt' : comment,
  1541.     'svew' : previous_list_view,
  1542.     'labi' : label_index,
  1543.     'sctr' : sharable_container,
  1544.     'sknd' : kind_heading,
  1545.     'trsh' : trash,
  1546.     'fstg' : staggered_grid,
  1547.     'macs' : system_folder,
  1548.     'vfsz' : view_font_size,
  1549.     'pexp' : expanded,
  1550.     'posn' : position,
  1551.     'cobj' : item,
  1552.     'amnu' : apple_menu_items_folder,
  1553.     'pvwp' : view_preferences,
  1554.     'desk' : desktop,
  1555.     'pnam' : name,
  1556.     'mprt' : minimum_partition_size,
  1557.     'cwin' : window,
  1558.     'pcli' : clipboard,
  1559.     'spro' : protected,
  1560.     'islk' : locked,
  1561.     'sprt' : suggested_partition_size,
  1562.     'pisf' : frontmost,
  1563.     'sele' : selection,
  1564.     'ffnt' : fonts_folder,
  1565.     'istd' : startup,
  1566.     'sdsk' : startup_disk,
  1567.     'shar' : shared,
  1568.     'dwnd' : content_space,
  1569.     'file' : file,
  1570.     'sfsz' : calculate_folder_sizes,
  1571.     'ID  ' : id,
  1572.     'prvw' : make_changes,
  1573.     'iprv' : inherited_privileges,
  1574.     'prvr' : see_files,
  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,
  1583.     'sgrp' : group,
  1584.     'temp' : temporary_items_folder,
  1585.     'fgrd' : snap_to_grid,
  1586.     'ptsz' : size,
  1587.     'kind' : kind,
  1588.     'scut' : shortcuts,
  1589.     'abbx' : about_this_macintosh,
  1590.     'ctnr' : container,
  1591.     'isej' : ejectable,
  1592.     'svrs' : version_heading,
  1593.     'vfnt' : view_font,
  1594.     'warn' : warn_before_emptying,
  1595.     'isab' : scriptable,
  1596.     'isrv' : local_volume,
  1597.     'lvis' : icon_size,
  1598.     'shdf' : shutdown_items_folder,
  1599.     'gstp' : guest_privileges,
  1600.     'vers' : version,
  1601.     'appf' : application_file,
  1602.     'iwnd' : information_window,
  1603.     'revt' : remote_events,
  1604.     'frsp' : free_space,
  1605.     'capa' : capacity,
  1606.     'pspd' : stationery,
  1607.     'scom' : comment_heading,
  1608.     'pins' : insertion_location,
  1609.     'orig' : original_item,
  1610.     'pref' : preferences_folder,
  1611.     'fsup' : sharing_starting_up,
  1612.     'sown' : owner,
  1613.     'cfol' : folder,
  1614.     'mfre' : largest_free_block,
  1615.     'ssiz' : size_heading,
  1616.     'iimg' : icon,
  1617.     'appt' : partition_size,
  1618.     'gppr' : group_privileges,
  1619.     'pbnd' : bounds,
  1620.     'ects' : entire_contents,
  1621.     'sexp' : exported,
  1622.     'ver2' : product_version,
  1623.     'crtd' : creation_date,
  1624. }
  1625.  
  1626. _compdeclarations = {
  1627. }
  1628.  
  1629. _enumdeclarations = {
  1630.     'gsen' : _Enum_gsen,
  1631.     'vwby' : _Enum_vwby,
  1632. }
  1633.