Re: NSDate
Re: NSDate
- Subject: Re: NSDate
- From: Philip Aker <email@hidden>
- Date: Tue, 31 Aug 2010 02:25:54 -0700
On 2010-08-31, at 01:05:02, Chris Page wrote:
> [This older message caught my eye. I haven't looked to see if there was further discussion about this more recently.]
>
> On Feb 2, 2010, at 2:36 AM, Shane Stanley wrote:
>
>> But this fails:
>>
>> set x to "Monday, January 1, 2001 12:00:00 AM"
>> date x
>
>
> On Feb 4, 2010, at 8:18 PM, Shane Stanley wrote:
>
>> On 5/2/10 2:57 PM, "Chris Page" <email@hidden> wrote:
>>
>>> Works for me in Script Editor (Mac OS X 10.6.2):
>>
>> Yes, it's fine in Script Editor and in applets, but it fails in an ASObC project. Coercions seem a bit pickier in ASObjC.
>
> Note: The AppleScript part of AppleScript/Objective-C is, to the greatest extent possible, normal AppleScript. ASOC is primarily a bridge between the AppleScript and Objective-C runtimes, enabling you to send messages between them.
>
> I suspect the issue here is that Xcode still has AppleScript Studio terminology in its dictionary, and that affects what happens when you compile/decompile scripts.
% set
…
LANG=en_US.UTF-8
…
I customize my date format in System Preferences to look like ISO. There are problems in AppleScript if I don't use that format to concoct a date. i.e. I'm pretty much limited to:
set dstr to "2010-08-31"
date dstr
But that doesn't bug me because there's a lot of benefit to using an international standard for a date format.
What about making «class isot» into the standard date format for AppleScript?
I would guess that quirks like the above would gradually disappear if that was done.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
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
References: | |
| >Re: NSDate (From: Chris Page <email@hidden>) |