• 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: AppleScript bug/change/feature in iTunes 7.7.1?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript bug/change/feature in iTunes 7.7.1?


  • Subject: Re: AppleScript bug/change/feature in iTunes 7.7.1?
  • From: deivy petrescu <email@hidden>
  • Date: Mon, 4 Aug 2008 10:40:49 -0400


On Aug 4, 2008, at 9:54, Mark J. Reed wrote:

On Sat, Aug 2, 2008 at 12:59 PM, Doug Adams <email@hidden> wrote:
regarding whose clauses "singular specifiers return bare values, range
and every specifiers return lists."

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.

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.  There has to be a syntactic clue that indicates whether
it should return a list or a bare item.


-- Mark J. Reed <email@hidden>

Sorry Mark, Doug is absolutely right.
It is a bug.
"some item of list ..." is supposed to return "1 item" and not a list with one item.
The only problem is on his reply Doug used "every" with "first", "some", "last" and "middle".
"every" is supposed to return a list, all the others return 1 item "scalar", if you will. Never a list.


As for Matt's point it could be a good idea, but it should not be necessary.

Deivy

_______________________________________________
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
  • Follow-Ups:
    • Re: AppleScript bug/change/feature in iTunes 7.7.1?
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: AppleScript bug/change/feature in iTunes 7.7.1? (From: Matt Neuburg <email@hidden>)
 >Re: AppleScript bug/change/feature in iTunes 7.7.1? (From: Doug Adams <email@hidden>)
 >Re: AppleScript bug/change/feature in iTunes 7.7.1? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Alias Files
  • Next by Date: Re: ICON changes
  • Previous by thread: Re: AppleScript bug/change/feature in iTunes 7.7.1?
  • Next by thread: Re: AppleScript bug/change/feature in iTunes 7.7.1?
  • Index(es):
    • Date
    • Thread