Standalones and the defaultFolder

Bob Sneidar bobsneidar at
Mon Dec 16 14:53:10 EST 2019

I came to this conclusion over a year ago and have had refactoring away from it on the back burner. No longer. I went through my code and divorced myself from this addictive coding habit. 

Bob S

> On Dec 16, 2019, at 09:15 , Mark Waddingham via use-livecode <use-livecode at> wrote:
> Upshot - never use the defaultFolder to find stackfiles - unless they are passed in by the user as arguments in a command-line context. There's 'specialFolderPath's for various places these days (most noticeable resources and engine); but you can also just grok the filename property of your mainstack too. (The stackFiles property can be useful here too - this allows mapping arbitrary stack names to filepaths, which if relative are relative to the stack on which the stackFiles property is set).
> Warmest Regards,
> Mark.
> -- 
> Mark Waddingham ~ mark at ~

More information about the use-livecode mailing list