• 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: Sun, 13 Sep 2009 09:19:23 +0200


Le 13 sept. 2009 à 07:05, email@hidden a écrit :


set pdfFileDate to date myDocName
-->>invalid date and time date Sep-14-Mon TV Grid .indd of «script».

Worked in Leopard, now breaks.

Isn't it normal ?

The release notes states:

Previous versions
would accept anything that looked even vaguely like a date: the string could omit components, reorder
others, add or omit punctuation, and so on. In AppleScript 2.1, the string must exactly match one of the
system date formats (full, long, medium, or short; see System Preferences > International > Formats for
examples), including all punctuation and whitespace.

If I understand well, your file name doesn't match this requirement.
The year is missing .


Well, yes, but as Chris Nebel said:

It's actually more flexible than the release notes say (they were accurate at the time).  I need to confirm this with the ICU people, but it looks like it requires that the components all be present in the right order, but the punctuation and white space between them doesn't matter.  For example, on my US system, "9/4/2009", "9-4-2009", and "9 4 2009" all evaluate to September 4, 2009.


The Chris's response is about separators, not about the fact that every components are required.

Your file name is:
"Sep-14-Mon TV Grid.indd"

There is no year value in it and this is why the script fails.

Try with "Sep-14-Mon 2009 TV Grid.indd"

Yvan KOENIG (VALLAURIS, France) dimanche 13 septembre 2009 09:19:09


 _______________________________________________
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

References: 
 >Re: date/Snow Leopard changed (From: "Nigel Garvey" <email@hidden>)
 >Re: date/Snow Leopard changed (From: "Mark J. Reed" <email@hidden>)
 >Re: date/Snow Leopard changed (From: "Nigel Garvey" <email@hidden>)
 >Re: date/Snow Leopard changed (From: "Mark J. Reed" <email@hidden>)
 >Re: date/Snow Leopard changed (From: "email@hidden" <email@hidden>)
 >Re: date/Snow Leopard changed (From: Yvan KOENIG <email@hidden>)
 >Re: date/Snow Leopard changed (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Variable keeps changing with date manipulation in Snow Leopard
  • Next by Date: Re: Variable keeps changing with date manipulation in Snow Leopard
  • Previous by thread: Re: date/Snow Leopard changed
  • Next by thread: Problem getting table text off PowerPoint slides
  • Index(es):
    • Date
    • Thread