Saving information in Revolution
Judy Perry
jperryl at ecs.fullerton.edu
Sun May 28 01:44:49 EDT 2006
Mark:
Kindest thanks for your reference!
Alvaro:
You may want to visit a scripting conferences stack by Ken Ray at
http://downloads.runrev.com/section/scriptingconferences.php
See also the "specialFolderPath" function via the Rev docs.
I have a PDF on this as well:
http://jperryl.ecs.fullerton.edu/FileIOHandout.pdf
As Mark says, Hypercard's ability to save itself (that is, be
self-modifying) is not supported in modern executables. But you can save
settings to a text file on the stack's close and then read them back in
upon a stack (that is, a file's) opening to set custom settings as far as
I understand things.
Everyone else:
Should you still be reading, if you find anything gargantuanly stupid at
http://jperryl.ecs.fullerton.edu/FileIOHandout.pdf , please do let me
know!
@;-)
Judy
On Sun, 28 May 2006, Mark Schonewille wrote:
> Alvaro,
>
> Do you mean you created a standalone but can't save data in it? That
> would be normal, since modifications in standalones cannot be saved.
> Instead, you would write the data in a field to a file, for example
> using syntax like
>
> put fld "My Info" into url "file:~/Desktop/Test File.txt"
>
> Note that the file path will be different if you are on Windows. Next
> time you open the standalone, read the data using the following syntax.
>
> put url file:~/Desktop/Test File.txt" into fld "My Info".
>
> I hope this helps you to get going. Don't forget to read the built-in
> docs.
More information about the use-livecode
mailing list