Finder suite.
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 20 Aug 2000 19:29:03 +0000 (19:29 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 20 Aug 2000 19:29:03 +0000 (19:29 +0000)
12 files changed:
Mac/Lib/lib-scriptpackages/Finder/Containers_and_folders.py [new file with mode: 0644]
Mac/Lib/lib-scriptpackages/Finder/Earlier_terms.py [new file with mode: 0644]
Mac/Lib/lib-scriptpackages/Finder/Enumerations.py [new file with mode: 0644]
Mac/Lib/lib-scriptpackages/Finder/Files_and_suitcases.py [new file with mode: 0644]
Mac/Lib/lib-scriptpackages/Finder/Finder_Basics.py [new file with mode: 0644]
Mac/Lib/lib-scriptpackages/Finder/Finder_items.py [new file with mode: 0644]
Mac/Lib/lib-scriptpackages/Finder/Obsolete_terms.py [new file with mode: 0644]
Mac/Lib/lib-scriptpackages/Finder/Process_classes.py [new file with mode: 0644]
Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py [new file with mode: 0644]
Mac/Lib/lib-scriptpackages/Finder/Type_Definitions.py [new file with mode: 0644]
Mac/Lib/lib-scriptpackages/Finder/Window_classes.py [new file with mode: 0644]
Mac/Lib/lib-scriptpackages/Finder/__init__.py [new file with mode: 0644]

diff --git a/Mac/Lib/lib-scriptpackages/Finder/Containers_and_folders.py b/Mac/Lib/lib-scriptpackages/Finder/Containers_and_folders.py
new file mode 100644 (file)
index 0000000..41e9ba6
--- /dev/null
@@ -0,0 +1,490 @@
+"""Suite Containers and folders: Classes that can contain other file system items
+Level 1, version 1
+
+Generated from Macintosh HD:Systeemmap:Finder
+AETE/AEUT resource version 0/144, language 0, script 0
+"""
+
+import aetools
+import MacOS
+
+_code = 'fndr'
+
+class Containers_and_folders_Events:
+
+       pass
+
+
+class container(aetools.ComponentItem):
+       """container - An item that contains other items """
+       want = 'ctnr'
+class _3c_Inheritance_3e_(aetools.NProperty):
+       """<Inheritance> - inherits some of its properties from the item class """
+       which = 'c@#^'
+       want = 'cobj'
+class selection(aetools.NProperty):
+       """selection - the selection visible to the user """
+       which = 'sele'
+       want = 'obj '
+class entire_contents(aetools.NProperty):
+       """entire contents - the entire contents of the container, including the contents of its children """
+       which = 'ects'
+       want = 'obj '
+class expandable(aetools.NProperty):
+       """expandable - Is the container capable of being expanded as an outline? """
+       which = 'pexa'
+       want = 'bool'
+class expanded(aetools.NProperty):
+       """expanded - Is the container opened as an outline? (can only be set for containers viewed as lists) """
+       which = 'pexp'
+       want = 'bool'
+class completely_expanded(aetools.NProperty):
+       """completely expanded - Are the container and all of its children opened as outlines? (can only be set for containers viewed as lists) """
+       which = 'pexc'
+       want = 'bool'
+class icon_size(aetools.NProperty):
+       """icon size - the size of icons displayed in the window. Can be specified as a number, or ... """
+       which = 'lvis'
+       want = 'long'
+# repeated property icon_size ... alternatively, you can specify the icons size as a constant
+#        element 'cobj' as ['indx', 'name']
+#        element 'ctnr' as ['indx', 'name']
+#        element 'sctr' as ['indx', 'name']
+#        element 'cfol' as ['indx', 'name', 'ID  ']
+#        element 'file' as ['indx', 'name']
+#        element 'alia' as ['indx', 'name']
+#        element 'appf' as ['indx', 'name', 'ID  ']
+#        element 'docf' as ['indx', 'name']
+#        element 'fntf' as ['indx', 'name']
+#        element 'dafi' as ['indx', 'name']
+#        element 'inlf' as ['indx', 'name']
+#        element 'sndf' as ['indx', 'name']
+#        element 'clpf' as ['indx', 'name']
+#        element 'pack' as ['indx', 'name']
+#        element 'stcs' as ['indx', 'name']
+#        element 'fsut' as ['indx', 'name']
+#        element 'dsut' as ['indx', 'name']
+
+containers = container
+
+class sharable_container(aetools.ComponentItem):
+       """sharable container - A container that may be shared (disks and folders) """
+       want = 'sctr'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the container class
+class owner(aetools.NProperty):
+       """owner - the user that owns the container (file sharing must be on to use this property) """
+       which = 'sown'
+       want = 'itxt'
+class group(aetools.NProperty):
+       """group - the user or group that has special access to the container (file sharing must be on to use this property) """
+       which = 'sgrp'
+       want = 'itxt'
+class owner_privileges(aetools.NProperty):
+       """owner privileges - the see folders/see files/make changes privileges for the owner (file sharing must be on to use this property) """
+       which = 'ownr'
+       want = 'priv'
+class group_privileges(aetools.NProperty):
+       """group privileges - the see folders/see files/make changes privileges for the group (file sharing must be on to use this property) """
+       which = 'gppr'
+       want = 'priv'
+class guest_privileges(aetools.NProperty):
+       """guest privileges - the see folders/see files/make changes privileges for everyone (file sharing must be on to use this property) """
+       which = 'gstp'
+       want = 'priv'
+class privileges_inherited(aetools.NProperty):
+       """privileges inherited - Are the privileges of the container always the same as the container in which it is stored? (file sharing must be on to use this property) """
+       which = 'iprv'
+       want = 'bool'
+class mounted(aetools.NProperty):
+       """mounted - Is the container mounted on another machine's desktop? (file sharing must be on to use this property) """
+       which = 'smou'
+       want = 'bool'
+class exported(aetools.NProperty):
+       """exported - Is the container a share point or inside a share point, i.e., can the container be shared? (file sharing must be on to use this property) """
+       which = 'sexp'
+       want = 'bool'
+class shared(aetools.NProperty):
+       """shared - Is the container a share point, i.e., is the container currently being shared? (file sharing must be on to use this property) """
+       which = 'shar'
+       want = 'bool'
+class protected(aetools.NProperty):
+       """protected - Is the container protected from being moved, renamed and deleted? (file sharing must be on to use this property) """
+       which = 'spro'
+       want = 'bool'
+#        element 'cobj' as ['indx', 'name']
+#        element 'ctnr' as ['indx', 'name']
+#        element 'sctr' as ['indx', 'name']
+#        element 'cfol' as ['indx', 'name', 'ID  ']
+#        element 'file' as ['indx', 'name']
+#        element 'alia' as ['indx', 'name']
+#        element 'appf' as ['indx', 'name', 'ID  ']
+#        element 'docf' as ['indx', 'name']
+#        element 'fntf' as ['indx', 'name']
+#        element 'dafi' as ['indx', 'name']
+#        element 'inlf' as ['indx', 'name']
+#        element 'sndf' as ['indx', 'name']
+#        element 'clpf' as ['indx', 'name']
+#        element 'pack' as ['indx', 'name']
+#        element 'stcs' as ['indx', 'name']
+#        element 'fsut' as ['indx', 'name']
+#        element 'dsut' as ['indx', 'name']
+
+sharable_containers = sharable_container
+
+class sharing_privileges(aetools.ComponentItem):
+       """sharing privileges - A set of sharing properties (used in sharable containers) """
+       want = 'priv'
+class see_folders(aetools.NProperty):
+       """see folders - Can folders be seen? """
+       which = 'prvs'
+       want = 'bool'
+class see_files(aetools.NProperty):
+       """see files - Can files be seen? """
+       which = 'prvr'
+       want = 'bool'
+class make_changes(aetools.NProperty):
+       """make changes - Can changes be made? """
+       which = 'prvw'
+       want = 'bool'
+
+class disk(aetools.ComponentItem):
+       """disk - A disk """
+       want = 'cdis'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the sharable container class
+class capacity(aetools.NProperty):
+       """capacity - the total number of bytes (free or used) on the disk """
+       which = 'capa'
+       want = 'long'
+class free_space(aetools.NProperty):
+       """free space - the number of free bytes left on the disk """
+       which = 'frsp'
+       want = 'long'
+class ejectable(aetools.NProperty):
+       """ejectable - Can the media be ejected (floppies, CD's, and so on)? """
+       which = 'isej'
+       want = 'bool'
+class local_volume(aetools.NProperty):
+       """local volume - Is the media a local volume (as opposed to a file server)? """
+       which = 'isrv'
+       want = 'bool'
+class startup(aetools.NProperty):
+       """startup - Is this disk the boot disk? """
+       which = 'istd'
+       want = 'bool'
+#        element 'cobj' as ['indx', 'name']
+#        element 'ctnr' as ['indx', 'name']
+#        element 'sctr' as ['indx', 'name']
+#        element 'cfol' as ['indx', 'name', 'ID  ']
+#        element 'file' as ['indx', 'name']
+#        element 'alia' as ['indx', 'name']
+#        element 'appf' as ['indx', 'name', 'ID  ']
+#        element 'docf' as ['indx', 'name']
+#        element 'fntf' as ['indx', 'name']
+#        element 'dafi' as ['indx', 'name']
+#        element 'inlf' as ['indx', 'name']
+#        element 'sndf' as ['indx', 'name']
+#        element 'clpf' as ['indx', 'name']
+#        element 'pack' as ['indx', 'name']
+#        element 'stcs' as ['indx', 'name']
+#        element 'fsut' as ['indx', 'name']
+#        element 'dsut' as ['indx', 'name']
+
+disks = disk
+
+class folder(aetools.ComponentItem):
+       """folder - A folder """
+       want = 'cfol'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the sharable container class
+#        element 'cobj' as ['indx', 'name']
+#        element 'ctnr' as ['indx', 'name']
+#        element 'sctr' as ['indx', 'name']
+#        element 'cfol' as ['indx', 'name', 'ID  ']
+#        element 'file' as ['indx', 'name']
+#        element 'alia' as ['indx', 'name']
+#        element 'appf' as ['indx', 'name', 'ID  ']
+#        element 'docf' as ['indx', 'name']
+#        element 'fntf' as ['indx', 'name']
+#        element 'dafi' as ['indx', 'name']
+#        element 'inlf' as ['indx', 'name']
+#        element 'sndf' as ['indx', 'name']
+#        element 'clpf' as ['indx', 'name']
+#        element 'pack' as ['indx', 'name']
+#        element 'stcs' as ['indx', 'name']
+#        element 'fsut' as ['indx', 'name']
+#        element 'dsut' as ['indx', 'name']
+
+folders = folder
+
+class desktop_2d_object(aetools.ComponentItem):
+       """desktop-object - Desktop-object is the class of the ³desktop² object """
+       want = 'cdsk'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the container class (NOTE: some container properties are not valid for the desktop)
+class startup_disk(aetools.NProperty):
+       """startup disk - the startup disk """
+       which = 'sdsk'
+       want = 'cdis'
+class trash(aetools.NProperty):
+       """trash - the trash """
+       which = 'trsh'
+       want = 'ctrs'
+#        element 'cobj' as ['indx', 'name']
+#        element 'ctnr' as ['indx', 'name']
+#        element 'sctr' as ['indx', 'name']
+#        element 'cdis' as ['indx', 'name']
+#        element 'cfol' as ['indx', 'name', 'ID  ']
+#        element 'file' as ['indx', 'name']
+#        element 'alia' as ['indx', 'name']
+#        element 'appf' as ['indx', 'name', 'ID  ']
+#        element 'docf' as ['indx', 'name']
+#        element 'fntf' as ['indx', 'name']
+#        element 'dafi' as ['indx', 'name']
+#        element 'inlf' as ['indx', 'name']
+#        element 'sndf' as ['indx', 'name']
+#        element 'clpf' as ['indx', 'name']
+#        element 'pack' as ['indx', 'name']
+#        element 'stcs' as ['indx', 'name']
+#        element 'fsut' as ['indx', 'name']
+#        element 'dsut' as ['indx', 'name']
+
+class trash_2d_object(aetools.ComponentItem):
+       """trash-object - Trash-object is the class of the ³trash² object """
+       want = 'ctrs'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the container class
+class warns_before_emptying(aetools.NProperty):
+       """warns before emptying - Display a dialog when emptying the trash? """
+       which = 'warn'
+       want = 'bool'
+#        element 'cobj' as ['indx', 'name']
+#        element 'ctnr' as ['indx', 'name']
+#        element 'sctr' as ['indx', 'name']
+#        element 'cfol' as ['indx', 'name', 'ID  ']
+#        element 'file' as ['indx', 'name']
+#        element 'alia' as ['indx', 'name']
+#        element 'appf' as ['indx', 'name', 'ID  ']
+#        element 'docf' as ['indx', 'name']
+#        element 'fntf' as ['indx', 'name']
+#        element 'dafi' as ['indx', 'name']
+#        element 'inlf' as ['indx', 'name']
+#        element 'sndf' as ['indx', 'name']
+#        element 'clpf' as ['indx', 'name']
+#        element 'pack' as ['indx', 'name']
+#        element 'stcs' as ['indx', 'name']
+#        element 'fsut' as ['indx', 'name']
+#        element 'dsut' as ['indx', 'name']
+import Earlier_terms
+import Files_and_suitcases
+container._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'selection' : selection,
+       'entire_contents' : entire_contents,
+       'expandable' : expandable,
+       'expanded' : expanded,
+       'completely_expanded' : completely_expanded,
+       'icon_size' : icon_size,
+       'icon_size' : icon_size,
+}
+container._elemdict = {
+       'item' : Earlier_terms.item,
+       'container' : container,
+       'sharable_container' : sharable_container,
+       'folder' : folder,
+       'file' : Files_and_suitcases.file,
+       'alias_file' : Files_and_suitcases.alias_file,
+       'application_file' : Earlier_terms.application_file,
+       'document_file' : Files_and_suitcases.document_file,
+       'font_file' : Files_and_suitcases.font_file,
+       'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
+       'internet_location' : Earlier_terms.internet_location,
+       'sound_file' : Files_and_suitcases.sound_file,
+       'clipping' : Files_and_suitcases.clipping,
+       'package' : Files_and_suitcases.package,
+       'suitcase' : Files_and_suitcases.suitcase,
+       'font_suitcase' : Files_and_suitcases.font_suitcase,
+       'accessory_suitcase' : Earlier_terms.accessory_suitcase,
+}
+sharable_container._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'owner' : owner,
+       'group' : group,
+       'owner_privileges' : owner_privileges,
+       'group_privileges' : group_privileges,
+       'guest_privileges' : guest_privileges,
+       'privileges_inherited' : privileges_inherited,
+       'mounted' : mounted,
+       'exported' : exported,
+       'shared' : shared,
+       'protected' : protected,
+}
+sharable_container._elemdict = {
+       'item' : Earlier_terms.item,
+       'container' : container,
+       'sharable_container' : sharable_container,
+       'folder' : folder,
+       'file' : Files_and_suitcases.file,
+       'alias_file' : Files_and_suitcases.alias_file,
+       'application_file' : Earlier_terms.application_file,
+       'document_file' : Files_and_suitcases.document_file,
+       'font_file' : Files_and_suitcases.font_file,
+       'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
+       'internet_location' : Earlier_terms.internet_location,
+       'sound_file' : Files_and_suitcases.sound_file,
+       'clipping' : Files_and_suitcases.clipping,
+       'package' : Files_and_suitcases.package,
+       'suitcase' : Files_and_suitcases.suitcase,
+       'font_suitcase' : Files_and_suitcases.font_suitcase,
+       'accessory_suitcase' : Earlier_terms.accessory_suitcase,
+}
+sharing_privileges._propdict = {
+       'see_folders' : see_folders,
+       'see_files' : see_files,
+       'make_changes' : make_changes,
+}
+sharing_privileges._elemdict = {
+}
+disk._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'capacity' : capacity,
+       'free_space' : free_space,
+       'ejectable' : ejectable,
+       'local_volume' : local_volume,
+       'startup' : startup,
+}
+disk._elemdict = {
+       'item' : Earlier_terms.item,
+       'container' : container,
+       'sharable_container' : sharable_container,
+       'folder' : folder,
+       'file' : Files_and_suitcases.file,
+       'alias_file' : Files_and_suitcases.alias_file,
+       'application_file' : Earlier_terms.application_file,
+       'document_file' : Files_and_suitcases.document_file,
+       'font_file' : Files_and_suitcases.font_file,
+       'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
+       'internet_location' : Earlier_terms.internet_location,
+       'sound_file' : Files_and_suitcases.sound_file,
+       'clipping' : Files_and_suitcases.clipping,
+       'package' : Files_and_suitcases.package,
+       'suitcase' : Files_and_suitcases.suitcase,
+       'font_suitcase' : Files_and_suitcases.font_suitcase,
+       'accessory_suitcase' : Earlier_terms.accessory_suitcase,
+}
+folder._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+}
+folder._elemdict = {
+       'item' : Earlier_terms.item,
+       'container' : container,
+       'sharable_container' : sharable_container,
+       'folder' : folder,
+       'file' : Files_and_suitcases.file,
+       'alias_file' : Files_and_suitcases.alias_file,
+       'application_file' : Earlier_terms.application_file,
+       'document_file' : Files_and_suitcases.document_file,
+       'font_file' : Files_and_suitcases.font_file,
+       'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
+       'internet_location' : Earlier_terms.internet_location,
+       'sound_file' : Files_and_suitcases.sound_file,
+       'clipping' : Files_and_suitcases.clipping,
+       'package' : Files_and_suitcases.package,
+       'suitcase' : Files_and_suitcases.suitcase,
+       'font_suitcase' : Files_and_suitcases.font_suitcase,
+       'accessory_suitcase' : Earlier_terms.accessory_suitcase,
+}
+desktop_2d_object._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'startup_disk' : startup_disk,
+       'trash' : trash,
+}
+desktop_2d_object._elemdict = {
+       'item' : Earlier_terms.item,
+       'container' : container,
+       'sharable_container' : sharable_container,
+       'disk' : disk,
+       'folder' : folder,
+       'file' : Files_and_suitcases.file,
+       'alias_file' : Files_and_suitcases.alias_file,
+       'application_file' : Earlier_terms.application_file,
+       'document_file' : Files_and_suitcases.document_file,
+       'font_file' : Files_and_suitcases.font_file,
+       'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
+       'internet_location' : Earlier_terms.internet_location,
+       'sound_file' : Files_and_suitcases.sound_file,
+       'clipping' : Files_and_suitcases.clipping,
+       'package' : Files_and_suitcases.package,
+       'suitcase' : Files_and_suitcases.suitcase,
+       'font_suitcase' : Files_and_suitcases.font_suitcase,
+       'accessory_suitcase' : Earlier_terms.accessory_suitcase,
+}
+trash_2d_object._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'warns_before_emptying' : warns_before_emptying,
+}
+trash_2d_object._elemdict = {
+       'item' : Earlier_terms.item,
+       'container' : container,
+       'sharable_container' : sharable_container,
+       'folder' : folder,
+       'file' : Files_and_suitcases.file,
+       'alias_file' : Files_and_suitcases.alias_file,
+       'application_file' : Earlier_terms.application_file,
+       'document_file' : Files_and_suitcases.document_file,
+       'font_file' : Files_and_suitcases.font_file,
+       'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
+       'internet_location' : Earlier_terms.internet_location,
+       'sound_file' : Files_and_suitcases.sound_file,
+       'clipping' : Files_and_suitcases.clipping,
+       'package' : Files_and_suitcases.package,
+       'suitcase' : Files_and_suitcases.suitcase,
+       'font_suitcase' : Files_and_suitcases.font_suitcase,
+       'accessory_suitcase' : Earlier_terms.accessory_suitcase,
+}
+
+#
+# Indices of types declared in this module
+#
+_classdeclarations = {
+       'priv' : sharing_privileges,
+       'cfol' : folder,
+       'cdis' : disk,
+       'sctr' : sharable_container,
+       'ctnr' : container,
+       'cdsk' : desktop_2d_object,
+       'ctrs' : trash_2d_object,
+}
+
+_propdeclarations = {
+       'ownr' : owner_privileges,
+       'spro' : protected,
+       'frsp' : free_space,
+       'sgrp' : group,
+       'pexc' : completely_expanded,
+       'sele' : selection,
+       'smou' : mounted,
+       'pexa' : expandable,
+       'istd' : startup,
+       'sdsk' : startup_disk,
+       'gppr' : group_privileges,
+       'shar' : shared,
+       'capa' : capacity,
+       'isej' : ejectable,
+       'gstp' : guest_privileges,
+       'warn' : warns_before_emptying,
+       'sown' : owner,
+       'c@#^' : _3c_Inheritance_3e_,
+       'sexp' : exported,
+       'isrv' : local_volume,
+       'iprv' : privileges_inherited,
+       'lvis' : icon_size,
+       'trsh' : trash,
+       'prvs' : see_folders,
+       'prvr' : see_files,
+       'prvw' : make_changes,
+       'pexp' : expanded,
+       'ects' : entire_contents,
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
+}
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Earlier_terms.py b/Mac/Lib/lib-scriptpackages/Finder/Earlier_terms.py
new file mode 100644 (file)
index 0000000..95d2484
--- /dev/null
@@ -0,0 +1,769 @@
+"""Suite Earlier terms: Terms that have been renamed
+Level 1, version 1
+
+Generated from Macintosh HD:Systeemmap:Finder
+AETE/AEUT resource version 0/144, language 0, script 0
+"""
+
+import aetools
+import MacOS
+
+_code = 'tpnm'
+
+from StdSuites.Type_Names_Suite import *
+class Earlier_terms_Events(Type_Names_Suite_Events):
+
+       pass
+
+
+class application(aetools.ComponentItem):
+       """application - The Finder """
+       want = 'capp'
+class properties(aetools.NProperty):
+       """properties - property that allows getting and setting of multiple properties """
+       which = 'qpro'
+       want = 'reco'
+class clipboard(aetools.NProperty):
+       """clipboard - the Finder¹s clipboard window """
+       which = 'pcli'
+       want = 'obj '
+class largest_free_block(aetools.NProperty):
+       """largest free block - the largest free block of process memory available to launch an application """
+       which = 'mfre'
+       want = 'long'
+class name(aetools.NProperty):
+       """name - the Finder¹s name """
+       which = 'pnam'
+       want = 'itxt'
+class visible(aetools.NProperty):
+       """visible - Is the Finder¹s layer visible? """
+       which = 'pvis'
+       want = 'bool'
+class frontmost(aetools.NProperty):
+       """frontmost - Is the Finder the frontmost process? """
+       which = 'pisf'
+       want = 'bool'
+class selection(aetools.NProperty):
+       """selection - the selection visible to the user """
+       which = 'sele'
+       want = 'obj '
+class insertion_location(aetools.NProperty):
+       """insertion location - the container in which a new folder would appear if ³New Folder² was selected """
+       which = 'pins'
+       want = 'obj '
+class file_sharing(aetools.NProperty):
+       """file sharing - Is file sharing on? """
+       which = 'fshr'
+       want = 'bool'
+class sharing_starting_up(aetools.NProperty):
+       """sharing starting up - Is file sharing in the process of starting up? """
+       which = 'fsup'
+       want = 'bool'
+class product_version(aetools.NProperty):
+       """product version - the version of the System software running on this computer """
+       which = 'ver2'
+       want = 'itxt'
+class version(aetools.NProperty):
+       """version - the version of the Finder """
+       which = 'vers'
+       want = 'itxt'
+class about_this_computer(aetools.NProperty):
+       """about this computer - the ³About this Computer² dialog and the list of running processes displayed in it """
+       which = 'abbx'
+       want = 'obj '
+class desktop(aetools.NProperty):
+       """desktop - the desktop """
+       which = 'desk'
+       want = 'cdsk'
+class Finder_preferences(aetools.NProperty):
+       """Finder preferences - Various preferences that apply to the Finder as a whole """
+       which = 'pfrp'
+       want = 'obj '
+
+class application_file(aetools.ComponentItem):
+       """application file - An application's file on disk """
+       want = 'appf'
+class _3c_Inheritance_3e_(aetools.NProperty):
+       """<Inheritance> - inherits some of its properties from the file class """
+       which = 'c@#^'
+       want = 'file'
+class minimum_partition_size(aetools.NProperty):
+       """minimum partition size - the smallest memory size with which the application can be launched """
+       which = 'mprt'
+       want = 'long'
+class partition_size(aetools.NProperty):
+       """partition size - the memory size with which the application will be launched """
+       which = 'appt'
+       want = 'long'
+class suggested_partition_size(aetools.NProperty):
+       """suggested partition size - the memory size with which the developer recommends the application be launched """
+       which = 'sprt'
+       want = 'long'
+class scriptable(aetools.NProperty):
+       """scriptable - Is the application high-level event aware? """
+       which = 'isab'
+       want = 'bool'
+
+class container_window(aetools.ComponentItem):
+       """container window - A window that contains items """
+       want = 'cwnd'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the window class
+class container(aetools.NProperty):
+       """container - the container from which the window was opened """
+       which = 'ctnr'
+       want = 'obj '
+class item(aetools.NProperty):
+       """item - the item from which the window was opened (always returns something) """
+       which = 'cobj'
+       want = 'obj '
+class has_custom_view_settings(aetools.NProperty):
+       """has custom view settings - Does the folder have custom view settings or is it using the default global settings? """
+       which = 'cuss'
+       want = 'long'
+class view(aetools.NProperty):
+       """view - the current view for the window (icon, name, date, etc.) """
+       which = 'pvew'
+       want = 'long'
+class previous_list_view(aetools.NProperty):
+       """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 and only available when the window is open) """
+       which = 'svew'
+       want = 'enum'
+class button_view_arrangement(aetools.NProperty):
+       """button view arrangement - the property by which to keep icons arranged within a button view window """
+       which = 'barr'
+       want = 'earr'
+class spatial_view_arrangement(aetools.NProperty):
+       """spatial view arrangement - the property by which to keep icons arranged within a spatial view window """
+       which = 'iarr'
+       want = 'earr'
+class sort_direction(aetools.NProperty):
+       """sort direction - The direction in which the window is sorted """
+       which = 'sord'
+       want = 'sodr'
+class calculate_folder_sizes(aetools.NProperty):
+       """calculate folder sizes - Are folder sizes calculated and displayed in the window? (does not apply to suitcase windows) """
+       which = 'sfsz'
+       want = 'bool'
+class show_comments(aetools.NProperty):
+       """show comments - Are comments displayed in the window? (does not apply to suitcases) """
+       which = 'scom'
+       want = 'bool'
+class show_creation_date(aetools.NProperty):
+       """show creation date - Are creation dates displayed in the window? """
+       which = 'scda'
+       want = 'bool'
+class show_kind(aetools.NProperty):
+       """show kind - Are document kinds displayed in the window? """
+       which = 'sknd'
+       want = 'bool'
+class show_label(aetools.NProperty):
+       """show label - Are labels displayed in the window? """
+       which = 'slbl'
+       want = 'bool'
+class show_modification_date(aetools.NProperty):
+       """show modification date - Are modification dates displayed in the window? """
+       which = 'sdat'
+       want = 'bool'
+class show_size(aetools.NProperty):
+       """show size - Are file sizes displayed in the window? """
+       which = 'ssiz'
+       want = 'bool'
+class show_version(aetools.NProperty):
+       """show version - Are file versions displayed in the window? (does not apply to suitcase windows) """
+       which = 'svrs'
+       want = 'bool'
+class use_relative_dates(aetools.NProperty):
+       """use relative dates - Are relative dates (e.g., today, yesterday) shown in the window? """
+       which = 'urdt'
+       want = 'bool'
+
+class accessory_process(aetools.ComponentItem):
+       """accessory process - A process launched from a desk accessory file """
+       want = 'pcda'
+
+accessory_processes = accessory_process
+
+class accessory_suitcase(aetools.ComponentItem):
+       """accessory suitcase - A desk accessory suitcase """
+       want = 'dsut'
+
+accessory_suitcases = accessory_suitcase
+
+class internet_location(aetools.ComponentItem):
+       """internet location - An file containing an internet location """
+       want = 'inlf'
+
+internet_locations = internet_location
+
+class information_window(aetools.ComponentItem):
+       """information window - An information window (opened by ³Get Info²) """
+       want = 'iwnd'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the window class
+# repeated property item the item from which this window was opened
+class comment(aetools.NProperty):
+       """comment - the comment """
+       which = 'comt'
+       want = 'itxt'
+class size(aetools.NProperty):
+       """size - the logical size of the item """
+       which = 'ptsz'
+       want = 'long'
+class physical_size(aetools.NProperty):
+       """physical size - the actual space used by the item on disk """
+       which = 'phys'
+       want = 'long'
+class creation_date(aetools.NProperty):
+       """creation date - the date on which the item was created """
+       which = 'ascd'
+       want = 'ldt '
+class modification_date(aetools.NProperty):
+       """modification date - the date on which the item was last modified """
+       which = 'asmo'
+       want = 'ldt '
+# repeated property suggested_partition_size the memory size with which the developer recommends the application be launched
+# repeated property minimum_partition_size the smallest memory size with which the application can be launched (only applies to information windows for applications)
+# repeated property partition_size the memory size with which the application will be launched (only applies to information windows for applications)
+class icon(aetools.NProperty):
+       """icon - the icon bitmap of the item """
+       which = 'iimg'
+       want = 'ifam'
+class locked(aetools.NProperty):
+       """locked - Is the item locked (applies only to file and application information windows)? """
+       which = 'aslk'
+       want = 'bool'
+class stationery(aetools.NProperty):
+       """stationery - Is the item a stationery pad? """
+       which = 'pspd'
+       want = 'bool'
+class warn_before_emptying(aetools.NProperty):
+       """warn before emptying - Display a dialog when emptying the trash (only valid for trash info window)? """
+       which = 'warn'
+       want = 'bool'
+# repeated property product_version the version of the product (visible at the top of the ³Get Info² window)
+# repeated property version the version of the file (visible at the bottom of the ³Get Info² window)
+
+class item(aetools.ComponentItem):
+       """item - An item """
+       want = 'cobj'
+# repeated property properties property that allows getting and setting of multiple properties
+# repeated property name the name of the item
+class index(aetools.NProperty):
+       """index - the index in the front-to-back ordering within its container """
+       which = 'pidx'
+       want = 'long'
+class id(aetools.NProperty):
+       """id - an id that identifies the item """
+       which = 'ID  '
+       want = 'long'
+# repeated property container the container of the item
+class disk(aetools.NProperty):
+       """disk - the disk on which the item is stored """
+       which = 'cdis'
+       want = 'obj '
+class folder(aetools.NProperty):
+       """folder - the folder in which the item is stored """
+       which = 'asdr'
+       want = 'obj '
+class position(aetools.NProperty):
+       """position - the position of the item within its parent window (can only be set for an item in a window viewed as icons or buttons) """
+       which = 'posn'
+       want = 'QDpt'
+class bounds(aetools.NProperty):
+       """bounds - the bounding rectangle of the item (can only be set for an item in a window viewed as icons or buttons) """
+       which = 'pbnd'
+       want = 'qdrt'
+class label_index(aetools.NProperty):
+       """label index - the label of the item """
+       which = 'labi'
+       want = 'long'
+class kind(aetools.NProperty):
+       """kind - the kind of the item """
+       which = 'kind'
+       want = 'itxt'
+class description(aetools.NProperty):
+       """description - a description of the item """
+       which = 'dscr'
+       want = 'itxt'
+# repeated property comment the comment of the item, displayed in the ³Get Info² window
+# repeated property size the logical size of the item
+# repeated property physical_size the actual space used by the item on disk
+# repeated property creation_date the date on which the item was created
+# repeated property modification_date the date on which the item was last modified
+# repeated property icon the icon bitmap of the item
+class selected(aetools.NProperty):
+       """selected - Is the item selected? """
+       which = 'issl'
+       want = 'bool'
+class content_space(aetools.NProperty):
+       """content space - the window that would open if the item was opened """
+       which = 'dwnd'
+       want = 'obj '
+class window(aetools.NProperty):
+       """window - the window that would open if the item was opened """
+       which = 'cwin'
+       want = 'obj '
+class information_window(aetools.NProperty):
+       """information window - the information window for the item """
+       which = 'iwnd'
+       want = 'obj '
+
+class process(aetools.ComponentItem):
+       """process - A process running on this computer """
+       want = 'prcs'
+# repeated property properties property that allows getting and setting of multiple properties
+# repeated property name the name of the process
+# repeated property visible Is the process' layer visible?
+# repeated property frontmost Is the process the frontmost process?
+class file(aetools.NProperty):
+       """file - the file from which the process was launched """
+       which = 'file'
+       want = 'obj '
+class file_type(aetools.NProperty):
+       """file type - the OSType of the file type of the process """
+       which = 'asty'
+       want = 'type'
+class creator_type(aetools.NProperty):
+       """creator type - the OSType of the creator of the process (the signature) """
+       which = 'fcrt'
+       want = 'type'
+# repeated property scriptable Is the process high-level event aware (accepts open application, open document, print document, and quit)?
+class remote_events(aetools.NProperty):
+       """remote events - Does the process accept remote events? """
+       which = 'revt'
+       want = 'bool'
+# repeated property partition_size the size of the partition with which the process was launched
+class partition_space_used(aetools.NProperty):
+       """partition space used - the number of bytes currently used in the process' partition """
+       which = 'pusd'
+       want = 'long'
+
+class sharable_container(aetools.ComponentItem):
+       """sharable container - A container that may be shared (disks and folders) """
+       want = 'sctr'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the container class
+class owner(aetools.NProperty):
+       """owner - the user that owns the container (file sharing must be on to use this property) """
+       which = 'sown'
+       want = 'itxt'
+class group(aetools.NProperty):
+       """group - the user or group that has special access to the container (file sharing must be on to use this property) """
+       which = 'sgrp'
+       want = 'itxt'
+class owner_privileges(aetools.NProperty):
+       """owner privileges - the see folders/see files/make changes privileges for the owner (file sharing must be on to use this property) """
+       which = 'ownr'
+       want = 'priv'
+class group_privileges(aetools.NProperty):
+       """group privileges - the see folders/see files/make changes privileges for the group (file sharing must be on to use this property) """
+       which = 'gppr'
+       want = 'priv'
+class guest_privileges(aetools.NProperty):
+       """guest privileges - the see folders/see files/make changes privileges for everyone (file sharing must be on to use this property) """
+       which = 'gstp'
+       want = 'priv'
+class inherited_privileges(aetools.NProperty):
+       """inherited privileges - Are the privileges of the container always the same as the container in which it is stored? (file sharing must be on to use this property) """
+       which = 'iprv'
+       want = 'bool'
+class mounted(aetools.NProperty):
+       """mounted - Is the container mounted on another machine's desktop? (file sharing must be on to use this property) """
+       which = 'smou'
+       want = 'bool'
+class exported(aetools.NProperty):
+       """exported - Is the container a share point or inside a share point, i.e., can the container be shared? (file sharing must be on to use this property) """
+       which = 'sexp'
+       want = 'bool'
+class shared(aetools.NProperty):
+       """shared - Is the container a share point, i.e., is the container currently being shared? (file sharing must be on to use this property) """
+       which = 'shar'
+       want = 'bool'
+class protected(aetools.NProperty):
+       """protected - Is the container protected from being moved, renamed and deleted? (file sharing must be on to use this property) """
+       which = 'spro'
+       want = 'bool'
+
+class trash_2d_object(aetools.ComponentItem):
+       """trash-object - Trash-object is the class of the ³trash² object """
+       want = 'ctrs'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the container class
+# repeated property warn_before_emptying Display a dialog when emptying the trash?
+
+class preferences(aetools.ComponentItem):
+       """preferences - The Finder Preferences """
+       want = 'cprf'
+# repeated property window the window that would open if Finder preferences was opened
+# repeated property calculate_folder_sizes Are folder sizes calculated and displayed in Finder list view windows?
+class delay_before_springing(aetools.NProperty):
+       """delay before springing - the delay before springing open a container in ticks (1/60th of a second) (12 is shortest delay, 60 is longest delay) """
+       which = 'dela'
+       want = 'shor'
+# repeated property show_comments Are comments displayed in default Finder list view windows?
+# repeated property show_creation_date Are creation dates displayed in default Finder list view windows?
+# repeated property show_kind Are document kinds displayed in default Finder list view windows?
+# repeated property show_label Are labels displayed in default Finder list view windows?
+# repeated property show_modification_date Are modification dates displayed in default Finder list view windows?
+# repeated property show_size Are file sizes displayed in default Finder list view windows?
+# repeated property show_version Are file versions displayed in default Finder list view windows?
+class spring_open_folders(aetools.NProperty):
+       """spring open folders - Spring open folders after the specified delay? """
+       which = 'sprg'
+       want = 'bool'
+# repeated property use_relative_dates Are relative dates (e.g., today, yesterday) shown  in Finder list view windows?
+class use_simple_menus(aetools.NProperty):
+       """use simple menus - Use simplified Finder menus? """
+       which = 'usme'
+       want = 'bool'
+class use_wide_grid(aetools.NProperty):
+       """use wide grid - Space icons on a wide grid? """
+       which = 'uswg'
+       want = 'bool'
+
+class window(aetools.ComponentItem):
+       """window - A window """
+       want = 'cwin'
+# repeated property properties property that allows getting and setting of multiple properties
+# repeated property position the upper left position of the window
+# repeated property bounds the boundary rectangle for the window
+class titled(aetools.NProperty):
+       """titled - Does the window have a title bar? """
+       which = 'ptit'
+       want = 'bool'
+# repeated property name the name of the window
+# repeated property index the number of the window in the front-to-back layer ordering
+class closeable(aetools.NProperty):
+       """closeable - Does the window have a close box? """
+       which = 'hclb'
+       want = 'bool'
+class floating(aetools.NProperty):
+       """floating - Does the window have a title bar? """
+       which = 'isfl'
+       want = 'bool'
+class modal(aetools.NProperty):
+       """modal - Is the window modal? """
+       which = 'pmod'
+       want = 'bool'
+# repeated property resizable Is the window resizable?
+class zoomable(aetools.NProperty):
+       """zoomable - Is the window zoomable? """
+       which = 'iszm'
+       want = 'bool'
+class zoomed(aetools.NProperty):
+       """zoomed - Is the window zoomed? """
+       which = 'pzum'
+       want = 'bool'
+class zoomed_full_size(aetools.NProperty):
+       """zoomed full size - Is the window zoomed to the full size of the screen? (can only be set, not read, and only applies to open non-pop-up windows) """
+       which = 'zumf'
+       want = 'bool'
+# repeated property visible Is the window visible (always true for open Finder windows)?
+class popup(aetools.NProperty):
+       """popup - Is the window is a pop-up window? (only applies to open container windows in the Finder and can only be set when the Finder is the front application) """
+       which = 'drwr'
+       want = 'bool'
+class pulled_open(aetools.NProperty):
+       """pulled open - Is the window pulled open (only applies to pop-up windows and can only be set when the Finder is the front application)? """
+       which = 'pull'
+       want = 'bool'
+class collapsed(aetools.NProperty):
+       """collapsed - Is the window collapsed (only applies to open non-pop-up windows)? """
+       which = 'wshd'
+       want = 'bool'
+application._propdict = {
+       'properties' : properties,
+       'clipboard' : clipboard,
+       'largest_free_block' : largest_free_block,
+       'name' : name,
+       'visible' : visible,
+       'frontmost' : frontmost,
+       'selection' : selection,
+       'insertion_location' : insertion_location,
+       'file_sharing' : file_sharing,
+       'sharing_starting_up' : sharing_starting_up,
+       'product_version' : product_version,
+       'version' : version,
+       'about_this_computer' : about_this_computer,
+       'desktop' : desktop,
+       'Finder_preferences' : Finder_preferences,
+}
+application._elemdict = {
+}
+application_file._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'minimum_partition_size' : minimum_partition_size,
+       'partition_size' : partition_size,
+       'suggested_partition_size' : suggested_partition_size,
+       'scriptable' : scriptable,
+}
+application_file._elemdict = {
+}
+container_window._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'container' : container,
+       'item' : item,
+       'has_custom_view_settings' : has_custom_view_settings,
+       'view' : view,
+       'previous_list_view' : previous_list_view,
+       'button_view_arrangement' : button_view_arrangement,
+       'spatial_view_arrangement' : spatial_view_arrangement,
+       'sort_direction' : sort_direction,
+       'calculate_folder_sizes' : calculate_folder_sizes,
+       'show_comments' : show_comments,
+       'show_creation_date' : show_creation_date,
+       'show_kind' : show_kind,
+       'show_label' : show_label,
+       'show_modification_date' : show_modification_date,
+       'show_size' : show_size,
+       'show_version' : show_version,
+       'use_relative_dates' : use_relative_dates,
+}
+container_window._elemdict = {
+}
+accessory_process._propdict = {
+}
+accessory_process._elemdict = {
+}
+accessory_suitcase._propdict = {
+}
+accessory_suitcase._elemdict = {
+}
+internet_location._propdict = {
+}
+internet_location._elemdict = {
+}
+information_window._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'item' : item,
+       'comment' : comment,
+       'size' : size,
+       'physical_size' : physical_size,
+       'creation_date' : creation_date,
+       'modification_date' : modification_date,
+       'suggested_partition_size' : suggested_partition_size,
+       'minimum_partition_size' : minimum_partition_size,
+       'partition_size' : partition_size,
+       'icon' : icon,
+       'locked' : locked,
+       'stationery' : stationery,
+       'warn_before_emptying' : warn_before_emptying,
+       'product_version' : product_version,
+       'version' : version,
+}
+information_window._elemdict = {
+}
+item._propdict = {
+       'properties' : properties,
+       'name' : name,
+       'index' : index,
+       'id' : id,
+       'container' : container,
+       'disk' : disk,
+       'folder' : folder,
+       'position' : position,
+       'bounds' : bounds,
+       'label_index' : label_index,
+       'kind' : kind,
+       'description' : description,
+       'comment' : comment,
+       'size' : size,
+       'physical_size' : physical_size,
+       'creation_date' : creation_date,
+       'modification_date' : modification_date,
+       'icon' : icon,
+       'selected' : selected,
+       'content_space' : content_space,
+       'window' : window,
+       'information_window' : information_window,
+}
+item._elemdict = {
+}
+process._propdict = {
+       'properties' : properties,
+       'name' : name,
+       'visible' : visible,
+       'frontmost' : frontmost,
+       'file' : file,
+       'file_type' : file_type,
+       'creator_type' : creator_type,
+       'scriptable' : scriptable,
+       'remote_events' : remote_events,
+       'partition_size' : partition_size,
+       'partition_space_used' : partition_space_used,
+}
+process._elemdict = {
+}
+sharable_container._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'owner' : owner,
+       'group' : group,
+       'owner_privileges' : owner_privileges,
+       'group_privileges' : group_privileges,
+       'guest_privileges' : guest_privileges,
+       'inherited_privileges' : inherited_privileges,
+       'mounted' : mounted,
+       'exported' : exported,
+       'shared' : shared,
+       'protected' : protected,
+}
+sharable_container._elemdict = {
+}
+trash_2d_object._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'warn_before_emptying' : warn_before_emptying,
+}
+trash_2d_object._elemdict = {
+}
+preferences._propdict = {
+       'window' : window,
+       'calculate_folder_sizes' : calculate_folder_sizes,
+       'delay_before_springing' : delay_before_springing,
+       'show_comments' : show_comments,
+       'show_creation_date' : show_creation_date,
+       'show_kind' : show_kind,
+       'show_label' : show_label,
+       'show_modification_date' : show_modification_date,
+       'show_size' : show_size,
+       'show_version' : show_version,
+       'spring_open_folders' : spring_open_folders,
+       'use_relative_dates' : use_relative_dates,
+       'use_simple_menus' : use_simple_menus,
+       'use_wide_grid' : use_wide_grid,
+}
+preferences._elemdict = {
+}
+window._propdict = {
+       'properties' : properties,
+       'position' : position,
+       'bounds' : bounds,
+       'titled' : titled,
+       'name' : name,
+       'index' : index,
+       'closeable' : closeable,
+       'floating' : floating,
+       'modal' : modal,
+       'resizable' : resizable,
+       'zoomable' : zoomable,
+       'zoomed' : zoomed,
+       'zoomed_full_size' : zoomed_full_size,
+       'visible' : visible,
+       'popup' : popup,
+       'pulled_open' : pulled_open,
+       'collapsed' : collapsed,
+}
+window._elemdict = {
+}
+
+#
+# Indices of types declared in this module
+#
+_classdeclarations = {
+       'iwnd' : information_window,
+       'cwnd' : container_window,
+       'inlf' : internet_location,
+       'appf' : application_file,
+       'prcs' : process,
+       'cobj' : item,
+       'cwin' : window,
+       'pcda' : accessory_process,
+       'ctrs' : trash_2d_object,
+       'capp' : application,
+       'cprf' : preferences,
+       'sctr' : sharable_container,
+       'dsut' : accessory_suitcase,
+}
+
+_propdeclarations = {
+       'pidx' : index,
+       'scda' : show_creation_date,
+       'qpro' : properties,
+       'fshr' : file_sharing,
+       'pvew' : view,
+       'pusd' : partition_space_used,
+       'aslk' : locked,
+       'sdat' : show_modification_date,
+       'issl' : selected,
+       'pvis' : visible,
+       'slbl' : show_label,
+       'wshd' : collapsed,
+       'cdis' : disk,
+       'usme' : use_simple_menus,
+       'sord' : sort_direction,
+       'sexp' : exported,
+       'comt' : comment,
+       'dscr' : description,
+       'svew' : previous_list_view,
+       'svrs' : show_version,
+       'sknd' : show_kind,
+       'phys' : physical_size,
+       'iarr' : spatial_view_arrangement,
+       'smou' : mounted,
+       'posn' : position,
+       'cobj' : item,
+       'revt' : remote_events,
+       'asmo' : modification_date,
+       'ssiz' : show_size,
+       'pnam' : name,
+       'mprt' : minimum_partition_size,
+       'cwin' : window,
+       'pcli' : clipboard,
+       'spro' : protected,
+       'sprt' : suggested_partition_size,
+       'pisf' : frontmost,
+       'sele' : selection,
+       'pmod' : modal,
+       'fcrt' : creator_type,
+       'shar' : shared,
+       'dwnd' : content_space,
+       'zumf' : zoomed_full_size,
+       'sfsz' : calculate_folder_sizes,
+       'ID  ' : id,
+       'c@#^' : _3c_Inheritance_3e_,
+       'pspd' : stationery,
+       'iprv' : inherited_privileges,
+       'pfrp' : Finder_preferences,
+       'barr' : button_view_arrangement,
+       'ownr' : owner_privileges,
+       'drwr' : popup,
+       'sgrp' : group,
+       'ptsz' : size,
+       'kind' : kind,
+       'pull' : pulled_open,
+       'abbx' : about_this_computer,
+       'ctnr' : container,
+       'ascd' : creation_date,
+       'desk' : desktop,
+       'warn' : warn_before_emptying,
+       'iszm' : zoomable,
+       'isab' : scriptable,
+       'gstp' : guest_privileges,
+       'vers' : version,
+       'dela' : delay_before_springing,
+       'ptit' : titled,
+       'uswg' : use_wide_grid,
+       'cuss' : has_custom_view_settings,
+       'labi' : label_index,
+       'iwnd' : information_window,
+       'file' : file,
+       'asty' : file_type,
+       'appt' : partition_size,
+       'scom' : show_comments,
+       'pins' : insertion_location,
+       'pbnd' : bounds,
+       'urdt' : use_relative_dates,
+       'fsup' : sharing_starting_up,
+       'sown' : owner,
+       'isfl' : floating,
+       'hclb' : closeable,
+       'iimg' : icon,
+       'gppr' : group_privileges,
+       'asdr' : folder,
+       'sprg' : spring_open_folders,
+       'pzum' : zoomed,
+       'ver2' : product_version,
+       'mfre' : largest_free_block,
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
+}
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Enumerations.py b/Mac/Lib/lib-scriptpackages/Finder/Enumerations.py
new file mode 100644 (file)
index 0000000..4aa9d46
--- /dev/null
@@ -0,0 +1,107 @@
+"""Suite Enumerations: Enumerations for the Finder
+Level 1, version 1
+
+Generated from Macintosh HD:Systeemmap:Finder
+AETE/AEUT resource version 0/144, language 0, script 0
+"""
+
+import aetools
+import MacOS
+
+_code = 'tpnm'
+
+from StdSuites.Type_Names_Suite import *
+class Enumerations_Events(Type_Names_Suite_Events):
+
+       pass
+
+_Enum_ipnl = {
+       'General_Information_panel' : 'gpnl',   # 
+       'Sharing_panel' : 'spnl',       # 
+       'Memory_panel' : 'mpnl',        # 
+       'Status_and_Configuration_panel' : 'scnl',      # 
+       'Fonts_panel' : 'fpnl', # 
+}
+
+_Enum_pple = {
+       'General_Preferences_panel' : 'pgnp',   # 
+       'Label_Preferences_panel' : 'plbp',     # 
+       'Icon_View_Preferences_panel' : 'pivp', # 
+       'Button_View_Preferences_panel' : 'pbvp',       # 
+       'List_View_Preferences_panel' : 'plvp', # 
+}
+
+_Enum_earr = {
+       'not_arranged' : 'narr',        # 
+       'snap_to_grid' : 'grda',        # 
+       'arranged_by_name' : 'nama',    # 
+       'arranged_by_modification_date' : 'mdta',       # 
+       'arranged_by_creation_date' : 'cdta',   # 
+       'arranged_by_size' : 'siza',    # 
+       'arranged_by_kind' : 'kina',    # 
+       'arranged_by_label' : 'laba',   # 
+}
+
+_Enum_sodr = {
+       'normal' : 'snrm',      # 
+       'reversed' : 'srvs',    # 
+}
+
+_Enum_isiz = {
+       'mini' : 'miic',        # 
+       'small' : 'smic',       # 
+       'large' : 'lgic',       # 
+}
+
+_Enum_vwby = {
+       'conflicts' : 'cflc',   # 
+       'existing_items' : 'exsi',      # 
+       'small_icon' : 'smic',  # 
+       'icon' : 'iimg',        # 
+       'name' : 'pnam',        # 
+       'modification_date' : 'asmo',   # 
+       'size' : 'ptsz',        # 
+       'kind' : 'kind',        # 
+       'comment' : 'comt',     # 
+       'label' : 'labi',       # 
+       'version' : 'vers',     # 
+       'creation_date' : 'ascd',       # 
+       'small_button' : 'smbu',        # 
+       'large_button' : 'lgbu',        # 
+       'grid' : 'grid',        # 
+       'all' : 'kyal', # 
+}
+
+_Enum_gsen = {
+       'CPU' : 'proc', # 
+       'FPU' : 'fpu ', # 
+       'MMU' : 'mmu ', # 
+       'hardware' : 'hdwr',    # 
+       'operating_system' : 'os  ',    # 
+       'sound_system' : 'snd ',        # 
+       'memory_available' : 'lram',    # 
+       'memory_installed' : 'ram ',    # 
+}
+
+
+#
+# Indices of types declared in this module
+#
+_classdeclarations = {
+}
+
+_propdeclarations = {
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
+       'gsen' : _Enum_gsen,
+       'earr' : _Enum_earr,
+       'isiz' : _Enum_isiz,
+       'vwby' : _Enum_vwby,
+       'pple' : _Enum_pple,
+       'ipnl' : _Enum_ipnl,
+       'sodr' : _Enum_sodr,
+}
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Files_and_suitcases.py b/Mac/Lib/lib-scriptpackages/Finder/Files_and_suitcases.py
new file mode 100644 (file)
index 0000000..2e77ba9
--- /dev/null
@@ -0,0 +1,295 @@
+"""Suite Files and suitcases: Classes representing files and suitcases
+Level 1, version 1
+
+Generated from Macintosh HD:Systeemmap:Finder
+AETE/AEUT resource version 0/144, language 0, script 0
+"""
+
+import aetools
+import MacOS
+
+_code = 'fndr'
+
+class Files_and_suitcases_Events:
+
+       pass
+
+
+class file(aetools.ComponentItem):
+       """file - A file """
+       want = 'file'
+class _3c_Inheritance_3e_(aetools.NProperty):
+       """<Inheritance> - inherits some of its properties from the item class """
+       which = 'c@#^'
+       want = 'cobj'
+class file_type(aetools.NProperty):
+       """file type - the OSType identifying the type of data contained in the item """
+       which = 'asty'
+       want = 'type'
+class creator_type(aetools.NProperty):
+       """creator type - the OSType identifying the application that created the item """
+       which = 'fcrt'
+       want = 'type'
+class locked(aetools.NProperty):
+       """locked - Is the file locked? """
+       which = 'aslk'
+       want = 'bool'
+class stationery(aetools.NProperty):
+       """stationery - Is the file a stationery pad? """
+       which = 'pspd'
+       want = 'bool'
+class product_version(aetools.NProperty):
+       """product version - the version of the product (visible at the top of the ³Get Info² window) """
+       which = 'ver2'
+       want = 'itxt'
+class version(aetools.NProperty):
+       """version - the version of the file (visible at the bottom of the ³Get Info² window) """
+       which = 'vers'
+       want = 'itxt'
+
+files = file
+
+class alias_file(aetools.ComponentItem):
+       """alias file - An alias file (created with ³Make Alias²) """
+       want = 'alia'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the file class
+class original_item(aetools.NProperty):
+       """original item - the original item pointed to by the alias """
+       which = 'orig'
+       want = 'obj '
+
+alias_files = alias_file
+
+class application_file(aetools.ComponentItem):
+       """application file - An application's file on disk """
+       want = 'appf'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the file class
+class suggested_size(aetools.NProperty):
+       """suggested size - the memory size with which the developer recommends the application be launched """
+       which = 'sprt'
+       want = 'long'
+class minimum_size(aetools.NProperty):
+       """minimum size - the smallest memory size with which the application can be launched """
+       which = 'mprt'
+       want = 'long'
+class preferred_size(aetools.NProperty):
+       """preferred size - the memory size with which the application will be launched """
+       which = 'appt'
+       want = 'long'
+class accepts_high_level_events(aetools.NProperty):
+       """accepts high level events - Is the application high-level event aware? """
+       which = 'isab'
+       want = 'bool'
+class has_scripting_terminology(aetools.NProperty):
+       """has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """
+       which = 'hscr'
+       want = 'bool'
+
+application_files = application_file
+
+class document_file(aetools.ComponentItem):
+       """document file - A document file """
+       want = 'docf'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the file class
+
+document_files = document_file
+
+class font_file(aetools.ComponentItem):
+       """font file - A font file """
+       want = 'fntf'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the file class
+
+font_files = font_file
+
+class desk_accessory_file(aetools.ComponentItem):
+       """desk accessory file - A desk accessory file """
+       want = 'dafi'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the file class
+
+desk_accessory_files = desk_accessory_file
+
+class internet_location_file(aetools.ComponentItem):
+       """internet location file - An file containing an internet location """
+       want = 'inlf'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the file class
+class location(aetools.NProperty):
+       """location - the internet location """
+       which = 'iloc'
+       want = 'itxt'
+
+internet_location_files = internet_location_file
+
+class sound_file(aetools.ComponentItem):
+       """sound file - A sound file """
+       want = 'sndf'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the file class
+class sound(aetools.NProperty):
+       """sound - the sound data """
+       which = 'snd '
+       want = 'snd '
+
+sound_files = sound_file
+
+class clipping(aetools.ComponentItem):
+       """clipping - A clipping """
+       want = 'clpf'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the file class
+
+clippings = clipping
+
+class package(aetools.ComponentItem):
+       """package - A package """
+       want = 'pack'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the item class
+
+packages = package
+
+class suitcase(aetools.ComponentItem):
+       """suitcase - A font or desk accessory suitcase """
+       want = 'stcs'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the file class
+#        element 'cobj' as ['indx', 'name']
+
+suitcases = suitcase
+
+class font_suitcase(aetools.ComponentItem):
+       """font suitcase - A font suitcase """
+       want = 'fsut'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the suitcase class
+#        element 'cobj' as ['indx', 'name']
+
+font_suitcases = font_suitcase
+
+class desk_accessory_suitcase(aetools.ComponentItem):
+       """desk accessory suitcase - A desk accessory suitcase """
+       want = 'dsut'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the suitcase class
+#        element 'cobj' as ['indx', 'name']
+
+desk_accessory_suitcases = desk_accessory_suitcase
+file._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'file_type' : file_type,
+       'creator_type' : creator_type,
+       'locked' : locked,
+       'stationery' : stationery,
+       'product_version' : product_version,
+       'version' : version,
+}
+file._elemdict = {
+}
+alias_file._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'original_item' : original_item,
+}
+alias_file._elemdict = {
+}
+application_file._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'suggested_size' : suggested_size,
+       'minimum_size' : minimum_size,
+       'preferred_size' : preferred_size,
+       'accepts_high_level_events' : accepts_high_level_events,
+       'has_scripting_terminology' : has_scripting_terminology,
+}
+application_file._elemdict = {
+}
+document_file._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+}
+document_file._elemdict = {
+}
+font_file._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+}
+font_file._elemdict = {
+}
+desk_accessory_file._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+}
+desk_accessory_file._elemdict = {
+}
+internet_location_file._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'location' : location,
+}
+internet_location_file._elemdict = {
+}
+sound_file._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'sound' : sound,
+}
+sound_file._elemdict = {
+}
+clipping._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+}
+clipping._elemdict = {
+}
+package._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+}
+package._elemdict = {
+}
+import Earlier_terms
+suitcase._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+}
+suitcase._elemdict = {
+       'item' : Earlier_terms.item,
+}
+font_suitcase._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+}
+font_suitcase._elemdict = {
+       'item' : Earlier_terms.item,
+}
+desk_accessory_suitcase._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+}
+desk_accessory_suitcase._elemdict = {
+       'item' : Earlier_terms.item,
+}
+
+#
+# Indices of types declared in this module
+#
+_classdeclarations = {
+       'clpf' : clipping,
+       'docf' : document_file,
+       'stcs' : suitcase,
+       'appf' : application_file,
+       'file' : file,
+       'fsut' : font_suitcase,
+       'pack' : package,
+       'dafi' : desk_accessory_file,
+       'alia' : alias_file,
+       'dsut' : desk_accessory_suitcase,
+       'inlf' : internet_location_file,
+       'fntf' : font_file,
+       'sndf' : sound_file,
+}
+
+_propdeclarations = {
+       'orig' : original_item,
+       'pspd' : stationery,
+       'aslk' : locked,
+       'iloc' : location,
+       'mprt' : minimum_size,
+       'fcrt' : creator_type,
+       'c@#^' : _3c_Inheritance_3e_,
+       'asty' : file_type,
+       'hscr' : has_scripting_terminology,
+       'sprt' : suggested_size,
+       'appt' : preferred_size,
+       'isab' : accepts_high_level_events,
+       'snd ' : sound,
+       'ver2' : product_version,
+       'vers' : version,
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
+}
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Finder_Basics.py b/Mac/Lib/lib-scriptpackages/Finder/Finder_Basics.py
new file mode 100644 (file)
index 0000000..c75a219
--- /dev/null
@@ -0,0 +1,370 @@
+"""Suite Finder Basics: Commonly-used Finder commands and object classes
+Level 1, version 1
+
+Generated from Macintosh HD:Systeemmap:Finder
+AETE/AEUT resource version 0/144, language 0, script 0
+"""
+
+import aetools
+import MacOS
+
+_code = 'fndr'
+
+class Finder_Basics_Events:
+
+       _argmap_computer = {
+               'has' : 'has ',
+       }
+
+       def computer(self, _object, _attributes={}, **_arguments):
+               """computer: Test attributes of this computer
+               Required argument: the attribute to test
+               Keyword argument has: test specific bits of response
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               Returns: the result of the query
+               """
+               _code = 'fndr'
+               _subcode = 'gstl'
+
+               aetools.keysubst(_arguments, self._argmap_computer)
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def copy(self, _no_object=None, _attributes={}, **_arguments):
+               """copy: Copy the selected items to the clipboard (the Finder must be the front application)
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'misc'
+               _subcode = 'copy'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               if _no_object != None: raise TypeError, 'No direct arg expected'
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def restart(self, _no_object=None, _attributes={}, **_arguments):
+               """restart: Restart the computer
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'fndr'
+               _subcode = 'rest'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               if _no_object != None: raise TypeError, 'No direct arg expected'
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def shut_down(self, _no_object=None, _attributes={}, **_arguments):
+               """shut down: Shut Down the computer
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'fndr'
+               _subcode = 'shut'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               if _no_object != None: raise TypeError, 'No direct arg expected'
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def sleep(self, _no_object=None, _attributes={}, **_arguments):
+               """sleep: Put the computer to sleep
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'fndr'
+               _subcode = 'slep'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               if _no_object != None: raise TypeError, 'No direct arg expected'
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       _argmap_sort = {
+               'by' : 'by  ',
+       }
+
+       def sort(self, _object, _attributes={}, **_arguments):
+               """sort: Return the specified object(s) in a sorted list
+               Required argument: a list of finder objects to sort
+               Keyword argument by: the property to sort the items by (name, index, date, etc.)
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               Returns: the sorted items in their new order
+               """
+               _code = 'DATA'
+               _subcode = 'SORT'
+
+               aetools.keysubst(_arguments, self._argmap_sort)
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+
+class application(aetools.ComponentItem):
+       """application - The Finder """
+       want = 'capp'
+class clipboard(aetools.NProperty):
+       """clipboard - the Finder¹s clipboard window """
+       which = 'pcli'
+       want = 'obj '
+class largest_free_block(aetools.NProperty):
+       """largest free block - the largest free block of process memory available to launch an application """
+       which = 'mfre'
+       want = 'long'
+class name(aetools.NProperty):
+       """name - the Finder¹s name """
+       which = 'pnam'
+       want = 'itxt'
+class visible(aetools.NProperty):
+       """visible - Is the Finder¹s layer visible? """
+       which = 'pvis'
+       want = 'bool'
+class frontmost(aetools.NProperty):
+       """frontmost - Is the Finder the frontmost process? """
+       which = 'pisf'
+       want = 'bool'
+class selection(aetools.NProperty):
+       """selection - the selection visible to the user """
+       which = 'sele'
+       want = 'obj '
+class insertion_location(aetools.NProperty):
+       """insertion location - the container in which a new folder would appear if ³New Folder² was selected """
+       which = 'pins'
+       want = 'obj '
+class file_sharing(aetools.NProperty):
+       """file sharing - Is file sharing on? """
+       which = 'fshr'
+       want = 'bool'
+class sharing_starting_up(aetools.NProperty):
+       """sharing starting up - Is file sharing in the process of starting up? """
+       which = 'fsup'
+       want = 'bool'
+class product_version(aetools.NProperty):
+       """product version - the version of the System software running on this computer """
+       which = 'ver2'
+       want = 'itxt'
+class version(aetools.NProperty):
+       """version - the version of the Finder """
+       which = 'vers'
+       want = 'itxt'
+class about_this_computer(aetools.NProperty):
+       """about this computer - the ³About this Computer² dialog and the list of running processes displayed in it """
+       which = 'abbx'
+       want = 'obj '
+class desktop(aetools.NProperty):
+       """desktop - the desktop """
+       which = 'desk'
+       want = 'cdsk'
+class Finder_preferences(aetools.NProperty):
+       """Finder preferences - Various preferences that apply to the Finder as a whole """
+       which = 'pfrp'
+       want = 'cprf'
+#        element 'cobj' as ['indx', 'name']
+#        element 'ctnr' as ['indx', 'name']
+#        element 'sctr' as ['indx', 'name']
+#        element 'cdis' as ['indx', 'name', 'ID  ']
+#        element 'cfol' as ['indx', 'name', 'ID  ']
+#        element 'file' as ['indx', 'name']
+#        element 'alia' as ['indx', 'name']
+#        element 'appf' as ['indx', 'name', 'ID  ']
+#        element 'docf' as ['indx', 'name']
+#        element 'fntf' as ['indx', 'name']
+#        element 'dafi' as ['indx', 'name']
+#        element 'inlf' as ['indx', 'name']
+#        element 'sndf' as ['indx', 'name']
+#        element 'clpf' as ['indx', 'name']
+#        element 'pack' as ['indx', 'name']
+#        element 'stcs' as ['indx', 'name']
+#        element 'fsut' as ['indx', 'name']
+#        element 'dsut' as ['indx', 'name']
+#        element 'prcs' as ['indx', 'name']
+#        element 'pcap' as ['indx', 'name']
+#        element 'pcda' as ['indx', 'name']
+#        element 'cwin' as ['indx', 'name']
+#        element 'cwnd' as ['indx', 'name']
+#        element 'iwnd' as ['indx', 'name']
+#        element 'lwnd' as ['indx', 'name']
+#        element 'dwnd' as ['indx', 'name']
+
+class special_folders(aetools.ComponentItem):
+       """special folders - The special folders used by the Mac OS """
+       want = 'spfl'
+class system_folder(aetools.NProperty):
+       """system folder - the System folder """
+       which = 'macs'
+       want = 'obj '
+class apple_menu_items_folder(aetools.NProperty):
+       """apple menu items folder - the special folder named ³Apple Menu Items,² the contents of which appear in the Apple menu """
+       which = 'amnu'
+       want = 'obj '
+class control_panels_folder(aetools.NProperty):
+       """control panels folder - the special folder named ³Control Panels² """
+       which = 'ctrl'
+       want = 'obj '
+class extensions_folder(aetools.NProperty):
+       """extensions folder - the special folder named ³Extensions² """
+       which = 'extn'
+       want = 'obj '
+class fonts_folder(aetools.NProperty):
+       """fonts folder - the special folder named ³Fonts² """
+       which = 'font'
+       want = 'obj '
+class preferences_folder(aetools.NProperty):
+       """preferences folder - the special folder named ³Preferences² """
+       which = 'pref'
+       want = 'obj '
+class shutdown_items_folder(aetools.NProperty):
+       """shutdown items folder - the special folder named ³Shutdown Items² """
+       which = 'shdf'
+       want = 'obj '
+class startup_items_folder(aetools.NProperty):
+       """startup items folder - the special folder named ³Startup Items² """
+       which = 'strt'
+       want = 'obj '
+class temporary_items_folder(aetools.NProperty):
+       """temporary items folder - the special folder named ³Temporary Items² (invisible) """
+       which = 'temp'
+       want = 'obj '
+import Earlier_terms
+import Containers_and_folders
+import Files_and_suitcases
+import Process_classes
+import Window_classes
+application._propdict = {
+       'clipboard' : clipboard,
+       'largest_free_block' : largest_free_block,
+       'name' : name,
+       'visible' : visible,
+       'frontmost' : frontmost,
+       'selection' : selection,
+       'insertion_location' : insertion_location,
+       'file_sharing' : file_sharing,
+       'sharing_starting_up' : sharing_starting_up,
+       'product_version' : product_version,
+       'version' : version,
+       'about_this_computer' : about_this_computer,
+       'desktop' : desktop,
+       'Finder_preferences' : Finder_preferences,
+}
+application._elemdict = {
+       'item' : Earlier_terms.item,
+       'container' : Containers_and_folders.container,
+       'sharable_container' : Earlier_terms.sharable_container,
+       'disk' : Containers_and_folders.disk,
+       'folder' : Containers_and_folders.folder,
+       'file' : Files_and_suitcases.file,
+       'alias_file' : Files_and_suitcases.alias_file,
+       'application_file' : Earlier_terms.application_file,
+       'document_file' : Files_and_suitcases.document_file,
+       'font_file' : Files_and_suitcases.font_file,
+       'desk_accessory_file' : Files_and_suitcases.desk_accessory_file,
+       'internet_location' : Earlier_terms.internet_location,
+       'sound_file' : Files_and_suitcases.sound_file,
+       'clipping' : Files_and_suitcases.clipping,
+       'package' : Files_and_suitcases.package,
+       'suitcase' : Files_and_suitcases.suitcase,
+       'font_suitcase' : Files_and_suitcases.font_suitcase,
+       'accessory_suitcase' : Earlier_terms.accessory_suitcase,
+       'process' : Earlier_terms.process,
+       'application_process' : Process_classes.application_process,
+       'accessory_process' : Earlier_terms.accessory_process,
+       'window' : Earlier_terms.window,
+       'container_window' : Earlier_terms.container_window,
+       'information_window' : Earlier_terms.information_window,
+       'clipping_window' : Window_classes.clipping_window,
+       'content_space' : Window_classes.content_space,
+}
+special_folders._propdict = {
+       'system_folder' : system_folder,
+       'apple_menu_items_folder' : apple_menu_items_folder,
+       'control_panels_folder' : control_panels_folder,
+       'extensions_folder' : extensions_folder,
+       'fonts_folder' : fonts_folder,
+       'preferences_folder' : preferences_folder,
+       'shutdown_items_folder' : shutdown_items_folder,
+       'startup_items_folder' : startup_items_folder,
+       'temporary_items_folder' : temporary_items_folder,
+}
+special_folders._elemdict = {
+}
+
+#
+# Indices of types declared in this module
+#
+_classdeclarations = {
+       'spfl' : special_folders,
+       'capp' : application,
+}
+
+_propdeclarations = {
+       'amnu' : apple_menu_items_folder,
+       'extn' : extensions_folder,
+       'pnam' : name,
+       'fshr' : file_sharing,
+       'pcli' : clipboard,
+       'strt' : startup_items_folder,
+       'pref' : preferences_folder,
+       'pisf' : frontmost,
+       'pins' : insertion_location,
+       'pvis' : visible,
+       'abbx' : about_this_computer,
+       'temp' : temporary_items_folder,
+       'font' : fonts_folder,
+       'pfrp' : Finder_preferences,
+       'desk' : desktop,
+       'fsup' : sharing_starting_up,
+       'mfre' : largest_free_block,
+       'ctrl' : control_panels_folder,
+       'sele' : selection,
+       'shdf' : shutdown_items_folder,
+       'macs' : system_folder,
+       'ver2' : product_version,
+       'vers' : version,
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
+}
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py b/Mac/Lib/lib-scriptpackages/Finder/Finder_items.py
new file mode 100644 (file)
index 0000000..cc87f7f
--- /dev/null
@@ -0,0 +1,332 @@
+"""Suite Finder items: Commands used with file system items, and basic item definition
+Level 1, version 1
+
+Generated from Macintosh HD:Systeemmap:Finder
+AETE/AEUT resource version 0/144, language 0, script 0
+"""
+
+import aetools
+import MacOS
+
+_code = 'fndr'
+
+class Finder_items_Events:
+
+       def add_to_favorites(self, _object, _attributes={}, **_arguments):
+               """add to favorites: Add the items to the Favorites menu in the Apple Menu and in Open and Save dialogs
+               Required argument: the items to add to the collection of Favorites
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'fndr'
+               _subcode = 'ffav'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       _argmap_clean_up = {
+               'by' : 'by  ',
+       }
+
+       def clean_up(self, _object, _attributes={}, **_arguments):
+               """clean up: Arrange items in window nicely (only applies to open windows in icon or button views that are not kept arranged)
+               Required argument: the window to clean up
+               Keyword argument by: the order in which to clean up the objects (name, index, date, etc.)
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'fndr'
+               _subcode = 'fclu'
+
+               aetools.keysubst(_arguments, self._argmap_clean_up)
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def eject(self, _object=None, _attributes={}, **_arguments):
+               """eject: Eject the specified disk(s), or every ejectable disk if no parameter is specified
+               Required argument: the items to eject
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'fndr'
+               _subcode = 'ejct'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def empty(self, _object=None, _attributes={}, **_arguments):
+               """empty: Empty the trash
+               Required argument: ³empty² and ³empty trash² both do the same thing
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'fndr'
+               _subcode = 'empt'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def erase(self, _object, _attributes={}, **_arguments):
+               """erase: Erase the specified disk(s)
+               Required argument: the items to erase
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'fndr'
+               _subcode = 'fera'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def put_away(self, _object, _attributes={}, **_arguments):
+               """put away: Put away the specified object(s)
+               Required argument: the items to put away
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               Returns: the object put away in its put-away location
+               """
+               _code = 'fndr'
+               _subcode = 'ptwy'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def reveal(self, _object, _attributes={}, **_arguments):
+               """reveal: Bring the specified object(s) into view
+               Required argument: the object to be made visible
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'misc'
+               _subcode = 'mvis'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def update(self, _object, _attributes={}, **_arguments):
+               """update: Update the display of the specified object(s) to match their on-disk representation
+               Required argument: the item to update
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'fndr'
+               _subcode = 'fupd'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+
+class item(aetools.ComponentItem):
+       """item - An item """
+       want = 'cobj'
+class name(aetools.NProperty):
+       """name - the name of the item """
+       which = 'pnam'
+       want = 'itxt'
+class index(aetools.NProperty):
+       """index - the index in the front-to-back ordering within its container """
+       which = 'pidx'
+       want = 'long'
+class id(aetools.NProperty):
+       """id - an id that identifies the item """
+       which = 'ID  '
+       want = 'long'
+class container(aetools.NProperty):
+       """container - the container of the item """
+       which = 'ctnr'
+       want = 'obj '
+class disk(aetools.NProperty):
+       """disk - the disk on which the item is stored """
+       which = 'cdis'
+       want = 'obj '
+class folder(aetools.NProperty):
+       """folder - the folder in which the item is stored """
+       which = 'asdr'
+       want = 'obj '
+class position(aetools.NProperty):
+       """position - the position of the item within its parent window (can only be set for an item in a window viewed as icons or buttons) """
+       which = 'posn'
+       want = 'QDpt'
+class bounds(aetools.NProperty):
+       """bounds - the bounding rectangle of the item (can only be set for an item in a window viewed as icons or buttons) """
+       which = 'pbnd'
+       want = 'qdrt'
+class label_index(aetools.NProperty):
+       """label index - the label of the item """
+       which = 'labi'
+       want = 'long'
+class kind(aetools.NProperty):
+       """kind - the kind of the item """
+       which = 'kind'
+       want = 'itxt'
+class description(aetools.NProperty):
+       """description - a description of the item """
+       which = 'dscr'
+       want = 'itxt'
+class comment(aetools.NProperty):
+       """comment - the comment of the item, displayed in the ³Get Info² window """
+       which = 'comt'
+       want = 'itxt'
+class size(aetools.NProperty):
+       """size - the logical size of the item """
+       which = 'ptsz'
+       want = 'long'
+class physical_size(aetools.NProperty):
+       """physical size - the actual space used by the item on disk """
+       which = 'phys'
+       want = 'long'
+class creation_date(aetools.NProperty):
+       """creation date - the date on which the item was created """
+       which = 'ascd'
+       want = 'ldt '
+class modification_date(aetools.NProperty):
+       """modification date - the date on which the item was last modified """
+       which = 'asmo'
+       want = 'ldt '
+class icon(aetools.NProperty):
+       """icon - the icon bitmap of the item """
+       which = 'iimg'
+       want = 'ifam'
+class selected(aetools.NProperty):
+       """selected - Is the item selected? """
+       which = 'issl'
+       want = 'bool'
+class content_space(aetools.NProperty):
+       """content space - the window that would open if the item was opened """
+       which = 'dwnd'
+       want = 'obj '
+class window(aetools.NProperty):
+       """window - the window that would open if the item was opened """
+       which = 'cwin'
+       want = 'obj '
+class information_window(aetools.NProperty):
+       """information window - the information window for the item """
+       which = 'iwnd'
+       want = 'obj '
+
+items = item
+item._propdict = {
+       'name' : name,
+       'index' : index,
+       'id' : id,
+       'container' : container,
+       'disk' : disk,
+       'folder' : folder,
+       'position' : position,
+       'bounds' : bounds,
+       'label_index' : label_index,
+       'kind' : kind,
+       'description' : description,
+       'comment' : comment,
+       'size' : size,
+       'physical_size' : physical_size,
+       'creation_date' : creation_date,
+       'modification_date' : modification_date,
+       'icon' : icon,
+       'selected' : selected,
+       'content_space' : content_space,
+       'window' : window,
+       'information_window' : information_window,
+}
+item._elemdict = {
+}
+
+#
+# Indices of types declared in this module
+#
+_classdeclarations = {
+       'cobj' : item,
+}
+
+_propdeclarations = {
+       'iwnd' : information_window,
+       'cdis' : disk,
+       'asmo' : modification_date,
+       'ascd' : creation_date,
+       'pnam' : name,
+       'labi' : label_index,
+       'ID  ' : id,
+       'iimg' : icon,
+       'pidx' : index,
+       'dwnd' : content_space,
+       'cwin' : window,
+       'comt' : comment,
+       'dscr' : description,
+       'asdr' : folder,
+       'issl' : selected,
+       'pbnd' : bounds,
+       'ctnr' : container,
+       'phys' : physical_size,
+       'ptsz' : size,
+       'kind' : kind,
+       'posn' : position,
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
+}
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Obsolete_terms.py b/Mac/Lib/lib-scriptpackages/Finder/Obsolete_terms.py
new file mode 100644 (file)
index 0000000..1d35def
--- /dev/null
@@ -0,0 +1,215 @@
+"""Suite Obsolete terms: Terms that have been deprecated
+Level 1, version 1
+
+Generated from Macintosh HD:Systeemmap:Finder
+AETE/AEUT resource version 0/144, language 0, script 0
+"""
+
+import aetools
+import MacOS
+
+_code = 'tpnm'
+
+from StdSuites.Type_Names_Suite import *
+class Obsolete_terms_Events(Type_Names_Suite_Events):
+
+       pass
+
+
+class application(aetools.ComponentItem):
+       """application - The Finder """
+       want = 'capp'
+class view_preferences(aetools.NProperty):
+       """view preferences - backwards compatibility with Finder Scripting Extension. DEPRECATED -- not supported after Finder 8.0 """
+       which = 'pvwp'
+       want = 'obj '
+
+class container(aetools.ComponentItem):
+       """container - An item that contains other items """
+       want = 'ctnr'
+class container_window(aetools.NProperty):
+       """container window - the main window for the container """
+       which = 'cwnd'
+       want = 'obj '
+
+class container_window(aetools.ComponentItem):
+       """container window - A window that contains items """
+       want = 'cwnd'
+class folder_obsolete(aetools.NProperty):
+       """folder obsolete - the folder from which the window was opened (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release.) """
+       which = 'cfol'
+       want = 'obj '
+
+class control_panel(aetools.ComponentItem):
+       """control panel - A control panel """
+       want = 'ccdv'
+
+control_panels = control_panel
+
+class file(aetools.ComponentItem):
+       """file - A file """
+       want = 'file'
+class file_type_obsolete(aetools.NProperty):
+       """file type obsolete - the OSType identifying the type of data contained in the item (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release) """
+       which = 'fitp'
+       want = 'type'
+class locked_obsolete(aetools.NProperty):
+       """locked obsolete - Is the file locked? (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release) """
+       which = 'islk'
+       want = 'bool'
+
+class information_window(aetools.ComponentItem):
+       """information window - An information window (opened by ³Get Info²) """
+       want = 'iwnd'
+class creation_date_obsolete(aetools.NProperty):
+       """creation date obsolete - the date on which the item was created (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release) """
+       which = 'crtd'
+       want = 'ldt '
+# repeated property locked_obsolete Is the item locked (applies only to file and application information windows)? (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release)
+class modification_date_obsolete(aetools.NProperty):
+       """modification date obsolete - the date on which the item was last modified (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release) """
+       which = 'modd'
+       want = 'ldt '
+
+class item(aetools.ComponentItem):
+       """item - An item """
+       want = 'cobj'
+# repeated property creation_date_obsolete the date on which the item was created (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release)
+# repeated property folder_obsolete the folder in which the item is stored (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release)
+# repeated property modification_date_obsolete the date on which the item was last modified (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release)
+
+class process(aetools.ComponentItem):
+       """process - A process running on this computer """
+       want = 'prcs'
+# repeated property file_type_obsolete the OSType of the file type of the process (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release)
+
+class sharable_container(aetools.ComponentItem):
+       """sharable container - A container that may be shared (disks and folders) """
+       want = 'sctr'
+class sharing_window(aetools.NProperty):
+       """sharing window - the sharing window for the container (file sharing must be on to use this property) """
+       which = 'swnd'
+       want = 'obj '
+
+class sharing_window(aetools.ComponentItem):
+       """sharing window - A sharing window (opened by ³Sharing\8a²) """
+       want = 'swnd'
+class sharable_container(aetools.NProperty):
+       """sharable container - the sharable container from which the window was opened """
+       which = 'sctr'
+       want = 'obj '
+class item(aetools.NProperty):
+       """item - the item from which this window was opened """
+       which = 'cobj'
+       want = 'obj '
+class container(aetools.NProperty):
+       """container - the container from which this window was opened """
+       which = 'ctnr'
+       want = 'obj '
+# repeated property folder_obsolete the folder from which this window was opened (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release)
+
+sharing_windows = sharing_window
+
+class status_window(aetools.ComponentItem):
+       """status window - Progress dialogs (e.g., copy window, rebuild desktop database, empty trash) """
+       want = 'qwnd'
+
+status_windows = status_window
+application._propdict = {
+       'view_preferences' : view_preferences,
+}
+application._elemdict = {
+}
+container._propdict = {
+       'container_window' : container_window,
+}
+container._elemdict = {
+}
+container_window._propdict = {
+       'folder_obsolete' : folder_obsolete,
+}
+container_window._elemdict = {
+}
+control_panel._propdict = {
+}
+control_panel._elemdict = {
+}
+file._propdict = {
+       'file_type_obsolete' : file_type_obsolete,
+       'locked_obsolete' : locked_obsolete,
+}
+file._elemdict = {
+}
+information_window._propdict = {
+       'creation_date_obsolete' : creation_date_obsolete,
+       'locked_obsolete' : locked_obsolete,
+       'modification_date_obsolete' : modification_date_obsolete,
+}
+information_window._elemdict = {
+}
+item._propdict = {
+       'creation_date_obsolete' : creation_date_obsolete,
+       'folder_obsolete' : folder_obsolete,
+       'modification_date_obsolete' : modification_date_obsolete,
+}
+item._elemdict = {
+}
+process._propdict = {
+       'file_type_obsolete' : file_type_obsolete,
+}
+process._elemdict = {
+}
+sharable_container._propdict = {
+       'sharing_window' : sharing_window,
+}
+sharable_container._elemdict = {
+}
+sharing_window._propdict = {
+       'sharable_container' : sharable_container,
+       'item' : item,
+       'container' : container,
+       'folder_obsolete' : folder_obsolete,
+}
+sharing_window._elemdict = {
+}
+status_window._propdict = {
+}
+status_window._elemdict = {
+}
+
+#
+# Indices of types declared in this module
+#
+_classdeclarations = {
+       'ccdv' : control_panel,
+       'iwnd' : information_window,
+       'ctnr' : container,
+       'capp' : application,
+       'sctr' : sharable_container,
+       'cwnd' : container_window,
+       'prcs' : process,
+       'file' : file,
+       'cobj' : item,
+       'qwnd' : status_window,
+       'swnd' : sharing_window,
+}
+
+_propdeclarations = {
+       'crtd' : creation_date_obsolete,
+       'cfol' : folder_obsolete,
+       'ctnr' : container,
+       'cwnd' : container_window,
+       'pvwp' : view_preferences,
+       'swnd' : sharing_window,
+       'sctr' : sharable_container,
+       'cobj' : item,
+       'modd' : modification_date_obsolete,
+       'islk' : locked_obsolete,
+       'fitp' : file_type_obsolete,
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
+}
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Process_classes.py b/Mac/Lib/lib-scriptpackages/Finder/Process_classes.py
new file mode 100644 (file)
index 0000000..f0a3c4a
--- /dev/null
@@ -0,0 +1,150 @@
+"""Suite Process classes: Classes representing processes that are running
+Level 1, version 1
+
+Generated from Macintosh HD:Systeemmap:Finder
+AETE/AEUT resource version 0/144, language 0, script 0
+"""
+
+import aetools
+import MacOS
+
+_code = 'fndr'
+
+class Process_classes_Events:
+
+       pass
+
+
+class process(aetools.ComponentItem):
+       """process - A process running on this computer """
+       want = 'prcs'
+class name(aetools.NProperty):
+       """name - the name of the process """
+       which = 'pnam'
+       want = 'itxt'
+class visible(aetools.NProperty):
+       """visible - Is the process' layer visible? """
+       which = 'pvis'
+       want = 'bool'
+class frontmost(aetools.NProperty):
+       """frontmost - Is the process the frontmost process? """
+       which = 'pisf'
+       want = 'bool'
+class file(aetools.NProperty):
+       """file - the file from which the process was launched """
+       which = 'file'
+       want = 'obj '
+class file_type(aetools.NProperty):
+       """file type - the OSType of the file type of the process """
+       which = 'asty'
+       want = 'type'
+class creator_type(aetools.NProperty):
+       """creator type - the OSType of the creator of the process (the signature) """
+       which = 'fcrt'
+       want = 'type'
+class accepts_high_level_events(aetools.NProperty):
+       """accepts high level events - Is the process high-level event aware (accepts open application, open document, print document, and quit)? """
+       which = 'isab'
+       want = 'bool'
+class accepts_remote_events(aetools.NProperty):
+       """accepts remote events - Does the process accept remote events? """
+       which = 'revt'
+       want = 'bool'
+class has_scripting_terminology(aetools.NProperty):
+       """has scripting terminology - Does the process have a scripting terminology, i.e., can it be scripted? """
+       which = 'hscr'
+       want = 'bool'
+class total_partition_size(aetools.NProperty):
+       """total partition size - the size of the partition with which the process was launched """
+       which = 'appt'
+       want = 'long'
+class partition_space_used(aetools.NProperty):
+       """partition space used - the number of bytes currently used in the process' partition """
+       which = 'pusd'
+       want = 'long'
+
+processes = process
+
+class application_process(aetools.ComponentItem):
+       """application process - A process launched from an application file """
+       want = 'pcap'
+class _3c_Inheritance_3e_(aetools.NProperty):
+       """<Inheritance> - inherits some of its properties from the process class """
+       which = 'c@#^'
+       want = 'prcs'
+class application_file(aetools.NProperty):
+       """application file - the application file from which this process was launched """
+       which = 'appf'
+       want = 'appf'
+
+application_processes = application_process
+
+class desk_accessory_process(aetools.ComponentItem):
+       """desk accessory process - A process launched from a desk accessory file """
+       want = 'pcda'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the process class
+class desk_accessory_file(aetools.NProperty):
+       """desk accessory file - the desk accessory file from which this process was launched """
+       which = 'dafi'
+       want = 'obj '
+
+desk_accessory_processes = desk_accessory_process
+process._propdict = {
+       'name' : name,
+       'visible' : visible,
+       'frontmost' : frontmost,
+       'file' : file,
+       'file_type' : file_type,
+       'creator_type' : creator_type,
+       'accepts_high_level_events' : accepts_high_level_events,
+       'accepts_remote_events' : accepts_remote_events,
+       'has_scripting_terminology' : has_scripting_terminology,
+       'total_partition_size' : total_partition_size,
+       'partition_space_used' : partition_space_used,
+}
+process._elemdict = {
+}
+application_process._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'application_file' : application_file,
+}
+application_process._elemdict = {
+}
+desk_accessory_process._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'desk_accessory_file' : desk_accessory_file,
+}
+desk_accessory_process._elemdict = {
+}
+
+#
+# Indices of types declared in this module
+#
+_classdeclarations = {
+       'pcda' : desk_accessory_process,
+       'pcap' : application_process,
+       'prcs' : process,
+}
+
+_propdeclarations = {
+       'revt' : accepts_remote_events,
+       'appf' : application_file,
+       'pnam' : name,
+       'file' : file,
+       'pusd' : partition_space_used,
+       'fcrt' : creator_type,
+       'c@#^' : _3c_Inheritance_3e_,
+       'asty' : file_type,
+       'hscr' : has_scripting_terminology,
+       'dafi' : desk_accessory_file,
+       'isab' : accepts_high_level_events,
+       'appt' : total_partition_size,
+       'pisf' : frontmost,
+       'pvis' : visible,
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
+}
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py b/Mac/Lib/lib-scriptpackages/Finder/Standard_Suite.py
new file mode 100644 (file)
index 0000000..4a851c5
--- /dev/null
@@ -0,0 +1,334 @@
+"""Suite Standard Suite: Common terms that most applications should support
+Level 1, version 1
+
+Generated from Macintosh HD:Systeemmap:Finder
+AETE/AEUT resource version 0/144, language 0, script 0
+"""
+
+import aetools
+import MacOS
+
+_code = 'CoRe'
+
+class Standard_Suite_Events:
+
+       _argmap_open = {
+               'using' : 'usin',
+               'with_properties' : 'prdt',
+       }
+
+       def open(self, _object, _attributes={}, **_arguments):
+               """open: Open the specified object(s)
+               Required argument: list of objects to open
+               Keyword argument using: the application file to open the object with
+               Keyword argument with_properties: the initial values for the properties, to be included with the open command sent to the application that opens the direct object
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'aevt'
+               _subcode = 'odoc'
+
+               aetools.keysubst(_arguments, self._argmap_open)
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       _argmap__print = {
+               'with_properties' : 'prdt',
+       }
+
+       def _print(self, _object, _attributes={}, **_arguments):
+               """print: Print the specified object(s)
+               Required argument: list of objects to print
+               Keyword argument with_properties: optional properties to be included with the print command sent to the application that prints the direct object
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'aevt'
+               _subcode = 'pdoc'
+
+               aetools.keysubst(_arguments, self._argmap__print)
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def quit(self, _no_object=None, _attributes={}, **_arguments):
+               """quit: Quit the Finder
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'aevt'
+               _subcode = 'quit'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               if _no_object != None: raise TypeError, 'No direct arg expected'
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def close(self, _object, _attributes={}, **_arguments):
+               """close: Close an object
+               Required argument: the object to close
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'core'
+               _subcode = 'clos'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       _argmap_count = {
+               'each' : 'kocl',
+       }
+
+       def count(self, _object, _attributes={}, **_arguments):
+               """count: Return the number of elements of a particular class within an object
+               Required argument: the object whose elements are to be counted
+               Keyword argument each: the class of the elements to be counted
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               Returns: the number of elements
+               """
+               _code = 'core'
+               _subcode = 'cnte'
+
+               aetools.keysubst(_arguments, self._argmap_count)
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       _argmap_data_size = {
+               'as' : 'rtyp',
+       }
+
+       def data_size(self, _object, _attributes={}, **_arguments):
+               """data size: Return the size in bytes of an object
+               Required argument: the object whose data size is to be returned
+               Keyword argument as: the data type for which the size is calculated
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               Returns: the size of the object in bytes
+               """
+               _code = 'core'
+               _subcode = 'dsiz'
+
+               aetools.keysubst(_arguments, self._argmap_data_size)
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def delete(self, _object, _attributes={}, **_arguments):
+               """delete: Move an item from its container to the trash
+               Required argument: the item to delete
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               Returns: to the item that was just deleted
+               """
+               _code = 'core'
+               _subcode = 'delo'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       _argmap_duplicate = {
+               'to' : 'insh',
+               'replacing' : 'alrp',
+               'routing_suppressed' : 'rout',
+       }
+
+       def duplicate(self, _object, _attributes={}, **_arguments):
+               """duplicate: Duplicate one or more object(s)
+               Required argument: the object(s) to duplicate
+               Keyword argument to: the new location for the object(s)
+               Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being duplicated
+               Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when copying to the system folder.
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               Returns: to the duplicated object(s)
+               """
+               _code = 'core'
+               _subcode = 'clon'
+
+               aetools.keysubst(_arguments, self._argmap_duplicate)
+               _arguments['----'] = _object
+
+               aetools.enumsubst(_arguments, 'alrp', _Enum_bool)
+               aetools.enumsubst(_arguments, 'rout', _Enum_bool)
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def exists(self, _object, _attributes={}, **_arguments):
+               """exists: Verify if an object exists
+               Required argument: the object in question
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               Returns: true if it exists, false if not
+               """
+               _code = 'core'
+               _subcode = 'doex'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       _argmap_make = {
+               'new' : 'kocl',
+               'at' : 'insh',
+               'to' : 'to  ',
+               'with_properties' : 'prdt',
+       }
+
+       def make(self, _no_object=None, _attributes={}, **_arguments):
+               """make: Make a new element
+               Keyword argument new: the class of the new element
+               Keyword argument at: the location at which to insert the element
+               Keyword argument to: when creating an alias file, the original item to create an alias to
+               Keyword argument with_properties: the initial values for the properties of the element
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               Returns: to the new object(s)
+               """
+               _code = 'core'
+               _subcode = 'crel'
+
+               aetools.keysubst(_arguments, self._argmap_make)
+               if _no_object != None: raise TypeError, 'No direct arg expected'
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       _argmap_move = {
+               'to' : 'insh',
+               'replacing' : 'alrp',
+               'positioned_at' : 'mvpl',
+               'routing_suppressed' : 'rout',
+       }
+
+       def move(self, _object, _attributes={}, **_arguments):
+               """move: Move object(s) to a new location
+               Required argument: the object(s) to move
+               Keyword argument to: the new location for the object(s)
+               Keyword argument replacing: Specifies whether or not to replace items in the destination that have the same name as items being moved
+               Keyword argument positioned_at: Gives a list (in local window coordinates) of positions for the destination items
+               Keyword argument routing_suppressed: Specifies whether or not to autoroute items (default is false). Only applies when moving to the system folder.
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               Returns: to the object(s) after they have been moved
+               """
+               _code = 'core'
+               _subcode = 'move'
+
+               aetools.keysubst(_arguments, self._argmap_move)
+               _arguments['----'] = _object
+
+               aetools.enumsubst(_arguments, 'alrp', _Enum_bool)
+               aetools.enumsubst(_arguments, 'mvpl', _Enum_list)
+               aetools.enumsubst(_arguments, 'rout', _Enum_bool)
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+       def select(self, _object, _attributes={}, **_arguments):
+               """select: Select the specified object(s)
+               Required argument: the object to select
+               Keyword argument _attributes: AppleEvent attribute dictionary
+               """
+               _code = 'misc'
+               _subcode = 'slct'
+
+               if _arguments: raise TypeError, 'No optional args expected'
+               _arguments['----'] = _object
+
+
+               _reply, _arguments, _attributes = self.send(_code, _subcode,
+                               _arguments, _attributes)
+               if _arguments.has_key('errn'):
+                       raise aetools.Error, aetools.decodeerror(_arguments)
+               # XXXX Optionally decode result
+               if _arguments.has_key('----'):
+                       return _arguments['----']
+
+# XXXX enum list not found!!
+# XXXX enum bool not found!!
+
+#
+# Indices of types declared in this module
+#
+_classdeclarations = {
+}
+
+_propdeclarations = {
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
+}
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Type_Definitions.py b/Mac/Lib/lib-scriptpackages/Finder/Type_Definitions.py
new file mode 100644 (file)
index 0000000..0f750d8
--- /dev/null
@@ -0,0 +1,269 @@
+"""Suite Type Definitions: Definitions of records used in scripting the Finder
+Level 1, version 1
+
+Generated from Macintosh HD:Systeemmap:Finder
+AETE/AEUT resource version 0/144, language 0, script 0
+"""
+
+import aetools
+import MacOS
+
+_code = 'tpdf'
+
+class Type_Definitions_Events:
+
+       pass
+
+
+class preferences(aetools.ComponentItem):
+       """preferences - The Finder Preferences """
+       want = 'cprf'
+class window(aetools.NProperty):
+       """window - the window that would open if Finder preferences was opened """
+       which = 'cwin'
+       want = 'pwnd'
+class button_view_arrangement(aetools.NProperty):
+       """button view arrangement - the method of arrangement of icons in default Finder button view windows """
+       which = 'barr'
+       want = 'earr'
+class button_view_icon_size(aetools.NProperty):
+       """button view icon size - the size of icons displayed in Finder button view windows. """
+       which = 'bisz'
+       want = 'long'
+class spatial_view_arrangement(aetools.NProperty):
+       """spatial view arrangement - the method of arrangement of icons in default Finder spatial view windows """
+       which = 'iarr'
+       want = 'earr'
+class spatial_view_icon_size(aetools.NProperty):
+       """spatial view icon size - the size of icons displayed in Finder spatial view windows. """
+       which = 'iisz'
+       want = 'long'
+class calculates_folder_sizes(aetools.NProperty):
+       """calculates folder sizes - Are folder sizes calculated and displayed in Finder list view windows? """
+       which = 'sfsz'
+       want = 'bool'
+class list_view_icon_size(aetools.NProperty):
+       """list view icon size - the size of icons displayed in Finder list view windows. """
+       which = 'lisz'
+       want = 'long'
+class shows_comments(aetools.NProperty):
+       """shows comments - Are comments displayed in default Finder list view windows? """
+       which = 'scom'
+       want = 'bool'
+class shows_creation_date(aetools.NProperty):
+       """shows creation date - Are creation dates displayed in default Finder list view windows? """
+       which = 'scda'
+       want = 'bool'
+class shows_kind(aetools.NProperty):
+       """shows kind - Are document kinds displayed in default Finder list view windows? """
+       which = 'sknd'
+       want = 'bool'
+class shows_label(aetools.NProperty):
+       """shows label - Are labels displayed in default Finder list view windows? """
+       which = 'slbl'
+       want = 'bool'
+class shows_modification_date(aetools.NProperty):
+       """shows modification date - Are modification dates displayed in default Finder list view windows? """
+       which = 'sdat'
+       want = 'bool'
+class shows_size(aetools.NProperty):
+       """shows size - Are file sizes displayed in default Finder list view windows? """
+       which = 'ssiz'
+       want = 'bool'
+class shows_version(aetools.NProperty):
+       """shows version - Are file versions displayed in default Finder list view windows? """
+       which = 'svrs'
+       want = 'bool'
+class uses_relative_dates(aetools.NProperty):
+       """uses relative dates - Are relative dates (e.g., today, yesterday) shown  in Finder list view windows? """
+       which = 'urdt'
+       want = 'bool'
+class uses_simple_menus(aetools.NProperty):
+       """uses simple menus - Use simplified Finder menus? """
+       which = 'usme'
+       want = 'bool'
+class uses_wide_grid(aetools.NProperty):
+       """uses wide grid - Space icons on a wide grid? """
+       which = 'uswg'
+       want = 'bool'
+class spring_open_folders(aetools.NProperty):
+       """spring open folders - Spring open folders after the specified delay? """
+       which = 'sprg'
+       want = 'bool'
+class delay_before_springing(aetools.NProperty):
+       """delay before springing - the delay before springing open a container in ticks (1/60th of a second) (12 is shortest delay, 60 is longest delay) """
+       which = 'dela'
+       want = 'shor'
+class view_font(aetools.NProperty):
+       """view font - the id of the font used in Finder views. """
+       which = 'vfnt'
+       want = 'long'
+class view_font_size(aetools.NProperty):
+       """view font size - the size of the font used in Finder views """
+       which = 'vfsz'
+       want = 'long'
+#        element 'clbl' as ['indx', 'name']
+
+class label(aetools.ComponentItem):
+       """label - A Finder label (name and color) """
+       want = 'clbl'
+class name(aetools.NProperty):
+       """name - the name associated with the label """
+       which = 'pnam'
+       want = 'itxt'
+class index(aetools.NProperty):
+       """index - the index in the front-to-back ordering within its container """
+       which = 'pidx'
+       want = 'long'
+class color(aetools.NProperty):
+       """color - the color associated with the label """
+       which = 'colr'
+       want = 'cRGB'
+
+class icon_family(aetools.ComponentItem):
+       """icon family - A family of icons """
+       want = 'ifam'
+class large_monochrome_icon_and_mask(aetools.NProperty):
+       """large monochrome icon and mask - the large black-and-white icon and the mask for large icons """
+       which = 'ICN#'
+       want = 'ICN#'
+class large_8_bit_mask(aetools.NProperty):
+       """large 8 bit mask - the large 8-bit mask for large 32-bit icons """
+       which = 'l8mk'
+       want = 'l8mk'
+class large_32_bit_icon(aetools.NProperty):
+       """large 32 bit icon - the large 32-bit color icon """
+       which = 'il32'
+       want = 'il32'
+class large_8_bit_icon(aetools.NProperty):
+       """large 8 bit icon - the large 8-bit color icon """
+       which = 'icl8'
+       want = 'icl8'
+class large_4_bit_icon(aetools.NProperty):
+       """large 4 bit icon - the large 4-bit color icon """
+       which = 'icl4'
+       want = 'icl4'
+class small_monochrome_icon_and_mask(aetools.NProperty):
+       """small monochrome icon and mask - the small black-and-white icon and the mask for small icons """
+       which = 'ics#'
+       want = 'ics#'
+class small_8_bit_mask(aetools.NProperty):
+       """small 8 bit mask - the small 8-bit mask for small 32-bit icons """
+       which = 'ics8'
+       want = 's8mk'
+class small_32_bit_icon(aetools.NProperty):
+       """small 32 bit icon - the small 32-bit color icon """
+       which = 'is32'
+       want = 'is32'
+# repeated property small_8_bit_icon the small 8-bit color icon
+class small_4_bit_icon(aetools.NProperty):
+       """small 4 bit icon - the small 4-bit color icon """
+       which = 'ics4'
+       want = 'ics4'
+
+class alias_list(aetools.ComponentItem):
+       """alias list - A list of aliases.  Use \8cas alias list¹ when a list of aliases is needed (instead of a list of file system item references). """
+       want = 'alst'
+preferences._propdict = {
+       'window' : window,
+       'button_view_arrangement' : button_view_arrangement,
+       'button_view_icon_size' : button_view_icon_size,
+       'spatial_view_arrangement' : spatial_view_arrangement,
+       'spatial_view_icon_size' : spatial_view_icon_size,
+       'calculates_folder_sizes' : calculates_folder_sizes,
+       'list_view_icon_size' : list_view_icon_size,
+       'shows_comments' : shows_comments,
+       'shows_creation_date' : shows_creation_date,
+       'shows_kind' : shows_kind,
+       'shows_label' : shows_label,
+       'shows_modification_date' : shows_modification_date,
+       'shows_size' : shows_size,
+       'shows_version' : shows_version,
+       'uses_relative_dates' : uses_relative_dates,
+       'uses_simple_menus' : uses_simple_menus,
+       'uses_wide_grid' : uses_wide_grid,
+       'spring_open_folders' : spring_open_folders,
+       'delay_before_springing' : delay_before_springing,
+       'view_font' : view_font,
+       'view_font_size' : view_font_size,
+}
+preferences._elemdict = {
+       'label' : label,
+}
+label._propdict = {
+       'name' : name,
+       'index' : index,
+       'color' : color,
+}
+label._elemdict = {
+}
+icon_family._propdict = {
+       'large_monochrome_icon_and_mask' : large_monochrome_icon_and_mask,
+       'large_8_bit_mask' : large_8_bit_mask,
+       'large_32_bit_icon' : large_32_bit_icon,
+       'large_8_bit_icon' : large_8_bit_icon,
+       'large_4_bit_icon' : large_4_bit_icon,
+       'small_monochrome_icon_and_mask' : small_monochrome_icon_and_mask,
+       'small_8_bit_mask' : small_8_bit_mask,
+       'small_32_bit_icon' : small_32_bit_icon,
+       'small_8_bit_icon' : small_8_bit_icon,
+       'small_4_bit_icon' : small_4_bit_icon,
+}
+icon_family._elemdict = {
+}
+alias_list._propdict = {
+}
+alias_list._elemdict = {
+}
+
+#
+# Indices of types declared in this module
+#
+_classdeclarations = {
+       'clbl' : label,
+       'ifam' : icon_family,
+       'alst' : alias_list,
+       'cprf' : preferences,
+}
+
+_propdeclarations = {
+       'ics#' : small_monochrome_icon_and_mask,
+       'scda' : shows_creation_date,
+       'uswg' : uses_wide_grid,
+       'sprg' : spring_open_folders,
+       'is32' : small_32_bit_icon,
+       'ICN#' : large_monochrome_icon_and_mask,
+       'cwin' : window,
+       'sdat' : shows_modification_date,
+       'iisz' : spatial_view_icon_size,
+       'barr' : button_view_arrangement,
+       'il32' : large_32_bit_icon,
+       'l8mk' : large_8_bit_mask,
+       'scom' : shows_comments,
+       'bisz' : button_view_icon_size,
+       'lisz' : list_view_icon_size,
+       'slbl' : shows_label,
+       'icl4' : large_4_bit_icon,
+       'usme' : uses_simple_menus,
+       'urdt' : uses_relative_dates,
+       'vfnt' : view_font,
+       'sfsz' : calculates_folder_sizes,
+       'pidx' : index,
+       'icl8' : large_8_bit_icon,
+       'ssiz' : shows_size,
+       'ics8' : small_8_bit_mask,
+       'colr' : color,
+       'svrs' : shows_version,
+       'pnam' : name,
+       'sknd' : shows_kind,
+       'vfsz' : view_font_size,
+       'iarr' : spatial_view_arrangement,
+       'ics4' : small_4_bit_icon,
+       'dela' : delay_before_springing,
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
+}
diff --git a/Mac/Lib/lib-scriptpackages/Finder/Window_classes.py b/Mac/Lib/lib-scriptpackages/Finder/Window_classes.py
new file mode 100644 (file)
index 0000000..0fa2e81
--- /dev/null
@@ -0,0 +1,395 @@
+"""Suite Window classes: Classes representing windows
+Level 1, version 1
+
+Generated from Macintosh HD:Systeemmap:Finder
+AETE/AEUT resource version 0/144, language 0, script 0
+"""
+
+import aetools
+import MacOS
+
+_code = 'fndr'
+
+class Window_classes_Events:
+
+       pass
+
+
+class window(aetools.ComponentItem):
+       """window - A window """
+       want = 'cwin'
+class position(aetools.NProperty):
+       """position - the upper left position of the window """
+       which = 'posn'
+       want = 'QDpt'
+class bounds(aetools.NProperty):
+       """bounds - the boundary rectangle for the window """
+       which = 'pbnd'
+       want = 'qdrt'
+class titled(aetools.NProperty):
+       """titled - Does the window have a title bar? """
+       which = 'ptit'
+       want = 'bool'
+class name(aetools.NProperty):
+       """name - the name of the window """
+       which = 'pnam'
+       want = 'itxt'
+class index(aetools.NProperty):
+       """index - the number of the window in the front-to-back layer ordering """
+       which = 'pidx'
+       want = 'long'
+class closeable(aetools.NProperty):
+       """closeable - Does the window have a close box? """
+       which = 'hclb'
+       want = 'bool'
+class floating(aetools.NProperty):
+       """floating - Does the window have a title bar? """
+       which = 'isfl'
+       want = 'bool'
+class modal(aetools.NProperty):
+       """modal - Is the window modal? """
+       which = 'pmod'
+       want = 'bool'
+# repeated property resizable Is the window resizable?
+class zoomable(aetools.NProperty):
+       """zoomable - Is the window zoomable? """
+       which = 'iszm'
+       want = 'bool'
+class zoomed(aetools.NProperty):
+       """zoomed - Is the window zoomed? """
+       which = 'pzum'
+       want = 'bool'
+class zoomed_full_size(aetools.NProperty):
+       """zoomed full size - Is the window zoomed to the full size of the screen? (can only be set, not read, and only applies to open non-pop-up windows) """
+       which = 'zumf'
+       want = 'bool'
+class visible(aetools.NProperty):
+       """visible - Is the window visible (always true for open Finder windows)? """
+       which = 'pvis'
+       want = 'bool'
+class popup(aetools.NProperty):
+       """popup - Is the window is a pop-up window? (only applies to open container windows in the Finder and can only be set when the Finder is the front application) """
+       which = 'drwr'
+       want = 'bool'
+class pulled_open(aetools.NProperty):
+       """pulled open - Is the window pulled open (only applies to pop-up windows and can only be set when the Finder is the front application)? """
+       which = 'pull'
+       want = 'bool'
+class collapsed(aetools.NProperty):
+       """collapsed - Is the window collapsed (only applies to open non-pop-up windows)? """
+       which = 'wshd'
+       want = 'bool'
+
+windows = window
+
+class container_window(aetools.ComponentItem):
+       """container window - A window that contains items """
+       want = 'cwnd'
+class _3c_Inheritance_3e_(aetools.NProperty):
+       """<Inheritance> - inherits some of its properties from the window class """
+       which = 'c@#^'
+       want = 'cwin'
+class container(aetools.NProperty):
+       """container - the container from which the window was opened """
+       which = 'ctnr'
+       want = 'obj '
+class item(aetools.NProperty):
+       """item - the item from which the window was opened (always returns something) """
+       which = 'cobj'
+       want = 'obj '
+class has_custom_view_settings(aetools.NProperty):
+       """has custom view settings - Does the folder have custom view settings or is it using the default global settings? """
+       which = 'cuss'
+       want = 'bool'
+class view(aetools.NProperty):
+       """view - the current view for the window (icon, name, date, etc.) """
+       which = 'pvew'
+       want = 'long'
+class previous_list_view(aetools.NProperty):
+       """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 and only available when the window is open) """
+       which = 'svew'
+       want = 'enum'
+class button_view_arrangement(aetools.NProperty):
+       """button view arrangement - the property by which to keep icons arranged within a button view window """
+       which = 'barr'
+       want = 'earr'
+class spatial_view_arrangement(aetools.NProperty):
+       """spatial view arrangement - the property by which to keep icons arranged within a spatial view window """
+       which = 'iarr'
+       want = 'earr'
+class sort_direction(aetools.NProperty):
+       """sort direction - The direction in which the window is sorted """
+       which = 'sord'
+       want = 'sodr'
+class calculates_folder_sizes(aetools.NProperty):
+       """calculates folder sizes - Are folder sizes calculated and displayed in the window? (does not apply to suitcase windows) """
+       which = 'sfsz'
+       want = 'bool'
+class shows_comments(aetools.NProperty):
+       """shows comments - Are comments displayed in the window? (does not apply to suitcases) """
+       which = 'scom'
+       want = 'bool'
+class shows_creation_date(aetools.NProperty):
+       """shows creation date - Are creation dates displayed in the window? """
+       which = 'scda'
+       want = 'bool'
+class shows_kind(aetools.NProperty):
+       """shows kind - Are document kinds displayed in the window? """
+       which = 'sknd'
+       want = 'bool'
+class shows_label(aetools.NProperty):
+       """shows label - Are labels displayed in the window? """
+       which = 'slbl'
+       want = 'bool'
+class shows_modification_date(aetools.NProperty):
+       """shows modification date - Are modification dates displayed in the window? """
+       which = 'sdat'
+       want = 'bool'
+class shows_size(aetools.NProperty):
+       """shows size - Are file sizes displayed in the window? """
+       which = 'ssiz'
+       want = 'bool'
+class shows_version(aetools.NProperty):
+       """shows version - Are file versions displayed in the window? (does not apply to suitcase windows) """
+       which = 'svrs'
+       want = 'bool'
+class uses_relative_dates(aetools.NProperty):
+       """uses relative dates - Are relative dates (e.g., today, yesterday) shown in the window? """
+       which = 'urdt'
+       want = 'bool'
+
+container_windows = container_window
+
+class information_window(aetools.ComponentItem):
+       """information window - An information window (opened by ³Get Info²) """
+       want = 'iwnd'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the window class
+# repeated property item the item from which this window was opened
+class current_panel(aetools.NProperty):
+       """current panel - the current panel in the information window """
+       which = 'panl'
+       want = 'ipnl'
+class comment(aetools.NProperty):
+       """comment - the comment """
+       which = 'comt'
+       want = 'itxt'
+class size(aetools.NProperty):
+       """size - the logical size of the item """
+       which = 'ptsz'
+       want = 'long'
+class physical_size(aetools.NProperty):
+       """physical size - the actual space used by the item on disk """
+       which = 'phys'
+       want = 'long'
+class creation_date(aetools.NProperty):
+       """creation date - the date on which the item was created """
+       which = 'ascd'
+       want = 'ldt '
+class modification_date(aetools.NProperty):
+       """modification date - the date on which the item was last modified """
+       which = 'asmo'
+       want = 'ldt '
+class suggested_size(aetools.NProperty):
+       """suggested size - the memory size with which the developer recommends the application be launched """
+       which = 'sprt'
+       want = 'long'
+class minimum_size(aetools.NProperty):
+       """minimum size - the smallest memory size with which the application can be launched (only applies to information windows for applications) """
+       which = 'mprt'
+       want = 'long'
+class preferred_size(aetools.NProperty):
+       """preferred size - the memory size with which the application will be launched (only applies to information windows for applications) """
+       which = 'appt'
+       want = 'long'
+class icon(aetools.NProperty):
+       """icon - the icon bitmap of the item """
+       which = 'iimg'
+       want = 'ifam'
+class locked(aetools.NProperty):
+       """locked - Is the item locked (applies only to file and application information windows)? """
+       which = 'aslk'
+       want = 'bool'
+class stationery(aetools.NProperty):
+       """stationery - Is the item a stationery pad? """
+       which = 'pspd'
+       want = 'bool'
+class warns_before_emptying(aetools.NProperty):
+       """warns before emptying - Display a dialog when emptying the trash (only valid for trash info window)? """
+       which = 'warn'
+       want = 'bool'
+class product_version(aetools.NProperty):
+       """product version - the version of the product (visible at the top of the ³Get Info² window) """
+       which = 'ver2'
+       want = 'itxt'
+class version(aetools.NProperty):
+       """version - the version of the file (visible at the bottom of the ³Get Info² window) """
+       which = 'vers'
+       want = 'itxt'
+
+information_windows = information_window
+
+class preferences_window(aetools.ComponentItem):
+       """preferences window - The Finder Preferences window """
+       want = 'pwnd'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the window class
+# repeated property current_panel The current panel in the Finder preferences window
+
+class clipping_window(aetools.ComponentItem):
+       """clipping window - The window containing a clipping """
+       want = 'lwnd'
+# repeated property _3c_Inheritance_3e_ inherits some of its properties from the window class
+
+clipping_windows = clipping_window
+
+class content_space(aetools.ComponentItem):
+       """content space - All windows, including the desktop window (³Window² does not include the desktop window) """
+       want = 'dwnd'
+
+content_spaces = content_space
+window._propdict = {
+       'position' : position,
+       'bounds' : bounds,
+       'titled' : titled,
+       'name' : name,
+       'index' : index,
+       'closeable' : closeable,
+       'floating' : floating,
+       'modal' : modal,
+       'resizable' : resizable,
+       'zoomable' : zoomable,
+       'zoomed' : zoomed,
+       'zoomed_full_size' : zoomed_full_size,
+       'visible' : visible,
+       'popup' : popup,
+       'pulled_open' : pulled_open,
+       'collapsed' : collapsed,
+}
+window._elemdict = {
+}
+container_window._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'container' : container,
+       'item' : item,
+       'has_custom_view_settings' : has_custom_view_settings,
+       'view' : view,
+       'previous_list_view' : previous_list_view,
+       'button_view_arrangement' : button_view_arrangement,
+       'spatial_view_arrangement' : spatial_view_arrangement,
+       'sort_direction' : sort_direction,
+       'calculates_folder_sizes' : calculates_folder_sizes,
+       'shows_comments' : shows_comments,
+       'shows_creation_date' : shows_creation_date,
+       'shows_kind' : shows_kind,
+       'shows_label' : shows_label,
+       'shows_modification_date' : shows_modification_date,
+       'shows_size' : shows_size,
+       'shows_version' : shows_version,
+       'uses_relative_dates' : uses_relative_dates,
+}
+container_window._elemdict = {
+}
+information_window._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'item' : item,
+       'current_panel' : current_panel,
+       'comment' : comment,
+       'size' : size,
+       'physical_size' : physical_size,
+       'creation_date' : creation_date,
+       'modification_date' : modification_date,
+       'suggested_size' : suggested_size,
+       'minimum_size' : minimum_size,
+       'preferred_size' : preferred_size,
+       'icon' : icon,
+       'locked' : locked,
+       'stationery' : stationery,
+       'warns_before_emptying' : warns_before_emptying,
+       'product_version' : product_version,
+       'version' : version,
+}
+information_window._elemdict = {
+}
+preferences_window._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+       'current_panel' : current_panel,
+}
+preferences_window._elemdict = {
+}
+clipping_window._propdict = {
+       '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
+}
+clipping_window._elemdict = {
+}
+content_space._propdict = {
+}
+content_space._elemdict = {
+}
+
+#
+# Indices of types declared in this module
+#
+_classdeclarations = {
+       'dwnd' : content_space,
+       'iwnd' : information_window,
+       'lwnd' : clipping_window,
+       'cwnd' : container_window,
+       'cwin' : window,
+       'pwnd' : preferences_window,
+}
+
+_propdeclarations = {
+       'pidx' : index,
+       'scda' : shows_creation_date,
+       'vers' : version,
+       'aslk' : locked,
+       'pvew' : view,
+       'sdat' : shows_modification_date,
+       'drwr' : popup,
+       'sprt' : suggested_size,
+       'pvis' : visible,
+       'ptsz' : size,
+       'pull' : pulled_open,
+       'slbl' : shows_label,
+       'wshd' : collapsed,
+       'ctnr' : container,
+       'ascd' : creation_date,
+       'warn' : warns_before_emptying,
+       'sord' : sort_direction,
+       'iszm' : zoomable,
+       'comt' : comment,
+       'svew' : previous_list_view,
+       'svrs' : shows_version,
+       'sknd' : shows_kind,
+       'phys' : physical_size,
+       'iarr' : spatial_view_arrangement,
+       'posn' : position,
+       'ptit' : titled,
+       'cobj' : item,
+       'asmo' : modification_date,
+       'ssiz' : shows_size,
+       'pnam' : name,
+       'pbnd' : bounds,
+       'mprt' : minimum_size,
+       'iimg' : icon,
+       'cuss' : has_custom_view_settings,
+       'appt' : preferred_size,
+       'scom' : shows_comments,
+       'pmod' : modal,
+       'panl' : current_panel,
+       'urdt' : uses_relative_dates,
+       'zumf' : zoomed_full_size,
+       'sfsz' : calculates_folder_sizes,
+       'c@#^' : _3c_Inheritance_3e_,
+       'isfl' : floating,
+       'hclb' : closeable,
+       'pspd' : stationery,
+       'pzum' : zoomed,
+       'barr' : button_view_arrangement,
+       'ver2' : product_version,
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
+}
diff --git a/Mac/Lib/lib-scriptpackages/Finder/__init__.py b/Mac/Lib/lib-scriptpackages/Finder/__init__.py
new file mode 100644 (file)
index 0000000..2ebe142
--- /dev/null
@@ -0,0 +1,75 @@
+"""
+Package generated from Macintosh HD:Systeemmap:Finder
+Resource aete resid 0 
+"""
+import aetools
+import Standard_Suite
+import Earlier_terms
+import Finder_Basics
+import Finder_items
+import Containers_and_folders
+import Files_and_suitcases
+import Window_classes
+import Process_classes
+import Type_Definitions
+import Enumerations
+import Obsolete_terms
+
+
+_code_to_module = {
+       'CoRe' : Standard_Suite,
+       'tpnm' : Earlier_terms,
+       'fndr' : Finder_Basics,
+       'fndr' : Finder_items,
+       'fndr' : Containers_and_folders,
+       'fndr' : Files_and_suitcases,
+       'fndr' : Window_classes,
+       'fndr' : Process_classes,
+       'tpdf' : Type_Definitions,
+       'tpnm' : Enumerations,
+       'tpnm' : Obsolete_terms,
+}
+
+
+
+_code_to_fullname = {
+       'CoRe' : ('Finder.Standard_Suite', 'Standard_Suite'),
+       'tpnm' : ('Finder.Earlier_terms', 'Earlier_terms'),
+       'fndr' : ('Finder.Finder_Basics', 'Finder_Basics'),
+       'fndr' : ('Finder.Finder_items', 'Finder_items'),
+       'fndr' : ('Finder.Containers_and_folders', 'Containers_and_folders'),
+       'fndr' : ('Finder.Files_and_suitcases', 'Files_and_suitcases'),
+       'fndr' : ('Finder.Window_classes', 'Window_classes'),
+       'fndr' : ('Finder.Process_classes', 'Process_classes'),
+       'tpdf' : ('Finder.Type_Definitions', 'Type_Definitions'),
+       'tpnm' : ('Finder.Enumerations', 'Enumerations'),
+       'tpnm' : ('Finder.Obsolete_terms', 'Obsolete_terms'),
+}
+
+from Standard_Suite import *
+from Earlier_terms import *
+from Finder_Basics import *
+from Finder_items import *
+from Containers_and_folders import *
+from Files_and_suitcases import *
+from Window_classes import *
+from Process_classes import *
+from Type_Definitions import *
+from Enumerations import *
+from Obsolete_terms import *
+
+
+class Finder(Standard_Suite_Events,
+               Earlier_terms_Events,
+               Finder_Basics_Events,
+               Finder_items_Events,
+               Containers_and_folders_Events,
+               Files_and_suitcases_Events,
+               Window_classes_Events,
+               Process_classes_Events,
+               Type_Definitions_Events,
+               Enumerations_Events,
+               Obsolete_terms_Events,
+               aetools.TalkTo):
+       _signature = 'MACS'
+