Re: clear set property on each run
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