How to get path of main stack from external ?

Klaus Major klaus at major-k.de
Wed May 11 11:14:02 EDT 2005


Strast wuitje, Ruslan,

> Ruslan Zasukhin wrote:
>
>> And can somebody point me the correct Transcript command to get  
>> path of main
>> stack ?
>>
>
> It's the filename property:
>
>   get the filename of stack MyMainStack
>
> If you ever need to get the filename of a stack and you don't know  
> if it's a mainstack or a substack just add the "effective" keyword:
>
>   get the effective fileName of stack MySubStack

and then you can simply strip off the filename to get the needed  
directory:

...
put the filename of stack MyMainStack into targetdir
set the itemdelimiter to "/"
delete item -1 of targetdir
...

Now targetdir = the directory you are looking for :-)

>
>
> --
>  Richard Gaskin
>  Fourth World Media Corporation
>  __________________________________________________
>  Rev tools and more: http://www.fourthworld.com/rev

Doswidanje tovaritch :-)

Klaus Major
klaus at major-k.de
http://www.major-k.de


P.S.
Yes, i know, my russian is lousy :-D


More information about the use-livecode mailing list