lists and repeat loops

i am currently trying to get the following lines of code to work… the idea is that i have one list that holds information that i need filled… and the second list holds the information once it has been filled… and i am trying to do it with the smallest amount of code… as usual

this is what i have so far:


set myList1 to {"nickname", "first name", "last name", "email"}
repeat with list_counter from 1 to 4
	set myList2 to {""}
	set temp_data to display dialog item list_counter of myList1 default answer ""
	set item list_counter of myList2 to text result of temp_data
end repeat

How about this:


set newList to {}
set myList1 to {"nickname", "first name", "last name", "email"}
repeat with list_counter from 1 to 4
	set newList's end to text returned of (display dialog item list_counter of myList1 default answer "")
end repeat

Or if you like really short, but slower:


set {newList, myList1} to {{}, {"nickname", "first name", "last name", "email"}}
repeat with list_counter from 1 to 4
	set newList's end to text returned of (display dialog item list_counter of myList1 default answer "")
end repeat

thanks adam as usual u guys are my saviours :wink: