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

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


  • Follow-Ups:
    • Re: Date weirdness from Finder
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: AppleScripts in ProjectBuilder
  • Next by Date: Re: Date weirdness from Finder
  • Previous by thread: Re: AppleScripts in ProjectBuilder
  • Next by thread: Re: Date weirdness from Finder
  • Index(es):
    • Date
    • Thread