David,

Where is the stack being saved? If is being saved in the same directory as
Rev, it is because "the directory" needs to be set to the location of your
stack. When you make your stack a standalone, its location will be the
"default", but until it's a standalone, the Rev app's folder is the default.

To change it for Windows and Mac OS (not OS X) only, use something like
this:

function AppPath
   local tPath
   get matchText(the effective fileName of this stack,"(.*\/)",tPath)
   return tPath
end AppPath

If you want a more generic all-purpose, multi-platform version, you can use
the one on this tip at my site:

http://www.sonsothunder.com/devres/revolution/revolution.htm?_file008

Enjoy,

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/


----- Original Message -----
From: "David Egbert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 1:36 AM
Subject: Save stack working?


> I've tried the following script to try to setup a preferences-like file
for
> windows.  I can't seem to get it to save the stack to the defaultFolder
area
> of my standalone.
>
> Is save stack screwed up or am I?  :-)  It seems pretty simple.
>
> on mouseUP
>   put "prefs.dat" into prefsFile
>
>   create invisible stack prefsFile
>   -- set custom properties here
>
>   save stack prefsFile
>     -- should save in the defaultFolder right?
>
>   close stack prefsFile
> end mouseUP
>
>
> Thanks!
>
> --
> Dave Egbert
>
> _______________________________________________
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to