Application Folder

Klaus Major klaus at major-k.de
Thu Sep 1 07:26:37 EDT 2005


Hi Scott,

> Hi Nicolas,
>
> Thank you for your reply.  I tried this but got a host of errors.
> Where do you place this in your stack when you use it?
> I tried it in a button (just for convenience) - but do you use
> it somewhere else in the stack?

i recommend to put this into the preopenstack script of your  
mainstack/standalone
and then you could store it in a global variable or custom-property  
for later use.

on preopenstack
    put the itemDel into tSavedDel
    set the itemDel to "/"
    get the effective fileName of this stack
    delete the last item of it
    global whatsoever
    put it into whatsoever
    ....
end preopenstack

Maybe your stack sets "the directory" at some time to another folder  
and thus the errors...

> Thanks
>
> Scott

Regards

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




More information about the use-livecode mailing list