Re: Date weirdness from Finder
Re: Date weirdness from Finder
- Subject: Re: Date weirdness from Finder
- From: Nigel Garvey <email@hidden>
- Date: Sun, 14 Oct 2001 11:02:29 +0100
Irwin Poche wrote on Sat, 13 Oct 2001 21:20:43 -0500:
>
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
Paul's already answered this very well. Just to add that you can restrict
the 'me' idea in the line to just the date evaluation, with either of the
following:
my (date the numeric_date)
(date the numeric_date) of me
This can be useful if you need to perform a real Finder action in the
same line:
tell application "Finder"
set the numeric_date to "01/20/2002"
set the modification date of folder "Fred" to my (date the
numeric_date)
end tell
I've found that "AppleScript's" also works here in place of "my", but I
don't know if this is universally applicable, or even desirable. And if
you're in a silly mood: "me's (date the numeric_date)".
NG