• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: date/Snow Leopard changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: date/Snow Leopard changed
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Missing size values in SL Finder
  • Next by Date: Re: Missing size values in SL Finder
  • Previous by thread: Re: date/Snow Leopard changed
  • Next by thread: Re: date/Snow Leopard changed
  • Index(es):
    • Date
    • Thread