Rights to write in Programs folder

David Glasgow david at dvglasgow.wanadoo.co.uk
Thu Dec 22 11:01:44 EST 2005


I was just reading Sarah Reichelt's tutorial on saving data.

http://www.revjournal.com/tutorials/saving_data_in_revolution.html

I have always saved data to stack in a subfolder of the standalone 
containing folder.  Of this she says:

"this may cause problems if the application is stored in the 
Applications or Program Files folder and the user does not have write 
access to that folder."

She is of course quite correct.  I have had some problems with this, 
and the error reporting by Rev and customers  seemed a bit hit and 
miss.  Can anyone tell me what Rev and Windows does if an attempt is 
made to write to a location for which the user does not have the 
necessary privileges.  I have had described to me three different 
things:

1/ An endlessly busy cursor.
2/ Absolutely no indication that anything has gone wrong (but no data 
saved)
3/  An error report that the path was not "available"  (?)

Is this a case for using 'try throw catch' at startup to pre-empt 
problems later?  If so, what might the script look like?

I would prefer to stick to the subfolder data saving method - unless 
anyone can persuade me that there is a much better way to go.

Best Wishes,

David Glasgow

http://www.i-psych.co.uk


More information about the use-livecode mailing list