ScriptBase {was Re: Persistance of Properties}
ScriptBase {was Re: Persistance of Properties}
- Subject: ScriptBase {was Re: Persistance of Properties}
- From: vectormation <email@hidden>
- Date: Mon, 15 Oct 2001 15:01:39 -0400
How much data can ScriptBase handle? I'm working on an app that really
needs to create, manage, and store a lot of object data. I was planning
on using load/store on script objects, but haven't really gotten to that
point yet...
would ScriptBase be better that using FaceSpan storage items? (I already
have facespan, but this job could be worth buying scriptbase)
Additionally :
What if any, are the reasons for not using load/store on script objects?
~Phi
>
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 bigOldListOfData:{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
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users