Script Object Property Persistence
Script Object Property Persistence
- Subject: Script Object Property Persistence
- From: "ken " <email@hidden>
- Date: Mon, 23 Sep 2002 10:15:59 -0500
I've found many topics on this subject in the archives, but I have to
admit I don't really understand how to apply the various solutions
to my situation.
What I have is a script called "CatalogAssets" which has the
following in it:
-- *** begin CatalogAssets script sample
property scratchDisk:""
catalogAssestsMain()
-- thisDiskName is a string the user has already defined
set scratchDisk to thisDiskName
end catalogAssestsMain
-- *** end CatalogAssets script sample
Naturally, there is much more to it than this, but this is all that's
relevant. Now, this script is saved on disk and called from another
script in this manner:
set catalogAssets to load script alias (**path to the saved script
object**)
catalogAssestsMain() of catalogAssets
This will correctly load the script and run the handler, but the
property scratchDisk resets to "" every time I run the script. What do
I have to do to get the property scratchDisk to hold it's value
between runs?
Thanks.
Ken Fleisher
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.