Re: AppleScript bug/change/feature in iTunes 7.7.1?
Re: AppleScript bug/change/feature in iTunes 7.7.1?
- Subject: Re: AppleScript bug/change/feature in iTunes 7.7.1?
- From: Doug Adams <email@hidden>
- Date: Mon, 04 Aug 2008 12:44:05 -0400
On Aug 4, 2008, at 10:45 AM, Mark J. Reed wrote:
So which are you using in your iTunes example? It seems like if you
want a bare value, you should say "first track whose id is blah" or
"some track whose id is blah". If you're just saying "track whose id
is blah" with no specifier, then I don't see how AS can do anything
but return a list.
Exactly. In my original post I used "some". Therefore, I should expect
a bare value. iTunes 7.7.1 returns a list. This is not the prescribed
behavior, nor the way it was previous to iTunes 7.7.1.
I believe Matt's point was that the particular whose clause you use,
and the actual data you're querying, can't change the type of the
return value.
I understand Matt's point about consistency and do not disagree with
it; I was pointing out that the prescribed rule is that the type of
specifier used in the clause *is supposed to* dictate the type of the
return value. This is mentioned in the Tech Note whose link I posted
previously.
Cheers,
Doug
--
Doug's AppleScripts for iTunes - http://dougscripts.com
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden