Re: Storing script objects
Re: Storing script objects
- Subject: Re: Storing script objects
- From: Emmanuel <email@hidden>
- Date: Thu, 11 Jan 2001 19:13:38 +0100
At 11:50 +0100 11/01/01, John MacDonald wrote:
>
--------
>
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 {}.
You mean, when you open the file and read the source. But do read the
script out of the file, and see, it works:
----------------------
set x to load script ((path to desktop) as text) & "script file"
y of x
-- {1, 2, 3}
----------------------
HTH
Emmanuel