• 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: How to retrieve items from list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to retrieve items from list?


  • Subject: Re: How to retrieve items from list?
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 5 Dec 2000 13:37:59 -0800

On 12/5/00 1:08 PM, Michael Sidoric <email@hidden> wrote

>Assuming I have a list containing say, 15 items:
>
>set itemList to {"one", "two", "three", "four", "five"...} -- and
>so on to "fifteen"
>
>How can I structure a repeat loop that will retrieve, incrementally,
>
>left to right, one item with each repetition and make it the value
>of
>a variable (itemName)?
>
>For instance repeat one would retrieve string "one", second repeat
>would
>retrieve string "two", and so on...

set itemList to {"one", "two", "three", "four", "five"}
repeat with itemName in itemList
display dialog itemName
-- or do something more useful with the data
end repeat

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------


  • Prev by Date: How to retrieve items from list?
  • Next by Date: RE: How to retrieve items from list?
  • Previous by thread: Re: How to retrieve items from list?
  • Next by thread: RE: How to retrieve items from list?
  • Index(es):
    • Date
    • Thread