summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-08-31 13:38:44 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-08-31 13:38:44 (GMT)
commitf5101ee5dc74a6f774642217459b062fe295e2c6 (patch)
treebfba7971373be5079523d1bd9ea077d0bf9796ef
parent13dc4f71a903ee38510aff6583a82435fbdf700b (diff)
downloadcpython-f5101ee5dc74a6f774642217459b062fe295e2c6.zip
cpython-f5101ee5dc74a6f774642217459b062fe295e2c6.tar.gz
cpython-f5101ee5dc74a6f774642217459b062fe295e2c6.tar.bz2
Constants useful when using macfs module
-rw-r--r--Mac/Lib/MACFS.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/Mac/Lib/MACFS.py b/Mac/Lib/MACFS.py
new file mode 100644
index 0000000..132db37
--- /dev/null
+++ b/Mac/Lib/MACFS.py
@@ -0,0 +1,30 @@
+# MACFS.py - Constants used by macfs routines
+# Derived from Finder.h and Folders.h
+
+# Flags in FInfo.Flags field:
+kIsOnDesk = 0x1
+kColor = 0xE
+kIsShared = 0x40
+kHasBeenInited = 0x100
+kHasCustomIcon = 0x400
+kIsStationery = 0x800
+kIsStationary = 0x800
+kNameLocked = 0x1000
+kHasBundle = 0x2000
+kIsInvisible = 0x4000
+kIsAlias = 0x8000
+
+# Constants for FindFolder
+kOnSystemDisk = 0x8000
+kSystemFolderType = 'macs' # the system folder
+kDesktopFolderType = 'desk' # the desktop folder; objects in this folder show on the desk top.
+kTrashFolderType = 'trsh' # the trash folder; objects in this folder show up in the trash
+kWhereToEmptyTrashFolderType = 'empt' # the "empty trash" folder; Finder starts empty from here down
+kPrintMonitorDocsFolderType = 'prnt' # Print Monitor documents
+kStartupFolderType = 'strt' # Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here
+kAppleMenuFolderType = 'amnu' # Finder objects to put into the Apple menu go here
+kControlPanelFolderType = 'ctrl' # Control Panels go here (may contain INITs)
+kExtensionFolderType = 'extn' # Finder extensions go here
+kFontsFolderType = 'font' # Fonts go here
+kPreferencesFolderType = 'pref' # preferences for applications go here
+kTemporaryFolderType = 'temp'