• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Script Object Property Persistence
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Script Object Property Persistence
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: capturing e-mail text strings to http posting
  • Next by Date: Disk Copy Logical Block Size
  • Previous by thread: RE: capturing e-mail text strings to http posting
  • Next by thread: Re: Script Object Property Persistence
  • Index(es):
    • Date
    • Thread