Re: Editing Lists of LISTS
Re: Editing Lists of LISTS
- Subject: Re: Editing Lists of LISTS
- From: Michelle Steiner <email@hidden>
- Date: Fri, 18 Jan 2008 13:43:08 -0700
On Jan 18, 2008, at 1:33 PM, Justin Laden wrote:
Here's my code--I'm just using short lists for testing purposes:
set testList to {{"1"}, {"2"}, {"3"}}
set twoList to {{"purple"}, {"blue"}, {"black"}}
repeat with i from 1 to (twoList)
repeat with j from 1 to (twoList)
set item j of list i of twoList to "green"
end repeat
end repeat
twoList is not a number; it is a list. Your code translates to
repeat with i from 1 to {"purple"}, {"blue"}, {"black"}}
So the error is correct.
Exactly what are you trying to do?
--
A great Idea! That's what we need--a great idea.
--Pesudolous, (A Funny Thing Happened on the way to the forum)
_______________________________________________
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