Re: Reading Lists and Records from Disk Files
Re: Reading Lists and Records from Disk Files
- Subject: Re: Reading Lists and Records from Disk Files
- From: cris <email@hidden>
- Date: Sun, 07 Jan 2001 13:52:32 +0100
on 07.01.2001 4:57 Uhr, Richard 23 at email@hidden wrote:
>
when I want to store state or settings values I'll build up a little
>
script object, specifying it's parent as AppleScript and save it using
>
store script. If there's a particular return format I'm interested in
>
I'll place a return statement at the end of the script object so that
>
run script returns the data I'm retrieving without having to query the
>
object's properties directly. Something like:
(...)
>
The reason for the parent is to store the script object on its own
>
without the
>
extra weight of the containing script which would normally be saved
>
(although
>
invisibly) with the script object.
Hello Richard, in the past i tried to use the same method but it didn't work
correctly. I don't remember the exact errors but one of the problems was
that the prefs file obvious contained the whole parent script (about 250
Kb).
Your example works very well, but it makes no difference if i remove the
line:
property parent : AppleScript
No matter how large i make the parent script, the resulting prefs file has
always the same size, so it seems the parent is never saved in your
example!?
Greetings
cris