• 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
iTunes doesn't handle dates well
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iTunes doesn't handle dates well


  • Subject: iTunes doesn't handle dates well
  • From: David Richmond <email@hidden>
  • Date: Tue, 12 Dec 2006 21:33:08 -0800

Here's the script:
---
tell application "iTunes"

set t to current date
log year of t

end tell

set t to current date
log year of t
---

and here's the log output:
---
tell application "iTunes"
current date
date "Tuesday, December 12, 2006 7:16:14 PM"
(*year*)
end tell
tell current application
current date
date "Tuesday, December 12, 2006 7:16:14 PM"
(*2006*)
end tell
---

the line (*year*) should read (*2006*)

when I try telling a different app, like Safari, it has no problem

when try extracting a different component of the date, like month, it has no problem

Why does iTunes choke on the year of a date? Is this just a bug?

dave r

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: iTunes doesn't handle dates well
      • From: Emmanuel <email@hidden>
    • Re: iTunes doesn't handle dates well
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Problem with AppleScript
  • Next by Date: CsvToListOfText
  • Previous by thread: Re: rm does not always remove immediately
  • Next by thread: Re: iTunes doesn't handle dates well
  • Index(es):
    • Date
    • Thread