Date weirdness from Finder
Date weirdness from Finder
- Subject: Date weirdness from Finder
- From: Irwin Poche <email@hidden>
- Date: Sat, 13 Oct 2001 21:20:43 -0500
Can anyone tell me why these two lines of code, taken straight out of the
AppleScript Guidebook, works only when they're -NOT- enclosed in a "Tell
Finder" block ?
set the numeric_date to "01/20/2002"
set the target_date to date the numeric_date
When in a Finder tell block, the second line gets the error "Finder got an
error: Can't get Date 01/20/2002."
If the script is changed to this, then it works correctly.
tell application "Finder"
set the numeric_date to "01/20/2002"
tell me to set the target_date to date the numeric_date
end tell