Re: date/Snow Leopard changed
Re: date/Snow Leopard changed
- Subject: Re: date/Snow Leopard changed
- From: Loren Ryter <email@hidden>
- Date: Fri, 04 Sep 2009 20:17:05 -0400
- Thread-topic: date/Snow Leopard changed
My reply to this got sent too early (due to entourage bug with paste
yuck)...
What I was saying was:
I totally agree! There should be away to plug into the old "date" handling
method. For many purposes that is exactly what is wanted.
I have a date picker object which accepts dropped text. The automagically
processed date was sometimes not right but it was usually pretty darn close.
Close enough, at least, to have something for the user to edit.
Now I can't even imagine what sort of text processing would have to be done
to get it to work again. In fact, it is probably all that text processing
that used to be handled by the "date" function under-the-hood.
Any parsing routine I wrote myself would be no better than the old method.
I hope Apple brings this back in some other way.
On 9/3/09 4:54 PM, "Stockly, Ed" <email@hidden> wrote:
> 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
_______________________________________________
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