[futurebasic] FBII System Folders (Was: Preferences Code)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1999 : Group Archive : Group : All Groups

From: Herbie Glunder <H.Gluender@...>
Date: Mon, 13 Dec 1999 12:02:43 +0100
Yes, Derek Smith,

the toolbox routine FN FINDFOLDER(...) is perhaps the most convenient
way to find the standard folders within the system folder.

Actually, one is not restricted to use _kOnSystemDisk. One may specify
any volRefNum, e.g. if one needs a temporary folder on an arbitrary
volume...

The toolbox and FB know several predefined constants for the second
argument (the desired folder) of the routine:
_"amnu"    apple menu items
_"ctrl"        control panels
_"desk"      desktop folder
_"extn"       system extensions
_"font"       fonts folder
_"pref"       preferences
_"prnt"       print monitor documents
_"strt"        startup items
_"macs"     system folder
_"temp"      temporary items
_"trsh"       single user trash
_"empt"      shared trash on net

At least on my machine under MacOS 7.5.5 and using FBII the predefined
constant _kCreateFolder is not functional. Under FB it is defined as
_kCreateFolder=1. For my purposes I define a constant _createFolder=256
(Pascal True) which works reliably. Staz told me that -- at least under
FB^3 -- everything works well with _kCreateFolder=1.

Best wished to all

Herbie
******************************************
H.Glu@...