What causes scripts not remembering properties?
What causes scripts not remembering properties?
- Subject: What causes scripts not remembering properties?
- From: Joe Kelly <email@hidden>
- Date: Tue, 4 Dec 2001 17:18:45 -0800
I have a compiled script with one property, a string that maintains a path
to some file object:
property pFilePath : ""
on run
if (pFilePath is "")
set pFilePath to (choose folder with prompt "Where's the file?") as
string
end
... do something with pFilePath
end
Every time I run this script (or load it and call it from within another
script), pFilePath is always set to "" regardless of what it was set to the
last time the script ran. This is frustrating and weird, considering I have
about 10 other scripts that DO remember their properties, and one or two
little errant scripts that don't.
joe