revlet and path
Richard Gaskin
ambassador at fourthworld.com
Wed Aug 5 15:08:11 EDT 2009
Yves COPPE wrote:
> Here is a very simple script :
>
> on mouseUp
> put empty into fld "resultat"
> set itemDel to "/"
> put item 1 to -2 of the effective fileName of this stack into tPath
> set itemDel to comma
> put tPath into fld "resultat"
> end mouseUp
>
> In the IDE, it gives the right path
> when I build a revlet, put it on my server and open it with Safari, it
> gives ... nothing ! fld "resultat" stays empty
>
> Any idea ?
The stack file on your server isn't the one that's running. Like web
pages, what the browser gets is a downloaded copy of the stack file.
This copy lives in RAM, so its fileName will be empty.
--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com
More information about the use-livecode
mailing list