Jack Jansen | f5101ee | 1995-08-31 13:38:44 +0000 | [diff] [blame] | 1 | # MACFS.py - Constants used by macfs routines |
| 2 | # Derived from Finder.h and Folders.h |
| 3 | |
| 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 |
| 16 | |
| 17 | # Constants for FindFolder |
Jack Jansen | 5c82d13 | 2001-03-15 14:39:37 +0000 | [diff] [blame] | 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 |
| 26 | |
Jack Jansen | f5101ee | 1995-08-31 13:38:44 +0000 | [diff] [blame] | 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' |
Jack Jansen | 7b7a2c2 | 1998-04-24 10:42:01 +0000 | [diff] [blame] | 39 | |
| 40 | # Alias types |
| 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' |
| 60 | |
| 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' |
| 69 | |
| 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' |
Jack Jansen | 34f83b3 | 2001-02-09 15:57:53 +0000 | [diff] [blame] | 101 | |
| 102 | # Don't remember why this is here |
| 103 | READ = 1 |
| 104 | WRITE = 2 |
| 105 | smAllScripts = -3 |
| 106 | |