Does anyone know a sneaky way around this problem, or will I be
required to create a. plist file for my rather complicated set of
properties?
Scroll down a few posts for the relevant discussion.
Gathering I must have missed something, I read that posting again. I
realize after digging deeper that the scripter used Keychain scripting
to resolve his persistent property problem. I'm guessing that is what
you saw as the relevant part of the posting. While that approach was
clearly an ideal solution in that case, I don't think it is suited to
my problem.
However, I did go on to read a comprehensive and very well written
tutorial on the Applescript's Read and Write commands at MacScripter:
http://macscripter.net/viewtopic.php?id=24745
Joy, it seems that Write can store a complicated, nested AppleScript
list full of different data types in a file, and the Read command can
read the list from the file without difficulty in its full AppleScript
glory. So, I can pack my property values willy-nilly into a list,
store the list on a file, and, on the next script run, read the list
to repopulate my properties.
On Feb 2, 4:36 pm, "Jon Stovell (a.k.a. Sesquipedalian)"
<jonstov...@gmail.com> wrote:
> Searching for "applescript properties" discovers this:
>
> http://groups.google.com/group/blacktree-quicksilver/browse_thread/th...
However, rather than the read and write commands as described in the
(old) post that you linked to, I highly recommend creating a plist
file for storing your data. In Leopard and above, creating and
altering plists with AppleScript is trivial, and it will be much
faster than that method. See here: http://www.macosxautomation.com/applescript/features/propertylists.html