• 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
Re: clear set property on each run
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clear set property on each run


  • Subject: Re: clear set property on each run
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 24 Feb 2015 21:39:46 +1100

On 24 Feb 2015, at 9:22 pm, Kris Decker <email@hidden> wrote:
>
> If I have set a property (property theList : {}) before the script runs, how can I clear the property of it’s value (received from running the script) so the value returns to nothing for the next run of the script. Basically, I don’t want the data to persist.

You can set it to {} before the script finishes; if it's an applet, you could probably use a quit handler. Or you can build a deployment version that doesn't have the permission to save properties, using something like: chmod a-w <path/to/applet>/Contents/Resources/Scripts/main.scpt. Code-signing also does the latter for you.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >clear set property on each run (From: Kris Decker <email@hidden>)

  • Prev by Date: clear set property on each run
  • Next by Date: Re: Subject: clear set property on each run
  • Previous by thread: clear set property on each run
  • Next by thread: Re: Subject: clear set property on each run
  • Index(es):
    • Date
    • Thread