specialFolderPath("preferences") returns empty on Windows???
Richard Gaskin
ambassador at fourthworld.com
Tue Apr 23 22:48:02 EDT 2019
Mark Wieder wrote:
> On 4/23/19 11:25 AM, Richard Gaskin via use-livecode wrote:
>> Bob Sneidar wrote:
>>
>> > NVM I just read further. Preferences is not one I can use for Windows.
>>
>> The bad news is that, as you've discovered, Windows has no "Preferences"
>> folder per se.
>>
>> The good news is that it does have a commonly-used place for that sort
>> of thing, and that LC's specialFolderPath function allows passing in OS
>> constants for all sorts of things.
>>
>> In your case try specialFolderPath(26)
>>
>> Others are documented here, where Ken Ray took the time to explore as
>> many as he could find on Mac and Windows at the time:
>>
>> http://www.sonsothunder.com/devres/livecode/tips/file010.htm
>>
>
> Some reason why specialFolderPath("preferences") on Windows doesn't just
> return the value for specialFolderPath(26)? Yeah... I know... it would
> be a synonym and we can't have those, but sheesh...
It seems a philosophical problem: though a folder exists for the same
purpose, it isn't "Preferences".
I'm with you, though: ease of use > literal linguistic purity.
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list