blob: c4228a75bb72f2d3aa0031146573eac141c1a28b [file] [log] [blame]
Jack Jansenf5101ee1995-08-31 13:38:44 +00001# MACFS.py - Constants used by macfs routines
2# Derived from Finder.h and Folders.h
3
4# Flags in FInfo.Flags field:
5kIsOnDesk = 0x1
6kColor = 0xE
7kIsShared = 0x40
8kHasBeenInited = 0x100
9kHasCustomIcon = 0x400
10kIsStationery = 0x800
11kIsStationary = 0x800
12kNameLocked = 0x1000
13kHasBundle = 0x2000
14kIsInvisible = 0x4000
15kIsAlias = 0x8000
16
17# Constants for FindFolder
Jack Jansen5c82d132001-03-15 14:39:37 +000018kOnSystemDisk = -32768 # previously was 0x8000 but that is an unsigned value whereas vRefNum is signed
19kOnAppropriateDisk = -32767 # Generally, the same as kOnSystemDisk, but it's clearer that this isn't always the 'boot' disk.
20# Folder Domains - Carbon only.
21kSystemDomain = -32766 # Read-only system hierarchy.
22kLocalDomain = -32765 # All users of a single machine have access to these resources.
23kNetworkDomain = -32764 # All users configured to use a common network server has access to these resources.
24kUserDomain = -32763 # Read/write. Resources that are private to the user.
25kClassicDomain = -32762 # Domain referring to the currently configured Classic System Folder
26
Jack Jansenf5101ee1995-08-31 13:38:44 +000027kSystemFolderType = 'macs' # the system folder
28kDesktopFolderType = 'desk' # the desktop folder; objects in this folder show on the desk top.
29kTrashFolderType = 'trsh' # the trash folder; objects in this folder show up in the trash
30kWhereToEmptyTrashFolderType = 'empt' # the "empty trash" folder; Finder starts empty from here down
31kPrintMonitorDocsFolderType = 'prnt' # Print Monitor documents
32kStartupFolderType = 'strt' # Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here
33kAppleMenuFolderType = 'amnu' # Finder objects to put into the Apple menu go here
34kControlPanelFolderType = 'ctrl' # Control Panels go here (may contain INITs)
35kExtensionFolderType = 'extn' # Finder extensions go here
36kFontsFolderType = 'font' # Fonts go here
37kPreferencesFolderType = 'pref' # preferences for applications go here
38kTemporaryFolderType = 'temp'
Jack Jansen7b7a2c21998-04-24 10:42:01 +000039
40# Alias types
41kContainerFolderAliasType = 'fdrp'
42kContainerTrashAliasType = 'trsh'
43kContainerHardDiskAliasType = 'hdsk'
44kContainerFloppyAliasType = 'flpy'
45kContainerServerAliasType = 'srvr'
46kApplicationAliasType = 'adrp'
47kContainerAliasType = 'drop'
48# types for Special folder aliases
49kSystemFolderAliasType = 'fasy'
50kAppleMenuFolderAliasType = 'faam'
51kStartupFolderAliasType = 'fast'
52kPrintMonitorDocsFolderAliasType = 'fapn'
53kPreferencesFolderAliasType = 'fapf'
54kControlPanelFolderAliasType = 'fact'
55kExtensionFolderAliasType = 'faex'
56kExportedFolderAliasType = 'faet'
57kDropFolderAliasType = 'fadr'
58kSharedFolderAliasType = 'fash'
59kMountedFolderAliasType = 'famn'
60
61# New FindFolder constants
62kExtensionDisabledFolderType = 'extD'
63kControlPanelDisabledFolderType = 'ctrD'
64kSystemExtensionDisabledFolderType = 'macD'
65kStartupItemsDisabledFolderType = 'strD'
66kShutdownItemsDisabledFolderType = 'shdD'
67kApplicationsFolderType = 'apps'
68kDocumentsFolderType = 'docs'
69
70kVolumeRootFolderType = 'root'
71kChewableItemsFolderType = 'flnt'
72kApplicationSupportFolderType = 'asup'
Jack Jansen6f84ed52001-05-17 12:45:13 +000073kTextEncodingsFolderType = '€tex'
Jack Jansen7b7a2c21998-04-24 10:42:01 +000074kStationeryFolderType = 'odst'
75kOpenDocFolderType = 'odod'
76kOpenDocShellPlugInsFolderType = 'odsp'
77kEditorsFolderType = 'oded'
Jack Jansen6f84ed52001-05-17 12:45:13 +000078kOpenDocEditorsFolderType = '€odf'
Jack Jansen7b7a2c21998-04-24 10:42:01 +000079kOpenDocLibrariesFolderType = 'odlb'
Jack Jansen6f84ed52001-05-17 12:45:13 +000080kGenEditorsFolderType = '€edi'
81kHelpFolderType = '€hlp'
82kInternetPlugInFolderType = '€net'
83kModemScriptsFolderType = '€mod'
Jack Jansen7b7a2c21998-04-24 10:42:01 +000084kPrinterDescriptionFolderType = 'ppdf'
Jack Jansen6f84ed52001-05-17 12:45:13 +000085kPrinterDriverFolderType = '€prd'
86kScriptingAdditionsFolderType = '€scr'
87kSharedLibrariesFolderType = '€lib'
Jack Jansen7b7a2c21998-04-24 10:42:01 +000088kVoicesFolderType = 'fvoc'
89kControlStripModulesFolderType = 'sdev'
Jack Jansen6f84ed52001-05-17 12:45:13 +000090kAssistantsFolderType = 'ast€'
91kUtilitiesFolderType = 'uti€'
92kAppleExtrasFolderType = 'aex€'
Jack Jansen7b7a2c21998-04-24 10:42:01 +000093kContextualMenuItemsFolderType = 'cmnu'
Jack Jansen6f84ed52001-05-17 12:45:13 +000094kMacOSReadMesFolderType = 'mor€'
Jack Jansen7b7a2c21998-04-24 10:42:01 +000095kALMModulesFolderType = 'walk'
96kALMPreferencesFolderType = 'trip'
97kALMLocationsFolderType = 'fall'
98kColorSyncProfilesFolderType = 'prof'
99kThemesFolderType = 'thme'
100kFavoritesFolderType = 'favs'
Jack Jansen34f83b32001-02-09 15:57:53 +0000101
102# Don't remember why this is here
103READ = 1
104WRITE = 2
105smAllScripts = -3
106