How to step through two lists at the same time?
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