home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / MacHacksBug / Python 1.5.2c1 / Mac / Lib / MACFS.py < prev    next >
Encoding:
Text File  |  2000-06-23  |  3.3 KB  |  93 lines

  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'
  31.  
  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'
  52.  
  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'
  61.  
  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'
  93.