Re: How can I add items to user defaults.
Re: How can I add items to user defaults.
- Subject: Re: How can I add items to user defaults.
- From: Brian Christmas <email@hidden>
- Date: Wed, 06 May 2015 10:58:38 +1000
Thanks Shane
Applescript dates duly altered to NS dates.
The defaultsTwo was a desperate attempt to try and save the dates.
Regards
Santa
On 5 May 2015, at 9:32 pm, Shane Stanley <email@hidden> wrote:
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
_______________________________________________
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