Page 1 of 1

defaultfolder under Windows and MacOS X

Posted: Tue Jul 01, 2008 7:15 pm
by rozek
Hello!

Is there a reason why "the defaultfolder" initially points to the folder containing the current stack under Windows but to the folder containing the Revolution engine under MacOS X? (and: I am always talking about stack files, not about standalones)

The MacOS X behaviour makes it a bit more difficult for me to "start using" library stacks...

Posted: Tue Jul 01, 2008 8:25 pm
by Mark
Hi Rozek,

I have never noticed that there is a problem with the defaultFolder. I never rely on any default settings, so I don't rely on Revolution setting the defaultFolder to a particular path initially. If I want the defaultFolder to the the Revolution folder, I set the path by script, regardless of whether Revolution accidentally already did this by itself.

To set the defaultFolder to the Rev folder, use this:

set the itemDel to slash
set the defaultFolder to item 1 to -2 of the address

and to set the defaultFolder to the location of the current stack:

set the itemDel to slash
set the defaultFolder to item 1 to -2 of the effective filename of this stack

Best,

Mark

Posted: Wed Jul 02, 2008 4:42 am
by rozek
Hello Mark!

I did yet not know of "the address" and used a more complicated expression instead of "the effective filename"...

Thanks for your hints!