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

Re: Subject: clear set property on each run


  • Subject: Re: Subject: clear set property on each run
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 25 Feb 2015 10:39:08 +1100

On 25 Feb 2015, at 9:59 am, Stockly, Ed <email@hidden> wrote:
>
> The whole scheme of having properties and globals maintain persistent
> values has been criticized before, and writing back to a script app has
> also raised eyebrows, but now I'm wondering if it's going to become a real
> issue one day?

I'm surprised it hasn't already, at least the writing to the script part. It doesn't/can't happen with code-signed scripts, or (practically speaking) with GUI scripts in Yosemite.

But there needs to be some relatively simple method of persistence. The preferences .plist file looks the obvious choice, but there are a couple of problems: property lists only store certain types of value, so some fancy conversions to-and-fro would be needed, and there would be difficulties in script editors. (You can use user defaults to do this in an ASObjC script now, but when you run such a script in a script editor, it writes to the editor's .plist file. Less than ideal.)

And then there's the issue of scripts that aren't apps, and how they would fare.

--
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: 
 >Re: Subject: clear set property on each run (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Subject: clear set property on each run
  • Next by Date: Recurring Reminders/Calendar Events?
  • Previous by thread: Re: Subject: clear set property on each run
  • Next by thread: Re: Subject: clear set property on each run
  • Index(es):
    • Date
    • Thread