relative paths
Mark Schonewille
m.schonewille at economy-x-talk.com
Tue May 2 05:37:50 EDT 2006
Hi Viktoras,
You could set the defaultfolder to the path to your stack.
put the defaultFolder into myFldr
set the itemDel to "/"
set the defaultFolder to ¬
item 1 to -2 of the effective filename of me
put myData into url "file:/my file.txt"
put myMoreData into url "file:/folder/file.txt"
set the defaultFolder to myFldr
Best,
Mark
--
Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Salery is the easiest way to get your own web store on-line: http://
www.salery.biz/salery.html
Op 2-mei-2006, om 10:56 heeft Viktoras Didziulis het volgende
geschreven:
> One more question...
>
> How to force the stack to be run from its current directory when it is
> opened from within Revolution Studio ? The problem I am
> experiencing is
> setting relative paths for external files to open. It works fine
> when the
> stack is packaged into standalone and executed. But when it is under
> development it can not find files that are stored in its
> neighborhood i.e.
> URL "file:test.txt" does not work... How to deal with this?
>
> Thanks and bet wishes
> Viktoras
More information about the use-livecode
mailing list