The latest AS date and AS Editor bugs
The latest AS date and AS Editor bugs
- Subject: The latest AS date and AS Editor bugs
- From: Nigel Garvey <email@hidden>
- Date: Wed, 22 May 2013 15:37:43 +0100
Hi all.
Just a heads-up as I haven't seen these mentioned elsewhere.
I upgraded my MacBook Pro from Snow Leopard to Mountain Lion a week or
two ago and it seems that AppleScript dates still haven't returned to
the golden age of Tiger, when they apparently had no bugs at all.
The Leopard/Snow Leopard "Julian date string" bugs have been fixed, but
there's now a 75-second discrepancy between date texts and other date
properties which affects all dates up to and including 1 December 1847
00:01:14. eg.:
-- (Rearrange this specifier to compile on your own machine.)
tell date "Thursday 31 December 1846 23:59:59" to ¬
return its {weekday, day, month, year, hours, minutes, seconds, date string}
--> {Friday, 1, January, 1847, 0, 1, 14, "Thursday 31 December 1846"}
In a separate development, all dates from 1 January 3514 00:00:00 on,
when compiled or derived from specifiers, are now transposed to the 20th
or 21st centuries:
tell date "1/1/3514" to ¬
return its {weekday, day, month, year, hours, minutes, seconds, date string}
--> {Wednesday, 1, January, 2014, 0, 0, 0, "Wednesday 1 January 2014"}
If the last two digits of the specified year are in the range 00-49, the
first two digits of the returned year are 20, otherwise they're 19.
However, dates in this last 72% of the AppleScript date range (if it's
still officially the years 1000 to 9999) can successfully be derived by
addition or property setting from dates in the range 1 December 1847
00:01:15 to 31 December 3513 23:59:59.
AppleScript Editor's ability to let you accidentally save uncompiled
changes and send useless scripts to people with earlier systems has been
mentioned before. It also turns out to be impossible to compile a script
in a new document which has been created and named by a script. Or
rather, the text formats as if compiled, but then there are a couple of
stupid dialogs about duplicates and the file not being found, after
which the text unformats. :\
NG
_______________________________________________
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