• 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: Propeties don't persist from run to run in applet. What are my alternatives?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Propeties don't persist from run to run in applet. What are my alternatives? (From: edmund ronald <email@hidden>)
 >Re: Propeties don't persist from run to run in applet. What are my alternatives? (From: "S. J. Cunningham" <email@hidden>)
 >Re: Propeties don't persist from run to run in applet. What are my alternatives? (From: edmund ronald <email@hidden>)
 >Re: Propeties don't persist from run to run in applet. What are my alternatives? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Propeties don't persist from run to run in applet. What are my alternatives?
  • Next by Date: Re: Propeties don't persist from run to run in applet. What are my alternatives?
  • Previous by thread: Re: Propeties don't persist from run to run in applet. What are my alternatives?
  • Next by thread: Re: Propeties don't persist from run to run in applet. What are my alternatives?
  • Index(es):
    • Date
    • Thread