• 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: How can I add items to user defaults.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I add items to user defaults.


  • Subject: Re: How can I add items to user defaults.
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 05 May 2015 21:32:03 +1000

On 5 May 2015, at 8:51 pm, Brian Christmas <email@hidden> wrote:
>
> How can I add objects (a date) to  the standard user defaults please?

The short answer is that you can't: you can only add objects of the classes supported by property lists, and that doesn't include AppleScript dates.

But I'm puzzled by your defaultsTwo. There can only ever be one instance of user defaults, which you already have in your defaults variable, so I can't see the what you're trying to achieve with defaultsTwo.

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


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: How can I add items to user defaults.
      • From: Brian Christmas <email@hidden>
References: 
 >How can I add items to user defaults. (From: Brian Christmas <email@hidden>)

  • Prev by Date: How can I add items to user defaults.
  • Next by Date: Re: How can I add items to user defaults.
  • Previous by thread: How can I add items to user defaults.
  • Next by thread: Re: How can I add items to user defaults.
  • Index(es):
    • Date
    • Thread