Ditched '_find_SET()', since it was a no-value-added wrapper around
[python/dscho.git] / Mac / Lib / MACFS.py
blob1d0c2c1eab2dff5fd3916214a2bdea32897f79d1
1 # MACFS.py - Constants used by macfs routines
2 # Derived from Finder.h and Folders.h
4 # Flags in FInfo.Flags field:
5 kIsOnDesk = 0x1
6 kColor = 0xE
7 kIsShared = 0x40
8 kHasBeenInited = 0x100
9 kHasCustomIcon = 0x400
10 kIsStationery = 0x800
11 kIsStationary = 0x800
12 kNameLocked = 0x1000
13 kHasBundle = 0x2000
14 kIsInvisible = 0x4000
15 kIsAlias = 0x8000
17 # Constants for FindFolder
18 kOnSystemDisk = 0x8000
19 kSystemFolderType = 'macs' # the system folder
20 kDesktopFolderType = 'desk' # the desktop folder; objects in this folder show on the desk top.
21 kTrashFolderType = 'trsh' # the trash folder; objects in this folder show up in the trash
22 kWhereToEmptyTrashFolderType = 'empt' # the "empty trash" folder; Finder starts empty from here down
23 kPrintMonitorDocsFolderType = 'prnt' # Print Monitor documents
24 kStartupFolderType = 'strt' # Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here
25 kAppleMenuFolderType = 'amnu' # Finder objects to put into the Apple menu go here
26 kControlPanelFolderType = 'ctrl' # Control Panels go here (may contain INITs)
27 kExtensionFolderType = 'extn' # Finder extensions go here
28 kFontsFolderType = 'font' # Fonts go here
29 kPreferencesFolderType = 'pref' # preferences for applications go here
30 kTemporaryFolderType = 'temp'
32 # Alias types
33 kContainerFolderAliasType = 'fdrp'
34 kContainerTrashAliasType = 'trsh'
35 kContainerHardDiskAliasType = 'hdsk'
36 kContainerFloppyAliasType = 'flpy'
37 kContainerServerAliasType = 'srvr'
38 kApplicationAliasType = 'adrp'
39 kContainerAliasType = 'drop'
40 # types for Special folder aliases
41 kSystemFolderAliasType = 'fasy'
42 kAppleMenuFolderAliasType = 'faam'
43 kStartupFolderAliasType = 'fast'
44 kPrintMonitorDocsFolderAliasType = 'fapn'
45 kPreferencesFolderAliasType = 'fapf'
46 kControlPanelFolderAliasType = 'fact'
47 kExtensionFolderAliasType = 'faex'
48 kExportedFolderAliasType = 'faet'
49 kDropFolderAliasType = 'fadr'
50 kSharedFolderAliasType = 'fash'
51 kMountedFolderAliasType = 'famn'
53 # New FindFolder constants
54 kExtensionDisabledFolderType = 'extD'
55 kControlPanelDisabledFolderType = 'ctrD'
56 kSystemExtensionDisabledFolderType = 'macD'
57 kStartupItemsDisabledFolderType = 'strD'
58 kShutdownItemsDisabledFolderType = 'shdD'
59 kApplicationsFolderType = 'apps'
60 kDocumentsFolderType = 'docs'
62 kVolumeRootFolderType = 'root'
63 kChewableItemsFolderType = 'flnt'
64 kApplicationSupportFolderType = 'asup'
65 kTextEncodingsFolderType = 'Ÿtex'
66 kStationeryFolderType = 'odst'
67 kOpenDocFolderType = 'odod'
68 kOpenDocShellPlugInsFolderType = 'odsp'
69 kEditorsFolderType = 'oded'
70 kOpenDocEditorsFolderType = 'Ÿodf'
71 kOpenDocLibrariesFolderType = 'odlb'
72 kGenEditorsFolderType = 'Ÿedi'
73 kHelpFolderType = 'Ÿhlp'
74 kInternetPlugInFolderType = 'Ÿnet'
75 kModemScriptsFolderType = 'Ÿmod'
76 kPrinterDescriptionFolderType = 'ppdf'
77 kPrinterDriverFolderType = 'Ÿprd'
78 kScriptingAdditionsFolderType = 'Ÿscr'
79 kSharedLibrariesFolderType = 'Ÿlib'
80 kVoicesFolderType = 'fvoc'
81 kControlStripModulesFolderType = 'sdev'
82 kAssistantsFolderType = 'astŸ'
83 kUtilitiesFolderType = 'utiŸ'
84 kAppleExtrasFolderType = 'aexŸ'
85 kContextualMenuItemsFolderType = 'cmnu'
86 kMacOSReadMesFolderType = 'morŸ'
87 kALMModulesFolderType = 'walk'
88 kALMPreferencesFolderType = 'trip'
89 kALMLocationsFolderType = 'fall'
90 kColorSyncProfilesFolderType = 'prof'
91 kThemesFolderType = 'thme'
92 kFavoritesFolderType = 'favs'