[V4REV] Notes on example stack // path to stack folder

Ivan Smahin IvanSmahin at public.kherson.ua
Tue Jun 14 16:42:59 CDT 2005


Hello Robert,

Tuesday, June 14, 2005, 1:21:01 PM, you wrote:

RB> When the example stack opens, it should get a path to its folder and
RB> save it in a custom property, so any example stack can fetch it and
RB> use as root folder. So all scripts in examples use only path relative
RB> to this.

RB> for example

RB> on openStack
RB>    get the effective filename of this stack
RB>    set the itemDel to slash
RB>    set the rootFolderPath of this stack to (item 1 to -2 of it) & slash
RB>    ...
RB> end openStack

RB> Then each time you need a full path

RB> put (the rootFolderPath of stack "exampleIndex") & relDbPath into fullDbPath

Is it another way to set default application folder?
Something like:

set defaultfolder to rootFolderPath
..

After this all relation path must be treated as related to rootFolderPath.


-- 
Best regards,
 Ivan                            mailto:IvanSmahin at public.kherson.ua



More information about the Valentina-beta mailing list