specialfolderpath("preferences") on windows

David Glasgow david at dvglasgow.wanadoo.co.uk
Thu Apr 15 03:35:06 EDT 2010


On 15 Apr 2010, at 5:23 am, Paul D. DeRocco wrote:

> No, it's not supported in Windows. Entering
> 
> 	put specialFolderPath("Preferences")
> 
> in the message box returns nothing in Windows. So your file would have gone
> into the root if you added a slash and your file name.
> 
> On advice from folks in the forum, I use specialFolderPath("asup") on the
> Mac, and specialFolderPath(26) on Windows, and append a slash and my app
> name, to get the name of the folder to put my app preferences in. If the
> folder doesn't exist, I create it.

Thanks, Paul, that makes sense, although I still can't find my wee file, and the standalone behaves as though it exists. Nothing in the root.   Maybe this has exposed an unrelated bug in my scripting.

Alternatively, maybe there is a hidden and undocumented Chamber of Secrets on Windows, containing my file and Douglas' missing left socks

David Glasgow



More information about the use-livecode mailing list