Re: Persistance of Properties
Re: Persistance of Properties
- Subject: Re: Persistance of Properties
- From: Irwin Poche <email@hidden>
- Date: Mon, 15 Oct 2001 20:59:24 -0500
Jason,
Thanks for the suggestion - sounds like what I need. I've been trying to
get it to work but to no avail. This script gets an "Can't make some data
into the expected type" on the "store script" line...
tell application "Finder"
set myproperties to {1, 2, 3, 4}
if not (file "foo" of desktop exists) then make new file at desktop with
properties {name:"foo"}
store script myproperties in file "foo" of desktop with replacing
end tell
Doing a bit more research and experimenting I arrive at the following.
While it doesn't fail, it doesn't work either. Both the data and resource
forks of foo are completely empty.
script persistableStuff
property myproperties : {7, 8, 9}
end script
tell application "Finder"
set myproperties to {1, 2, 3, 4, 5, 6, 7}
if not (file "foo" of desktop exists) then make new file at desktop with
properties {name:"foo"}
tell me to store script persistableStuff in file "foo" of desktop with
replacing
end tell
Any idea how to get this sort of thing to work ?
-Irwin