• 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: Getting elements of a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting elements of a list


  • Subject: Re: Getting elements of a list
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 16 Apr 2008 12:30:47 -0700

On Apr 16, 2008, at 11:55 AM, Mark J. Reed wrote:

Say I have a list of lists:

set myList to {{1,2},{3,4},{5,6}}

is there any way, without a repeat loop, to pluck a specific item of
each of the sublists?  something like

first item of each item of myList

doesn't work...

The proper syntax would be "first item of *every* item of myList". Unfortunately, it still won't work -- it's related to the fact that lists don't support "whose" expressions. You have to use a loop.



--Chris Nebel AppleScript Engineering

_______________________________________________
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
References: 
 >Getting elements of a list (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Getting elements of a list
  • Next by Date: Re: Getting elements of a list
  • Previous by thread: Re: Getting elements of a list
  • Next by thread: Re: Getting elements of a list
  • Index(es):
    • Date
    • Thread