I typed these lines into Script editor:
date"just a test"
date “only a test”
date “april fool”
date “a test”
and compiled the script, which became:
date “Thursday, April 1, 2004 12:00:00 AM”
date “Thursday, April 1, 2004 12:00:00 AM”
date “Thursday, April 1, 2004 12:00:00 AM”
date “Thursday, April 1, 2004 12:00:00 AM”
This all started when I included in one of my scripts a dialog box where the user is supposed to type in a date. I want to check the text returned to make sure it is really a date, so I try to coerce it. Which works until you type in “just a test” or one of these other strings.
Is this a bug throughout the Panther world? Or something wacky on my machine?