• 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: Editing Lists of LISTS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Editing Lists of LISTS (From: "Justin Laden" <email@hidden>)

  • Prev by Date: Re: Should I not have avoided Leopard?
  • Next by Date: Re: Editing Lists of LISTS
  • Previous by thread: Editing Lists of LISTS
  • Next by thread: Re: Editing Lists of LISTS
  • Index(es):
    • Date
    • Thread