Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5101ee

Browse files
committed
Constants useful when using macfs module
1 parent 13dc4f7 commit f5101ee

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Mac/Lib/MACFS.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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
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'

0 commit comments

Comments
 (0)