• 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 weirdness from Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Date weirdness from Finder
      • From: John W Baxter <email@hidden>
  • Prev by Date: Re: Need Help with Script
  • Next by Date: Local Communication Navigator-Applescript
  • Previous by thread: Re: Date weirdness from Finder
  • Next by thread: Re: Date weirdness from Finder
  • Index(es):
    • Date
    • Thread