FinderRegistry.pas 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715
  1. {
  2. File: FinderRegistry.p
  3. Contains: Data types for Finder AppleEvents
  4. Version: Technology: Mac OS 8
  5. Release: Universal Interfaces 3.4.2
  6. Copyright: © 1985-2002 by Apple Computer, Inc., all rights reserved.
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://www.freepascal.org/bugs.html
  10. }
  11. {
  12. Modified for use with Free Pascal
  13. Version 200
  14. Please report any bugs to <[email protected]>
  15. }
  16. {$mode macpas}
  17. {$packenum 1}
  18. {$macro on}
  19. {$inline on}
  20. {$CALLING MWPASCAL}
  21. unit FinderRegistry;
  22. interface
  23. {$setc UNIVERSAL_INTERFACES_VERSION := $0342}
  24. {$setc GAP_INTERFACES_VERSION := $0200}
  25. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  26. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  27. {$endc}
  28. {$ifc defined CPUPOWERPC and defined CPUI386}
  29. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  30. {$endc}
  31. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  32. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  33. {$endc}
  34. {$ifc not defined __ppc__ and defined CPUPOWERPC}
  35. {$setc __ppc__ := 1}
  36. {$elsec}
  37. {$setc __ppc__ := 0}
  38. {$endc}
  39. {$ifc not defined __i386__ and defined CPUI386}
  40. {$setc __i386__ := 1}
  41. {$elsec}
  42. {$setc __i386__ := 0}
  43. {$endc}
  44. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  45. {$error Conflicting definitions for __ppc__ and __i386__}
  46. {$endc}
  47. {$ifc defined __ppc__ and __ppc__}
  48. {$setc TARGET_CPU_PPC := TRUE}
  49. {$setc TARGET_CPU_X86 := FALSE}
  50. {$elifc defined __i386__ and __i386__}
  51. {$setc TARGET_CPU_PPC := FALSE}
  52. {$setc TARGET_CPU_X86 := TRUE}
  53. {$elsec}
  54. {$error Neither __ppc__ nor __i386__ is defined.}
  55. {$endc}
  56. {$setc TARGET_CPU_PPC_64 := FALSE}
  57. {$ifc defined FPC_BIG_ENDIAN}
  58. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  59. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  60. {$elifc defined FPC_LITTLE_ENDIAN}
  61. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  62. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  63. {$elsec}
  64. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  65. {$endc}
  66. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  67. {$setc CALL_NOT_IN_CARBON := FALSE}
  68. {$setc OLDROUTINENAMES := FALSE}
  69. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  70. {$setc OPAQUE_UPP_TYPES := TRUE}
  71. {$setc OTCARBONAPPLICATION := TRUE}
  72. {$setc OTKERNEL := FALSE}
  73. {$setc PM_USE_SESSION_APIS := TRUE}
  74. {$setc TARGET_API_MAC_CARBON := TRUE}
  75. {$setc TARGET_API_MAC_OS8 := FALSE}
  76. {$setc TARGET_API_MAC_OSX := TRUE}
  77. {$setc TARGET_CARBON := TRUE}
  78. {$setc TARGET_CPU_68K := FALSE}
  79. {$setc TARGET_CPU_MIPS := FALSE}
  80. {$setc TARGET_CPU_SPARC := FALSE}
  81. {$setc TARGET_OS_MAC := TRUE}
  82. {$setc TARGET_OS_UNIX := FALSE}
  83. {$setc TARGET_OS_WIN32 := FALSE}
  84. {$setc TARGET_RT_MAC_68881 := FALSE}
  85. {$setc TARGET_RT_MAC_CFM := FALSE}
  86. {$setc TARGET_RT_MAC_MACHO := TRUE}
  87. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  88. {$setc TYPE_BOOL := FALSE}
  89. {$setc TYPE_EXTENDED := FALSE}
  90. {$setc TYPE_LONGLONG := TRUE}
  91. uses MacTypes,AERegistry,OSA;
  92. {$ALIGN MAC68K}
  93. {
  94. //////////////////////////////////////
  95. Finder Suite
  96. //////////////////////////////////////
  97. }
  98. {
  99. The old Finder Event suite was 'FNDR'
  100. The new suite is 'fndr'
  101. }
  102. const
  103. kAEFinderSuite = $666E6472 (* 'fndr' *);
  104. {
  105. //////////////////////////////////////
  106. Finder Events
  107. //////////////////////////////////////
  108. }
  109. kAECleanUp = $66636C75 (* 'fclu' *);
  110. kAEEject = $656A6374 (* 'ejct' *);
  111. kAEEmpty = $656D7074 (* 'empt' *);
  112. kAEErase = $66657261 (* 'fera' *);
  113. kAEGestalt = $6773746C (* 'gstl' *);
  114. kAEPutAway = $70747779 (* 'ptwy' *);
  115. kAERebuildDesktopDB = $72646462 (* 'rddb' *);
  116. kAESync = $66757064 (* 'fupd' *);
  117. kAEInterceptOpen = $666F706E (* 'fopn' *);
  118. { "Sort" from the database suite: }
  119. kAEDatabaseSuite = $44415441 (* 'DATA' *);
  120. kAESort = $534F5254 (* 'SORT' *);
  121. {
  122. ////////////////////////////////////////////////////////////////////////
  123. Classes
  124. Note: all classes are defined up front so that the property definitions
  125. can reference classes.
  126. ////////////////////////////////////////////////////////////////////////
  127. }
  128. cInternalFinderObject = $6F626A20 (* 'obj ' *); { cReference - used to distinguish objects used inside the Finder only }
  129. {
  130. Main Finder class definitions
  131. Indentation implies object model hierarchy
  132. }
  133. { We do not use class cItem from AERegistry.r. Instead our class Item is a cObject }
  134. { cItem = 'citm', // defined in AERegistry.r }
  135. { cFile = 'file', // defined in AERegistry.r }
  136. cAliasFile = $616C6961 (* 'alia' *);
  137. cApplicationFile = $61707066 (* 'appf' *);
  138. cControlPanelFile = $63636476 (* 'ccdv' *);
  139. cDeskAccessoryFile = $64616669 (* 'dafi' *);
  140. cDocumentFile = $646F6366 (* 'docf' *);
  141. cFontFile = $666E7466 (* 'fntf' *);
  142. cSoundFile = $736E6466 (* 'sndf' *);
  143. cClippingFile = $636C7066 (* 'clpf' *);
  144. cContainer = $63746E72 (* 'ctnr' *);
  145. cDesktop = $6364736B (* 'cdsk' *);
  146. cSharableContainer = $73637472 (* 'sctr' *);
  147. cDisk = $63646973 (* 'cdis' *);
  148. cFolder = $63666F6C (* 'cfol' *);
  149. cSuitcase = $73746373 (* 'stcs' *);
  150. cAccessorySuitcase = $64737574 (* 'dsut' *);
  151. cFontSuitcase = $66737574 (* 'fsut' *);
  152. cTrash = $63747273 (* 'ctrs' *);
  153. cDesktopPrinter = $64736B70 (* 'dskp' *);
  154. cPackage = $7061636B (* 'pack' *);
  155. cContentSpace = $64776E64 (* 'dwnd' *); { cWindow = 'cwin', // defined in AERegistry.r }
  156. cContainerWindow = $63776E64 (* 'cwnd' *);
  157. cInfoWindow = $69776E64 (* 'iwnd' *);
  158. cSharingWindow = $73776E64 (* 'swnd' *);
  159. cStatusWindow = $71776E64 (* 'qwnd' *);
  160. cClippingWindow = $6C776E64 (* 'lwnd' *);
  161. cPreferencesWindow = $70776E64 (* 'pwnd' *);
  162. cDTPWindow = $64747077 (* 'dtpw' *);
  163. cProcess = $70726373 (* 'prcs' *);
  164. cAccessoryProcess = $70636461 (* 'pcda' *);
  165. cApplicationProcess = $70636170 (* 'pcap' *);
  166. cGroup = $73677270 (* 'sgrp' *);
  167. cUser = $63757365 (* 'cuse' *); { cApplication = 'capp', // defined in AERegistry.r }
  168. cSharingPrivileges = $70726976 (* 'priv' *);
  169. cPreferences = $63707266 (* 'cprf' *);
  170. cLabel = $636C626C (* 'clbl' *);
  171. cSound = $736E6420 (* 'snd ' *);
  172. cAliasList = $616C7374 (* 'alst' *);
  173. cSpecialFolders = $7370666C (* 'spfl' *); { For use by viewer search engines: }
  174. cOnlineDisk = $636F6473 (* 'cods' *);
  175. cOnlineLocalDisk = $636C6473 (* 'clds' *);
  176. cOnlineRemoteDisk = $63726473 (* 'crds' *); { Miscellaneous class definitions }
  177. cEntireContents = $65637473 (* 'ects' *);
  178. cIconFamily = $6966616D (* 'ifam' *);
  179. {
  180. //////////////////////////////////////
  181. Properties
  182. //////////////////////////////////////
  183. }
  184. { Properties of class cItem (really cObject) }
  185. { pBounds = 'pbnd', // defined in AERegistry.r }
  186. pComment = $636F6D74 (* 'comt' *);
  187. pContainer = $63746E72 (* 'ctnr' *);
  188. pContentSpace = $64776E64 (* 'dwnd' *);
  189. pCreationDateOld = $63727464 (* 'crtd' *); { to support pre-Finder 8 scripts }
  190. pCreationDate = $61736364 (* 'ascd' *); { from File Commands OSAX }
  191. pDescription = $64736372 (* 'dscr' *);
  192. pDisk = $63646973 (* 'cdis' *);
  193. pFolderOld = $63666F6C (* 'cfol' *); { to support pre-Finder 8 scripts }
  194. pFolder = $61736472 (* 'asdr' *); { from File Commands OSAX }
  195. pIconBitmap = $69696D67 (* 'iimg' *); { pID = 'ID ', // defined in AERegistry.r }
  196. pInfoWindow = $69776E64 (* 'iwnd' *);
  197. pKind = $6B696E64 (* 'kind' *);
  198. pLabelIndex = $6C616269 (* 'labi' *);
  199. pModificationDateOld = $6D6F6464 (* 'modd' *); { to support pre-Finder 8 scripts }
  200. pModificationDate = $61736D6F (* 'asmo' *); { from File Commands OSAX }
  201. { pName = 'pnam', // defined in AERegistry.r }
  202. pPhysicalSize = $70687973 (* 'phys' *);
  203. pPosition = $706F736E (* 'posn' *);
  204. pIsSelected = $6973736C (* 'issl' *);
  205. pSize = $7074737A (* 'ptsz' *); { pPointSize defined in AERegistry.r }
  206. pWindow = $6377696E (* 'cwin' *);
  207. pPreferencesWindow = $70776E64 (* 'pwnd' *);
  208. { Properties of class cFile (subclass of cItem) }
  209. pFileCreator = $66637274 (* 'fcrt' *);
  210. pFileType = $61737479 (* 'asty' *); { from File Commands OSAX }
  211. pFileTypeOld = $66697470 (* 'fitp' *); { to support pre-Finder 8 scripts }
  212. pIsLocked = $61736C6B (* 'aslk' *); { from File Commands OSAX }
  213. pIsLockedOld = $69736C6B (* 'islk' *); { to support pre-Finder 8 scripts }
  214. { pIsStationeryPad = 'pspd', // defined in AERegistry.r }
  215. { pVersion = 'vers', // defined in AERegistry.r }
  216. pProductVersion = $76657232 (* 'ver2' *);
  217. { Properties of class cAliasFile (subclass of cFile) }
  218. pOriginalItem = $6F726967 (* 'orig' *);
  219. { Properties of class cApplicationFile (subclass of cFile) }
  220. pMinAppPartition = $6D707274 (* 'mprt' *);
  221. pAppPartition = $61707074 (* 'appt' *);
  222. pSuggestedAppPartition = $73707274 (* 'sprt' *);
  223. pIsScriptable = $69736162 (* 'isab' *);
  224. { Properties of class cURLFile (subclass of cFile) }
  225. pInternetLocation = $696C6F63 (* 'iloc' *);
  226. { Properties of class cSoundFile (subclass of cFile) }
  227. pSound = $736E6420 (* 'snd ' *);
  228. {
  229. Properties of class cControlPanel (Views CP only) (subclass of cFile)
  230. Note: the other view-like preference settings are not available in the Views
  231. control panel. These properties are only offered here for backward compatability.
  232. To set the full range of Finder Preferences, use the Preferences object.
  233. }
  234. pShowFolderSize = $7366737A (* 'sfsz' *); { Moved to a per-folder basis in Finder 8.0 HIS }
  235. pShowComment = $73636F6D (* 'scom' *); { Moved to a per-folder basis in Finder 8.0 HIS }
  236. pShowDate = $73646174 (* 'sdat' *); { Moved to a per-folder basis in Finder 8.0 HIS }
  237. pShowCreationDate = $73636461 (* 'scda' *); { Moved to a per-folder basis in Finder 8.0 HIS }
  238. pShowKind = $736B6E64 (* 'sknd' *); { Moved to a per-folder basis in Finder 8.0 HIS }
  239. pShowLabel = $736C626C (* 'slbl' *); { Moved to a per-folder basis in Finder 8.0 HIS }
  240. pShowSize = $7373697A (* 'ssiz' *); { Moved to a per-folder basis in Finder 8.0 HIS }
  241. pShowVersion = $73767273 (* 'svrs' *); { Moved to a per-folder basis in Finder 8.0 HIS }
  242. pSortDirection = $736F7264 (* 'sord' *);
  243. pShowDiskInfo = $7364696E (* 'sdin' *); { Always on in Finder 8.0 HIS }
  244. pListViewIconSize = $6C766973 (* 'lvis' *); { Moved to a per-folder basis in Finder 8.0 HIS }
  245. pGridIcons = $66677264 (* 'fgrd' *); { Moved to a per-folder basis in Finder 8.0 HIS }
  246. pStaggerIcons = $66737467 (* 'fstg' *); { No longer part of the Finder 8.0 HIS }
  247. pViewFont = $76666E74 (* 'vfnt' *);
  248. pViewFontSize = $7666737A (* 'vfsz' *);
  249. { Properties of class cContainer (subclass of cItem) }
  250. pCompletelyExpanded = $70657863 (* 'pexc' *);
  251. pContainerWindow = $63776E64 (* 'cwnd' *);
  252. pEntireContents = $65637473 (* 'ects' *);
  253. pExpandable = $70657861 (* 'pexa' *);
  254. pExpanded = $70657870 (* 'pexp' *);
  255. pPreviousView = $73766577 (* 'svew' *); { pSelection = 'sele', // defined in AERegistry.r }
  256. pView = $70766577 (* 'pvew' *);
  257. pIconSize = $6C766973 (* 'lvis' *); { defined above }
  258. pKeepArranged = $61727267 (* 'arrg' *); { OBSOLETE in Finder 9 or later }
  259. pKeepArrangedBy = $61726279 (* 'arby' *); { OBSOLETE in Finder 9 or later }
  260. { Properties of class cDesktop (subclass of cContainer) }
  261. pStartupDisk = $7364736B (* 'sdsk' *);
  262. pTrash = $74727368 (* 'trsh' *);
  263. { Properties of class cSharableContainer (subclass of cContainer) }
  264. pOwner = $736F776E (* 'sown' *);
  265. pOwnerPrivileges = $6F776E72 (* 'ownr' *);
  266. pGroup = $73677270 (* 'sgrp' *);
  267. pGroupPrivileges = $67707072 (* 'gppr' *);
  268. pGuestPrivileges = $67737470 (* 'gstp' *);
  269. pArePrivilegesInherited = $69707276 (* 'iprv' *);
  270. pExported = $73657870 (* 'sexp' *);
  271. pMounted = $736D6F75 (* 'smou' *);
  272. pSharingProtection = $7370726F (* 'spro' *);
  273. pSharing = $73686172 (* 'shar' *);
  274. pSharingWindow = $73776E64 (* 'swnd' *);
  275. { Properties of class cDisk (subclass of cSharableContainer) }
  276. pCapacity = $63617061 (* 'capa' *);
  277. pEjectable = $6973656A (* 'isej' *);
  278. pFreeSpace = $66727370 (* 'frsp' *);
  279. pLocal = $69737276 (* 'isrv' *);
  280. pIsStartup = $69737464 (* 'istd' *);
  281. { Properties of class cTrash (subclass of cSharableContainer) }
  282. pWarnOnEmpty = $7761726E (* 'warn' *);
  283. { Properties of class cWindow (subclass of cContentSpace) }
  284. { pBounds = 'pbnd', // defined in AERegistry.r }
  285. { pHasCloseBox = 'hclb', // defined in AERegistry.r }
  286. { pIsFloating = 'isfl', // defined in AERegistry.r }
  287. { pIndex = 'pidx', // defined in AERegistry.r }
  288. { pIsModal = 'pmod', // defined in AERegistry.r }
  289. { pPosition = 'posn', // defined above }
  290. { pIsResizable = 'prsz', // defined in AERegistry.r }
  291. { pHasTitleBar = 'ptit', // defined in AERegistry.r }
  292. { pVisible = 'pvis', // defined in AERegistry.r }
  293. { pIsZoomable = 'iszm', // defined in AERegistry.r }
  294. { pIsZoomed = 'pzum', // defined in AERegistry.r }
  295. pIsZoomedFull = $7A756D66 (* 'zumf' *);
  296. pIsPopup = $64727772 (* 'drwr' *);
  297. pIsPulledOpen = $70756C6C (* 'pull' *); { only applies to popup windows }
  298. pIsCollapsed = $77736864 (* 'wshd' *); { only applies to normal windows }
  299. { Properties of class cContainerWindow (subclass of cWindow) }
  300. pObject = $636F626A (* 'cobj' *);
  301. { Properties of class cSharingWindow (subclass of cWindow) }
  302. pSharableContainer = $73637472 (* 'sctr' *);
  303. { Properties of class cInfoWindow (subclass of cWindow) }
  304. pInfoPanel = $70616E6C (* 'panl' *);
  305. { Properties of networking support }
  306. pFileShareOn = $66736872 (* 'fshr' *);
  307. pFileShareStartingUp = $66737570 (* 'fsup' *);
  308. pProgramLinkingOn = $69616320 (* 'iac ' *);
  309. { Properties of class cPreferencesWindow (subclass of cWindow) }
  310. { pShowFolderSize = 'sfsz', // defined above for Views CP }
  311. { pShowComment = 'scom', // defined above for Views CP }
  312. pShowModificationDate = $73646174 (* 'sdat' *); { pShowDate defined above for Views CP }
  313. { pShowKind = 'sknd', // defined above for Views CP }
  314. { pShowLabel = 'slbl', // defined above for Views CP }
  315. { pShowSize = 'ssiz', // defined above for Views CP }
  316. { pShowVersion = 'svrs', // defined above for Views CP }
  317. { pShowCreationDate = 'scda', // Removed from Finder 8.0 HIS }
  318. { pShowFileType = 'sfty', // Removed from Finder 8.0 HIS }
  319. { pShowFileCreator = 'sfcr', // Removed from Finder 8.0 HIS }
  320. { pListViewIconSize = 'lvis', // defined above for Views CP }
  321. { pGridIcons = 'fgrd', // defined above for Views CP }
  322. { pStaggerIcons = 'fstg', // defined above for Views CP }
  323. { pViewFont = 'vfnt', // defined above for Views CP }
  324. { pViewFontSize = 'vfsz', // defined above for Views CP }
  325. pUseRelativeDate = $75726474 (* 'urdt' *); { Moved to a per-folder basis in Finder 8.0 HIS }
  326. pDelayBeforeSpringing = $64656C61 (* 'dela' *);
  327. pSpringOpenFolders = $73707267 (* 'sprg' *);
  328. pUseShortMenus = $75736D65 (* 'usme' *);
  329. pUseWideGrid = $75737767 (* 'uswg' *);
  330. pLabel1 = $6C626C31 (* 'lbl1' *);
  331. pLabel2 = $6C626C32 (* 'lbl2' *);
  332. pLabel3 = $6C626C33 (* 'lbl3' *);
  333. pLabel4 = $6C626C34 (* 'lbl4' *);
  334. pLabel5 = $6C626C35 (* 'lbl5' *);
  335. pLabel6 = $6C626C36 (* 'lbl6' *);
  336. pLabel7 = $6C626C37 (* 'lbl7' *);
  337. pDefaultIconViewIconSize = $6969737A (* 'iisz' *);
  338. pDefaultButtonViewIconSize = $6269737A (* 'bisz' *);
  339. pDefaultListViewIconSize = $6C69737A (* 'lisz' *); { old use of this name is now pIconSize }
  340. pIconViewArrangement = $69617272 (* 'iarr' *);
  341. pButtonViewArrangement = $62617272 (* 'barr' *);
  342. {
  343. The next bunch are the various arrangements that make up
  344. enumArrangement
  345. }
  346. pNoArrangement = $6E617272 (* 'narr' *);
  347. pSnapToGridArrangement = $67726461 (* 'grda' *);
  348. pByNameArrangement = $6E616D61 (* 'nama' *);
  349. pByModificationDateArrangement = $6D647461 (* 'mdta' *);
  350. pByCreationDateArrangement = $63647461 (* 'cdta' *);
  351. pBySizeArrangement = $73697A61 (* 'siza' *);
  352. pByKindArrangement = $6B696E61 (* 'kina' *);
  353. pByLabelArrangement = $6C616261 (* 'laba' *);
  354. { #define pObject cObject // defined above }
  355. { Properties of class cProcess (subclass of cObject) }
  356. { pName = 'pnam', // defined in AERegistry.r }
  357. pFile = $66696C65 (* 'file' *); { pCreatorType = 'fcrt', // defined above }
  358. { pFileType = 'asty', // defined above }
  359. { pIsFrontProcess = 'pisf', // defined in AERegistry.r }
  360. { pAppPartition = 'appt', // defined above }
  361. pPartitionSpaceUsed = $70757364 (* 'pusd' *); { pIsScriptable = 'isab', // defined in AERegistry.r }
  362. { pVisible = 'pvis' // defined in AERegistry.r }
  363. pLocalAndRemoteEvents = $72657674 (* 'revt' *);
  364. pHasScriptingTerminology = $68736372 (* 'hscr' *);
  365. { Properties of class cAccessoryProcess (subclass of cProcess) }
  366. pDeskAccessoryFile = $64616669 (* 'dafi' *);
  367. { Properties of class cApplicationProcess (subclass of cProcess) }
  368. pApplicationFile = $61707066 (* 'appf' *);
  369. {
  370. Properties of class cGroup (subclass of cObject)
  371. enum (
  372. pBounds
  373. pIconBitmap
  374. pLabelIndex
  375. pName
  376. pPosition
  377. pWindow = cWindow // defined above
  378. );
  379. }
  380. { Properties of class cUser (subclass of cObject) }
  381. { pBounds }
  382. { pIconBitmap }
  383. { pLabelIndex }
  384. { pName }
  385. { pPosition }
  386. { pWindow = cWindow, // defined above }
  387. pCanConnect = $63636F6E (* 'ccon' *);
  388. pCanChangePassword = $63637077 (* 'ccpw' *);
  389. pCanDoProgramLinking = $63696163 (* 'ciac' *);
  390. pIsOwner = $69736F77 (* 'isow' *);
  391. pARADialIn = $61726164 (* 'arad' *);
  392. pShouldCallBack = $63616C62 (* 'calb' *);
  393. pCallBackNumber = $63626E6D (* 'cbnm' *);
  394. {
  395. Properties of class cApplication (subclass of cObject)
  396. NOTE: properties for the special folders must match their respective kXXXFolderType constants
  397. }
  398. pAboutMacintosh = $61626278 (* 'abbx' *);
  399. pAppleMenuItemsFolder = $616D6E75 (* 'amnu' *); { kAppleMenuFolderType }
  400. { pClipboard = 'pcli', // defined in AERegistry.r }
  401. pControlPanelsFolder = $6374726C (* 'ctrl' *); { kControlPanelFolderType }
  402. pDesktop = $6465736B (* 'desk' *); { kDesktopFolderType }
  403. pExtensionsFolder = $6578746E (* 'extn' *); { kExtensionFolderType }
  404. { pFileShareOn = 'fshr', // defined above }
  405. pFinderPreferences = $70667270 (* 'pfrp' *);
  406. pFontsFolder = $666F6E74 (* 'font' *);
  407. pFontsFolderPreAllegro = $66666E74 (* 'ffnt' *); { DO NOT USE THIS - FOR BACKWARDS COMPAT ONLY }
  408. { pIsFrontProcess = 'pisf', // defined in AERegistry.r }
  409. { pInsertionLoc = 'pins', // defined in AERegistry.r }
  410. pLargestFreeBlock = $6D667265 (* 'mfre' *);
  411. pPreferencesFolder = $70726566 (* 'pref' *); { kPreferencesFolderType }
  412. { pProductVersion = 'ver2', // defined above }
  413. { pUserSelection = 'pusl', // defined in AERegistry.r }
  414. { pFileShareStartingUp = 'fsup', // defined above }
  415. pShortCuts = $73637574 (* 'scut' *);
  416. pShutdownFolder = $73686466 (* 'shdf' *);
  417. pStartupItemsFolder = $73747274 (* 'strt' *); { kStartupFolderType }
  418. pSystemFolder = $6D616373 (* 'macs' *); { kSystemFolderType }
  419. pTemporaryFolder = $74656D70 (* 'temp' *); { kTemporaryFolderType }
  420. { pVersion = 'vers', // defined in AERegistry.r }
  421. pViewPreferences = $70767770 (* 'pvwp' *); { pVisible = 'pvis', // defined in AERegistry.r }
  422. pStartingUp = $6177616B (* 'awak' *); { private property to tell whether the Finder is fully up and running }
  423. { Properties of class cSharingPrivileges (subclass of cObject) }
  424. pSeeFiles = $70727672 (* 'prvr' *);
  425. pSeeFolders = $70727673 (* 'prvs' *);
  426. pMakeChanges = $70727677 (* 'prvw' *);
  427. {
  428. Properties of class cPreferences (subclass of cObject)
  429. enum (
  430. pShowFolderSize = 'sfsz', // defined above for Views CP
  431. pShowComment = 'scom', // defined above for Views CP
  432. pShowModificationDate = pShowDate, // pShowDate defined above for Views CP
  433. pShowKind = 'sknd', // defined above for Views CP
  434. pShowLabel = 'slbl', // defined above for Views CP
  435. pShowSize = 'ssiz', // defined above for Views CP
  436. pShowVersion = 'svrs', // defined above for Views CP
  437. pShowCreationDate = 'scda', // defined in cPreferencesWindow
  438. pShowFileType = 'sfty', // defined in cPreferencesWindow
  439. pShowFileCreator = 'sfcr', // defined in cPreferencesWindow
  440. pListViewIconSize = 'lvis', // defined above for Views CP
  441. pGridIcons = 'fgrd', // defined above for Views CP
  442. pStaggerIcons = 'fstg', // defined above for Views CP
  443. pViewFont = 'vfnt', // defined above for Views CP
  444. pViewFontSize = 'vfsz', // defined above for Views CP
  445. pUseRelativeDate = 'urdt', // defined in cPreferencesWindow
  446. pDelayBeforeSpringing = 'dela', // defined in cPreferencesWindow
  447. pShowMacOSFolder = 'sosf', // defined in cPreferencesWindow
  448. pUseShortMenus = 'usme', // defined in cPreferencesWindow
  449. pUseCustomNewMenu = 'ucnm', // defined in cPreferencesWindow
  450. pShowDesktopInBackground = 'sdtb', // defined in cPreferencesWindow
  451. pActivateDesktopOnClick = 'adtc', // defined in cPreferencesWindow
  452. pLabel1 = 'lbl1', // defined in cPreferencesWindow
  453. pLabel2 = 'lbl2', // defined in cPreferencesWindow
  454. pLabel3 = 'lbl3', // defined in cPreferencesWindow
  455. pLabel4 = 'lbl4', // defined in cPreferencesWindow
  456. pLabel5 = 'lbl5', // defined in cPreferencesWindow
  457. pLabel6 = 'lbl6', // defined in cPreferencesWindow
  458. pLabel7 = 'lbl7', // defined in cPreferencesWindow
  459. pWindow = cWindow // defined above
  460. );
  461. }
  462. {
  463. Properties of class cLabel (subclass of cObject)
  464. enum (
  465. pName = 'pnam', // defined in AERegistry.r
  466. pColor = 'colr', // defined in AERegistry.r
  467. );
  468. }
  469. { Misc Properties }
  470. pSmallIcon = $736D6963 (* 'smic' *);
  471. pSmallButton = $736D6275 (* 'smbu' *);
  472. pLargeButton = $6C676275 (* 'lgbu' *);
  473. pGrid = $67726964 (* 'grid' *);
  474. {
  475. //////////////////////////////////////
  476. Enumerations defined by the Finder
  477. //////////////////////////////////////
  478. }
  479. enumViewBy = $76776279 (* 'vwby' *);
  480. enumGestalt = $6773656E (* 'gsen' *);
  481. enumConflicts = $63666C63 (* 'cflc' *);
  482. enumExistingItems = $65787369 (* 'exsi' *);
  483. enumOlderItems = $6F6C6472 (* 'oldr' *);
  484. enumDate = $656E6461 (* 'enda' *);
  485. enumAnyDate = $616E7964 (* 'anyd' *);
  486. enumToday = $74646179 (* 'tday' *);
  487. enumYesterday = $79646179 (* 'yday' *);
  488. enumThisWeek = $7477656B (* 'twek' *);
  489. enumLastWeek = $6C77656B (* 'lwek' *);
  490. enumThisMonth = $746D6F6E (* 'tmon' *);
  491. enumLastMonth = $6C6D6F6E (* 'lmon' *);
  492. enumThisYear = $74796572 (* 'tyer' *);
  493. enumLastYear = $6C796572 (* 'lyer' *);
  494. enumBeforeDate = $62666474 (* 'bfdt' *);
  495. enumAfterDate = $61666474 (* 'afdt' *);
  496. enumBetweenDate = $62746474 (* 'btdt' *);
  497. enumOnDate = $6F6E6474 (* 'ondt' *);
  498. enumAllDocuments = $616C6C64 (* 'alld' *);
  499. enumFolders = $666F6C64 (* 'fold' *);
  500. enumAliases = $616C6961 (* 'alia' *);
  501. enumStationery = $73746174 (* 'stat' *);
  502. enumWhere = $77686572 (* 'wher' *);
  503. enumAllLocalDisks = $616C646B (* 'aldk' *);
  504. enumAllRemoteDisks = $6172646B (* 'ardk' *);
  505. enumAllDisks = $616C6C64 (* 'alld' *);
  506. enumAllOpenFolders = $616F666F (* 'aofo' *);
  507. enumIconSize = $6973697A (* 'isiz' *);
  508. enumSmallIconSize = $736D6963 (* 'smic' *);
  509. enumMiniIconSize = $6D696963 (* 'miic' *);
  510. enumLargeIconSize = $6C676963 (* 'lgic' *);
  511. enumSortDirection = $736F6472 (* 'sodr' *);
  512. enumSortDirectionNormal = $736E726D (* 'snrm' *);
  513. enumSortDirectionReverse = $73727673 (* 'srvs' *);
  514. enumArrangement = $65617272 (* 'earr' *);
  515. { Get Info Window panel enumeration }
  516. enumInfoWindowPanel = $69706E6C (* 'ipnl' *);
  517. enumGeneralPanel = $67706E6C (* 'gpnl' *);
  518. enumSharingPanel = $73706E6C (* 'spnl' *);
  519. enumStatusNConfigPanel = $73636E6C (* 'scnl' *);
  520. enumFontsPanel = $66706E6C (* 'fpnl' *);
  521. enumMemoryPanel = $6D706E6C (* 'mpnl' *);
  522. { Preferences panel enumeration }
  523. enumPrefsWindowPanel = $70706C65 (* 'pple' *);
  524. enumPrefsGeneralPanel = $70676E70 (* 'pgnp' *);
  525. enumPrefsLabelPanel = $706C6270 (* 'plbp' *);
  526. enumPrefsIconViewPanel = $70697670 (* 'pivp' *);
  527. enumPrefsButtonViewPanel = $70627670 (* 'pbvp' *);
  528. enumPrefsListViewPanel = $706C7670 (* 'plvp' *);
  529. {
  530. //////////////////////////////////////
  531. Types defined by the Finder
  532. //////////////////////////////////////
  533. }
  534. typeIconFamily = $6966616D (* 'ifam' *); { An AEList of typeIconAndMask, type8BitIcon, & c. }
  535. typeIconAndMask = $49434E23 (* 'ICN#' *);
  536. type8BitMask = $6C386D6B (* 'l8mk' *);
  537. type32BitIcon = $696C3332 (* 'il32' *);
  538. type8BitIcon = $69636C38 (* 'icl8' *);
  539. type4BitIcon = $69636C34 (* 'icl4' *);
  540. typeSmallIconAndMask = $69637323 (* 'ics#' *);
  541. typeSmall8BitMask = $73386D6B (* 's8mk' *);
  542. typeSmall32BitIcon = $69733332 (* 'is32' *);
  543. typeSmall8BitIcon = $69637338 (* 'ics8' *);
  544. typeSmall4BitIcon = $69637334 (* 'ics4' *);
  545. typeRelativeTime = $7274696D (* 'rtim' *);
  546. typeConceptualTime = $74696D63 (* 'timc' *);
  547. {
  548. //////////////////////////////////////
  549. Keywords defined by the Finder
  550. //////////////////////////////////////
  551. }
  552. keyIconAndMask = $49434E23 (* 'ICN#' *);
  553. key32BitIcon = $696C3332 (* 'il32' *);
  554. key8BitIcon = $69636C38 (* 'icl8' *);
  555. key4BitIcon = $69636C34 (* 'icl4' *);
  556. key8BitMask = $6C386D6B (* 'l8mk' *);
  557. keySmallIconAndMask = $69637323 (* 'ics#' *);
  558. keySmall8BitIcon = $69637338 (* 'ics8' *);
  559. keySmall4BitIcon = $69637334 (* 'ics4' *);
  560. keySmall32BitIcon = $69733332 (* 'is32' *);
  561. keySmall8BitMask = $73386D6B (* 's8mk' *);
  562. keyMini1BitMask = $69636D23 (* 'icm#' *);
  563. keyMini4BitIcon = $69636D34 (* 'icm4' *);
  564. keyMini8BitIcon = $69636D38 (* 'icm8' *);
  565. keyAEUsing = $7573696E (* 'usin' *);
  566. keyAEReplacing = $616C7270 (* 'alrp' *);
  567. keyAENoAutoRouting = $726F7574 (* 'rout' *);
  568. keyLocalPositionList = $6D76706C (* 'mvpl' *);
  569. keyGlobalPositionList = $6D767067 (* 'mvpg' *);
  570. keyRedirectedDocumentList = $6670646C (* 'fpdl' *);
  571. {
  572. //////////////////////////////////////
  573. New prepositions used by the Finder
  574. //////////////////////////////////////
  575. }
  576. keyASPrepositionHas = $68617320 (* 'has ' *);
  577. keyAll = $6B79616C (* 'kyal' *);
  578. keyOldFinderItems = $6673656C (* 'fsel' *);
  579. {
  580. //////////////////////////////////////
  581. New key forms used by the Finder
  582. //////////////////////////////////////
  583. }
  584. formAlias = $616C6973 (* 'alis' *);
  585. formCreator = $66637274 (* 'fcrt' *);
  586. {
  587. //////////////////////////////////////
  588. Finder error codes
  589. //////////////////////////////////////
  590. }
  591. errFinderIsBusy = -15260;
  592. errFinderWindowNotOpen = -15261;
  593. errFinderCannotPutAway = -15262;
  594. errFinderWindowMustBeIconView = -15263; { RequireWindowInIconView }
  595. errFinderWindowMustBeListView = -15264; { RequireWindowInListView }
  596. errFinderCantMoveToDestination = -15265;
  597. errFinderCantMoveSource = -15266;
  598. errFinderCantOverwrite = -15267;
  599. errFinderIncestuousMove = -15268; { Could just use errFinderCantMoveSource }
  600. errFinderCantMoveToAncestor = -15269; { Could also use errFinderCantMoveSource }
  601. errFinderCantUseTrashedItems = -15270;
  602. errFinderItemAlreadyInDest = -15271; { Move from folder A to folder A }
  603. errFinderUnknownUser = -15272; { Includes unknown group }
  604. errFinderSharePointsCantInherit = -15273;
  605. errFinderWindowWrongType = -15274;
  606. errFinderPropertyNowWindowBased = -15275;
  607. errFinderAppFolderProtected = -15276; { used by General controls when folder protection is on }
  608. errFinderSysFolderProtected = -15277; { used by General controls when folder protection is on }
  609. errFinderBoundsWrong = -15278;
  610. errAEValueOutOfRange = -15279;
  611. errFinderPropertyDoesNotApply = -15280;
  612. errFinderFileSharingMustBeOn = -15281;
  613. errFinderMustBeActive = -15282;
  614. errFinderVolumeNotFound = -15283; { more descriptive than what we get with nsvErr }
  615. errFinderLockedItemsInTrash = -15284; { there are some locked items in the trash }
  616. errFinderOnlyLockedItemsInTrash = -15285; { all the items (except folders) in the trash are locked }
  617. errFinderProgramLinkingMustBeOn = -15286;
  618. errFinderWindowMustBeButtonView = -15287;
  619. errFinderBadPackageContents = -15288; { something is wrong within the package }
  620. errFinderUnsupportedInsidePackages = -15289; { operation cannot be used on items within a package }
  621. errFinderCorruptOpenFolderList = -15290; { was -15276 in Finder 8.6 and earlier, but that conflicted with General Controls }
  622. errFinderNoInvisibleFiles = -15291; { was -15277 in Finder 8.6 and earlier, but that conflicted with General Controls }
  623. errFinderCantDeleteImmediately = -15292; { cannot delete immediately via scripting }
  624. errFinderLastReserved = -15379;
  625. {$ALIGN MAC68K}
  626. end.