coerce list to different format. help

Here’s an easy one I hope

I need this list

{{"2305981"}, {"2298213"}, {"2305154"}, {"2305994"}, {"2317594"}, {"2304331"}, {"2304344"}}

to change to this

{“2305981”, “2298213”, “2305154”, “2305994”, “2317594”, “2304331”, “2304344”}

Try this.

set list_of_lists to {{"2305981"}, {"2298213"}, {"2305154"}, {"2305994"}, {"2317594"}, {"2304331"}, {"2304344"}}

set single_list to {}
repeat with i from 1 to count of list_of_lists
	set this_item to item i of list_of_lists
	set end of single_list to item 1 of this_item
end repeat

Cheers,

Craig

Hi,

this is probably the fastest way


set theList to {{"2305981"}, {"2298213"}, {"2305154"}, {"2305994"}, {"2317594"}, {"2304331"}, {"2304344"}}
set {TID, text item delimiters} to {text item delimiters, return}
set theList to theList as text
set text item delimiters to TID
set theList to paragraphs of theList

you all are the best!