Re: Revlet default folder

2009-08-01 Thread J. Landman Gay

Kevin Stallibrass wrote:

I feel that a better place for the default folder is the
temporary internet files folder so that when this folder is emptied via the
web browser, my files will be removed at the same time.

Trouble is, I've no idea of a global path I could use which would work on
all supported browsers/OS's  - is there one?


Forgot to answer this. The Rev function specialFolderPath("temporary") 
will return what you want in both standalones and Revlets. On OS X it is:


/Users//Library/Caches/TemporaryItems

On Windows XP:

C:/Documents and Settings//Local Settings/Temp

Or if you want a file name rather than a folder, use the tempName() 
function. It returns a path and a guaranteed unique file name for a 
temporary file. The actual file name will vary depending on the OS, the 
files already in the temp folder, and some other things, but it will 
always point to the OS-approved location with a unique name tacked on. 
On my machine, in OS X, I get:


/private/var/folders/lK/lKqfANrEKa6m7q-jKrtU++TI/TemporaryItems/tmp0

And on WinXP:

C:/Documents and Settings//Local Settings/Temp/tmp2

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revlet default folder

2009-08-01 Thread J. Landman Gay

Kevin Stallibrass wrote:

I have saved one of my rev programs for the web. The program stores some
preferences in a .txt file in the default folder next to the app. When
saving for the web and putting the revlet on my webserver, the app still
works correctly but I've noticed that the default folder now becomes the
desktop storing the .txt file there. 


This seems to be a Windows thing. On Mac OS X the defaultfolder is:

 ~/Library/Application Support/RunRev/revWebPlayer


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revlet default folder

2009-07-30 Thread Martin Blackman
Don't thank me, its not my work..I find the resources at Sons of
Thunder very useful myself
2009/7/31 Kevin Stallibrass :
>
> Thanks a million Martin this was more info than I expected and most welcome.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revlet default folder

2009-07-30 Thread Kevin Stallibrass

Thanks a million Martin this was more info than I expected and most welcome.
I normally create a separate folder for such files but the point is that the
default folder in runrev studio is always the same folder that contains the
app (unless you change it) With rev media 4, building for the web, the
default appears to be the desktop of the machine that downloads & displays
the revlet within a web browser

Also in answer to Ricks' question, sorry but I'm not using an OSX Server,
this is just a standard web service (running on Unix) the revlets are viewed
on a web browser using the rev-web plug in

Regards
Kevin Stallibrass

>Martin Blackman wrote:

>check out this link for info on folder paths
>http://www.sonsothunder.com/devres/revolution/tips/file010.htm

>Even for a desktop app its not normally considered good practice to
>save prefs to the same directory as the app 



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revlet default folder

2009-07-30 Thread Rick Harrison

Hi Martin,

That is quite a list!

Rick


On Jul 30, 2009, at 6:44 AM, Martin Blackman wrote:


check out this link for info on folder paths
http://www.sonsothunder.com/devres/revolution/tips/file010.htm

Even for a desktop app its not normally considered good practice to
save prefs to the same directory as the app


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revlet default folder

2009-07-30 Thread Martin Blackman
check out this link for info on folder paths
http://www.sonsothunder.com/devres/revolution/tips/file010.htm

Even for a desktop app its not normally considered good practice to
save prefs to the same directory as the app


>
> Trouble is, I've no idea of a global path I could use which would work on
> all supported browsers/OS's  - is there one?
>
>
>
> Regards
>
> Kevin Stallibrass
>

>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revlet default folder

2009-07-29 Thread Rick Harrison

Hi Kevin,

Are you using your own Mac OS X server with the revlet?

If so, how did you set it up to work?  Is there any documentation
on how to do that?

Thanks,

Rick

On Jul 29, 2009, at 7:57 PM, Kevin Stallibrass wrote:

I have saved one of my rev programs for the web. The program stores  
some

preferences in a .txt file in the default folder next to the app. When
saving for the web and putting the revlet on my webserver, the app  
still
works correctly but I've noticed that the default folder now becomes  
the
desktop storing the .txt file there. This happens on both  mac with  
safari

and XP with IE (I've not tried any other combinations).

This is great because a standard rev app will still work correctly  
with no
alterations but I feel I'm likely to annoy a lot of users by  
cluttering up
their desktop. I feel that a better place for the default folder is  
the
temporary internet files folder so that when this folder is emptied  
via the

web browser, my files will be removed at the same time.

Trouble is, I've no idea of a global path I could use which would  
work on

all supported browsers/OS's  - is there one?



Regards

Kevin Stallibrass

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


__
Rick Harrison

You can buy my $10 music album "Funny Time Machine" digital CD on the  
iTunes Store Now!


To visit the iTunes Store now to listen to samples of my CD please  
click on the
following link.  (Please note you must have iTunes installed on your  
computer for this link to work.)


http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playListId=213668290


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Revlet default folder

2009-07-29 Thread Kevin Stallibrass
I have saved one of my rev programs for the web. The program stores some
preferences in a .txt file in the default folder next to the app. When
saving for the web and putting the revlet on my webserver, the app still
works correctly but I've noticed that the default folder now becomes the
desktop storing the .txt file there. This happens on both  mac with safari
and XP with IE (I've not tried any other combinations).

This is great because a standard rev app will still work correctly with no
alterations but I feel I'm likely to annoy a lot of users by cluttering up
their desktop. I feel that a better place for the default folder is the
temporary internet files folder so that when this folder is emptied via the
web browser, my files will be removed at the same time.

Trouble is, I've no idea of a global path I could use which would work on
all supported browsers/OS's  - is there one?

 

Regards

Kevin Stallibrass

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution