Finding the current folder ?

Alex Tweedly alex at tweedly.net
Thu Oct 21 18:54:34 EDT 2004


At 17:28 21/10/2004 -0500, Gordon Tillman wrote:

>Hi Alex,
>
>Try something like this:
>
>function getDefaultFolder
>         set the itemDelimiter to "/"
>         get the filename of this stack
>         return item 1 to -2 of it
>end getDefaultFolder

Thanks for the suggestion, but that has the same problem, as does "the 
effective filename of this stack"

I've put a small stack on revonline (user alextweedly, stack "check folder 
info") should anyone want to try it without re-typing.

Download this to dreamcard player and run it - problem happens.
Download it to Revolution (or even to Dreamcard itself, not the player) and 
run it - same problem.
Save the stack to a file and run again - works as expected.
copy the stack to a folder and run in the Rev/Dreamcard - works as expected
copy the stack to a folder and run in the Player - problem happens

-- Alex.


More information about the use-livecode mailing list