Finding the current folder ?

Sarah Reichelt sarahr at genesearch.com.au
Sun Oct 24 23:03:02 EDT 2004


>>
>> I've hit the same problem. I have a stack that needs to find existing 
>> files that live in the stack's folder. It can't be done under Player. 
>> I think it's a bug -- do you want to report it? So many stacks need 
>> to access other files, this would seem to be a crucial blocker.
>
> Yes, I'll report it.
>
> My current planned work-around is to create a prefs file (using 
> specialFolderPath of "Documents"). If there is no prefs file,or if the 
> file specified in the prefs file doesn't exist, I'll do an "answer 
> file" for one of the input files, and store the path to the folder in 
> the prefs file - that way at least the user only needs to deal with 
> the dialog once on installation (and again if they change the folder).
>
> If there's a better work-around, please suggest it.
>
I haven't tested this (haven't used Dreamcard yet) but I wonder is it 
confused about what "this stack" is referring to. Does it make any 
difference if you actually specify the name of your stack in your 
script?
e.g.  put the long name of stack "MyStack" into thisFolder

Cheers,
Sarah



More information about the use-livecode mailing list