• 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
How to step through two lists at the same time?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to step through two lists at the same time?


  • Subject: How to step through two lists at the same time?
  • From: "Patrik B." <email@hidden>
  • Date: Sun, 19 Aug 2007 14:54:44 -0700

How do I do a repeat through two lists at the same time:

Example I have two lists

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

set list2 to {"1a","2a","3a","4a"}

repeat with i in list1
repeat with j in list2
-- do action with 1 and 1a
-- do action with 2 and 2a etc.-- the way the repeat is worded now is it will
give me 1-6 with 1a and then 2a but I want to progress through both lists at
the same time.
end
end

repeat with i in list and j in list2 -- does not work


Patrik
 _______________________________________________
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: How to step through two lists at the same time?
      • From: "Mark J. Reed" <email@hidden>
    • Re: How to step through two lists at the same time?
      • From: Kurt Klamp <email@hidden>
  • Prev by Date: Re: Q: Using (sound) volume settings
  • Next by Date: Re: How to step through two lists at the same time?
  • Previous by thread: Re: Q: Using (sound) volume settings
  • Next by thread: Re: How to step through two lists at the same time?
  • Index(es):
    • Date
    • Thread