1 # MACFS.py - Constants used by macfs routines
2 # Derived from Finder.h and Folders.h
4 # Flags in FInfo.Flags field:
17 # Constants for FindFolder
18 kOnSystemDisk
= -32768 # previously was 0x8000 but that is an unsigned value whereas vRefNum is signed
19 kOnAppropriateDisk
= -32767 # Generally, the same as kOnSystemDisk, but it's clearer that this isn't always the 'boot' disk.
20 # Folder Domains - Carbon only.
21 kSystemDomain
= -32766 # Read-only system hierarchy.
22 kLocalDomain
= -32765 # All users of a single machine have access to these resources.
23 kNetworkDomain
= -32764 # All users configured to use a common network server has access to these resources.
24 kUserDomain
= -32763 # Read/write. Resources that are private to the user.
25 kClassicDomain
= -32762 # Domain referring to the currently configured Classic System Folder
27 kSystemFolderType
= 'macs' # the system folder
28 kDesktopFolderType
= 'desk' # the desktop folder; objects in this folder show on the desk top.
29 kTrashFolderType
= 'trsh' # the trash folder; objects in this folder show up in the trash
30 kWhereToEmptyTrashFolderType
= 'empt' # the "empty trash" folder; Finder starts empty from here down
31 kPrintMonitorDocsFolderType
= 'prnt' # Print Monitor documents
32 kStartupFolderType
= 'strt' # Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here
33 kAppleMenuFolderType
= 'amnu' # Finder objects to put into the Apple menu go here
34 kControlPanelFolderType
= 'ctrl' # Control Panels go here (may contain INITs)
35 kExtensionFolderType
= 'extn' # Finder extensions go here
36 kFontsFolderType
= 'font' # Fonts go here
37 kPreferencesFolderType
= 'pref' # preferences for applications go here
38 kTemporaryFolderType
= 'temp'
41 kContainerFolderAliasType
= 'fdrp'
42 kContainerTrashAliasType
= 'trsh'
43 kContainerHardDiskAliasType
= 'hdsk'
44 kContainerFloppyAliasType
= 'flpy'
45 kContainerServerAliasType
= 'srvr'
46 kApplicationAliasType
= 'adrp'
47 kContainerAliasType
= 'drop'
48 # types for Special folder aliases
49 kSystemFolderAliasType
= 'fasy'
50 kAppleMenuFolderAliasType
= 'faam'
51 kStartupFolderAliasType
= 'fast'
52 kPrintMonitorDocsFolderAliasType
= 'fapn'
53 kPreferencesFolderAliasType
= 'fapf'
54 kControlPanelFolderAliasType
= 'fact'
55 kExtensionFolderAliasType
= 'faex'
56 kExportedFolderAliasType
= 'faet'
57 kDropFolderAliasType
= 'fadr'
58 kSharedFolderAliasType
= 'fash'
59 kMountedFolderAliasType
= 'famn'
61 # New FindFolder constants
62 kExtensionDisabledFolderType
= 'extD'
63 kControlPanelDisabledFolderType
= 'ctrD'
64 kSystemExtensionDisabledFolderType
= 'macD'
65 kStartupItemsDisabledFolderType
= 'strD'
66 kShutdownItemsDisabledFolderType
= 'shdD'
67 kApplicationsFolderType
= 'apps'
68 kDocumentsFolderType
= 'docs'
70 kVolumeRootFolderType
= 'root'
71 kChewableItemsFolderType
= 'flnt'
72 kApplicationSupportFolderType
= 'asup'
73 kTextEncodingsFolderType
= 'Ÿtex'
74 kStationeryFolderType
= 'odst'
75 kOpenDocFolderType
= 'odod'
76 kOpenDocShellPlugInsFolderType
= 'odsp'
77 kEditorsFolderType
= 'oded'
78 kOpenDocEditorsFolderType
= 'Ÿodf'
79 kOpenDocLibrariesFolderType
= 'odlb'
80 kGenEditorsFolderType
= 'Ÿedi'
81 kHelpFolderType
= 'Ÿhlp'
82 kInternetPlugInFolderType
= 'Ÿnet'
83 kModemScriptsFolderType
= 'Ÿmod'
84 kPrinterDescriptionFolderType
= 'ppdf'
85 kPrinterDriverFolderType
= 'Ÿprd'
86 kScriptingAdditionsFolderType
= 'Ÿscr'
87 kSharedLibrariesFolderType
= 'Ÿlib'
88 kVoicesFolderType
= 'fvoc'
89 kControlStripModulesFolderType
= 'sdev'
90 kAssistantsFolderType
= 'astŸ'
91 kUtilitiesFolderType
= 'utiŸ'
92 kAppleExtrasFolderType
= 'aexŸ'
93 kContextualMenuItemsFolderType
= 'cmnu'
94 kMacOSReadMesFolderType
= 'morŸ'
95 kALMModulesFolderType
= 'walk'
96 kALMPreferencesFolderType
= 'trip'
97 kALMLocationsFolderType
= 'fall'
98 kColorSyncProfilesFolderType
= 'prof'
99 kThemesFolderType
= 'thme'
100 kFavoritesFolderType
= 'favs'
102 # Don't remember why this is here