• 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: Yvan KOENIG <email@hidden>
  • Date: Sat, 5 Sep 2009 17:24:32 +0200

Le 5 sept. 2009 à 15:31:28, Doug Tallman a écrit :

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

And what would be the result if the paragraph 1 is:

31/12/1943 Arpajon (Seine et Oise)

on your machine using the mm/dd/yyyy date format ?

Yvan KOENIG (VALLAURIS, France) samedi 5 septembre 2009 17:12:20

 _______________________________________________
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: LuKreme <email@hidden>
References: 
 >Re: date/Snow Leopard changed (From: Doug Tallman <email@hidden>)

  • Prev by Date: Re: 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