Re: Propeties don't persist from run to run in applet. What are my alternatives?
Re: Propeties don't persist from run to run in applet. What are my alternatives?
- Subject: Re: Propeties don't persist from run to run in applet. What are my alternatives?
- From: Shane Stanley <email@hidden>
- Date: Sat, 17 Oct 2015 14:29:29 +1100
On 17 Oct 2015, at 11:05 AM, Shane Stanley <email@hidden> wrote:
>
> AppleScript preferences are saved by writing the modified script file to disk whenever a property changes.
And it's probably worth pointing out that the values in top-level variables are saved, too.
Save this as an applet:
set x to choose file
set y to read x
Check it's size, run it and choose a big file, and check its size again. Whoever has access to your copy of the app also has access to the contents of the file you last dropped on it.
So property persistence as implemented in AppleScript comes with some pretty heavy security baggage.
--
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