Re: date/Snow Leopard changed
Re: date/Snow Leopard changed
- Subject: Re: date/Snow Leopard changed
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 03 Sep 2009 13:54:28 -0700
- Thread-topic: date/Snow Leopard changed
It's good and bad. It's better and worse.
Maybe everything would have been better if dates were handled this way from
the start, but they weren't and it doesn't seem that enough was done to
ensure backward compatibility.
Nearly every script I use manipulates dates and they all rely on the
"magic" that appleScript provided.
For example, I get data files which have dates in the first line of text, in
a variety formats, along with some non-date information.
9/14/2009 Sports Highlights
Updates Sept. 14, 2009
So I have a handler that coerces the first line of text to a date, and it
has worked so well that it's now in dozens, if not hundreds, of scripts.
set fileDateStamp to date paragraph 1 of myText
Now I'll have to figure out what date format is being used in every text
file, extract it and reformat that so I can coerce it to an AppleScript
date.
This breaks things that have been working since system 7.
Ed
On 09/03/09 5:49 AM, "Shane Stanley" wrote:
> On 3/9/09 10:42 PM, "Mark J. Reed" <email@hidden> wrote:
>
>> Things are better in SL
>
> Right.
_______________________________________________
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