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...
defaultfolder under Windows and MacOS X
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
defaultfolder under Windows and MacOS X
Kind regards,
Andreas Rozek
Andreas Rozek
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
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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode