re: Storing script objects
re: Storing script objects
- Subject: re: Storing script objects
- From: "Jason W. Bruce" <email@hidden>
- Date: Thu, 11 Jan 2001 11:15:18 +0000
John,
Your script works fine for me. When you are trying to retrieve property "y"
from "Script File," are you using load script in your main script to check
y's value? The textual representation of "Script File" will not reflect the
actual values of its properties. Also, are you asking for y of x of "Script
File"? Also, if you recompile "Script File" at any time -- by editing it in
your script editor -- all properties will revert to their original values.
This is because when you recompile the script, you are overwriting the old
file with the new one you've just edited. HTH.
Jason Bruce
>
Date: Thu, 11 Jan 2001 06:50:13 -0400
>
To: email@hidden
>
From: John MacDonald <email@hidden>
>
Subject: Storing script objects
>
>
Hi!
>
>
I want to build some script objects based on FileMaker data and then
>
use Store Script to write a file that can be used by other scripts.
>
>
When I change properties of the script they don't get written. For example:
>
--------
>
script x
>
property y : {}
>
end script
>
>
set x's y to {1, 2, 3}
>
store script x in ((path to desktop) as text) & "script file" with replacing
>
------
>
>
When I read the file, property y is set to the original {}.
>
>
Any ideas?
>
>
-John