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

Re: iTunes doesn't handle dates well


  • Subject: Re: iTunes doesn't handle dates well
  • From: David Richmond <email@hidden>
  • Date: Wed, 13 Dec 2006 06:49:23 -0800

Thanks, that worked! That thought had occurred to me, but I balked at the idea of defining variables inside a tell statement and using them outside the "tell". But I guess scope doesn't work that way in Applescript.

d


On Dec 13, 2006, at 5:08 AM, Emmanuel wrote:

At 9:33 PM -0800 12/12/06, David Richmond wrote:
Here's the script:
---
tell application "iTunes"

set t to current date
log year of t

end tell
[...]
Why does iTunes choke on the year of a date? Is this just a bug?

Probably something like a terminology conflict, and a conflict which recalls the advice to restrict to the strict minimum the number of lines inside a tell statement. For those two instructions (current date, then year of ...) you don't need to be in a tell iTunes wrapper at all.



_______________________________________________ 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: "Mark J. Reed" <email@hidden>
References: 
 >iTunes doesn't handle dates well (From: David Richmond <email@hidden>)
 >Re: iTunes doesn't handle dates well (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Problem with AppleScript
  • Next by Date: RE: Photoshop Image Size
  • Previous by thread: Re: iTunes doesn't handle dates well
  • Next by thread: Re: iTunes doesn't handle dates well
  • Index(es):
    • Date
    • Thread