Re: date/Snow Leopard changed
Re: date/Snow Leopard changed
- Subject: Re: date/Snow Leopard changed
- From: Doug Tallman <email@hidden>
- Date: Sat, 5 Sep 2009 09:31:28 -0400
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
Bob, It appears that this works: set fileDateStamp to date (paragraph 1 of myText)
It'll be a pain to reformat all those scripts, but a lot simpler than a lot of text processing to figure out the date format.
doug
|
_______________________________________________
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