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 ?
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