Re: revisiting the prefs file issue
Re: revisiting the prefs file issue
- Subject: Re: revisiting the prefs file issue
- From: Emmanuel <email@hidden>
- Date: Mon, 30 Sep 2002 15:26:16 +0200
At 10:51 PM -0500 29/09/02, garrett wrote:
I scoured the archives here and I couldn't find a solution (except for
extreme tangents on resource forks and data forks):
OS X 10.2.1
NOT using AS Studio
I would like to be able to take some lists and save them to a pref file - a
text based file that I can save in my prefs folder.
I think that the "write/read" commands of the Standard Additions are
now able of safely storing/retrieving lists as well as records
into/out of files.
To make it a "pref" file, you could store the file in the user's
Application Support folder.
But, this solution does not really comply with your request of a
"text based file".
A possible solution would be to store the list as a plist. A plist is
a simple XML implementation, so it's rather readable as a text, and
it's unix-versal (provided you supply the "PropertyList.dtd"
definition file). Furthermore you've got Apple's Property List Editor
for free as an editor to edit the prefs.
This may be a solution only if the list includes only the following
types of data:
integer, real, string, date, data, boolean, and lists and records
containing such.
(For instance, you won't store an alias in a plist under some
readable form. The "data" format is unreadable hexa).
We have a converter (running under Smile) from list or record to
plist and back. Just ask me privately for a copy.
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.