Re: iTunes doesn't handle dates well
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