Re: Help - defaultFolder path

2005-05-10 Thread Chris Carroll-Davis
Ah yes, this is true.  On OS X, the application root is it's position  
in the bundle.  An OS X application is actually a sort of folder.  If  
you select the app in the finder with the control key down you can  
"Show Package Contents"  to see what I mean...

C
On 10 May 2005, at 09:51, Nicolas Cueto wrote:
Kind of a newbee myself so this might be a case of the blind  
leading the
blind but...

Try working with the "effective filename" of the stack instead of the
"defaultFolder". This resolved a stack filepath confusion problem  
for a
(Win-only) stack of  mine.

Cheers,
Nicolas Cueto
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Help - defaultFolder path

2005-05-10 Thread Chris Carroll-Davis
You can use the function "the platform" to get the OS.
the platform
platform()
the platform
if the platform is "MacOS" then set the activatePalettes to true
The platform function returns one of the following strings:
MacOS any Mac OS, OS X, or Darwin system
Linux Linux for Intel or PowerPC architecture
Win32Windows (any version post-3.1)
HTH,
Chris

On 10 May 2005, at 09:34, <[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]> wrote:

Sorry - Newbee again
I'm building standalones for both Windows & OSX of an app that  
overwrites a
stack in the folder for the standalone.
I'm developing on windows and everything works fine on the windows
standalone. My issue is with the OSX standalone.
My problem seems to be  that when the OSX standalone is created, the
defaultFolder path is set to the folder that contains the  
application bundle
- NOT the folder containing the stacks. Therefore, when the app  
performs a
'save as' function, the original is not overwriten.
How do I change the the defaultFolder path for OSX and leave Windows
unchanged - is there a call to get the OS being used?

Thanks
Kevin Stallibrass
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Help - defaultFolder path

2005-05-10 Thread Nicolas Cueto
Kind of a newbee myself so this might be a case of the blind leading the
blind but...

Try working with the "effective filename" of the stack instead of the
"defaultFolder". This resolved a stack filepath confusion problem for a
(Win-only) stack of  mine.

Cheers,
Nicolas Cueto

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

Help - defaultFolder path

2005-05-10 Thread kevin
Sorry - Newbee again
 
I'm building standalones for both Windows & OSX of an app that overwrites a
stack in the folder for the standalone.
I'm developing on windows and everything works fine on the windows
standalone. My issue is with the OSX standalone.
My problem seems to be  that when the OSX standalone is created, the
defaultFolder path is set to the folder that contains the application bundle
- NOT the folder containing the stacks. Therefore, when the app performs a
'save as' function, the original is not overwriten.
How do I change the the defaultFolder path for OSX and leave Windows
unchanged - is there a call to get the OS being used?
 
Thanks
Kevin Stallibrass
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution