• 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, 12 Sep 2009 10:11:19 +0200


Le 11 sept. 2009 à 22:47, email@hidden a écrit :

Here's an example of a script that now breaks in SL:

tell application "Finder"
  set myDocName to the name of myDocPath
-->>"Sep-14-Mon TV Grid.indd"
end tell
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 .

I can't check with your string because on my French system your name is rejected.
But here,
samedi 12 septembre TV Grid.indd is rejected
samedi 12 septembre is rejected
samedi 12 septembre 2009 is accepted
samedi 12 septembre 2009 TV Grid.indd is accepted

Yvan KOENIG (VALLAURIS, France) samedi 12 septembre 2009 10:04:57


 _______________________________________________
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: "email@hidden" <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>)

  • Prev by Date: Re: Do Shell Script
  • Next by Date: Re: Do Shell Script
  • Previous by thread: Re: date/Snow Leopard changed
  • Next by thread: Re: date/Snow Leopard changed
  • Index(es):
    • Date
    • Thread