Re: Persistance of Properties
Re: Persistance of Properties
- Subject: Re: Persistance of Properties
- From: Paul Skinner <email@hidden>
- Date: Mon, 15 Oct 2001 14:28:29 -0400
on 10/15/01 12:36 PM, Irwin Poche wrote:
>
One of the obstacles I've encountered developing scripts is that all data
>
stored in properties is lost as changes are made to the script.
>
>
Is there a relatively easy way to specify that the properties are to be
>
saved in a file other than the script itself ? One way would be to loop
>
through the properties themselves, but I'm hoping for something simpler.
>
>
-Irwin
A hard coded loop before quitting would suffice, but if you want the
simplest way, and don't mind spending a little money check out ScriptBase
from main Event. It is a system wide database that you put into your
scripting additions folder and can address from any script in any editor.
So instead of ...
property bigOldListOf
Data:{a big old list of stuff...}
you can do...
set bigOldListOfData to object "bigOldListOfData" in drawer
"propertyStorage"
and later, before you quit...
set object "bigOldListOfData" in drawer "propertyStorage" to
bigOldListOfData
--
Paul Skinner