specialFolderPath("preferences") returns empty on Windows???
Mark Wieder
ahsoftware at sonic.net
Tue Apr 23 21:14:41 EDT 2019
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...
--
Mark Wieder
ahsoftware at gmail.com
More information about the use-livecode
mailing list