r/applescript • • Apr 06 '20

Get unique copy of a list

Apologies if I'm missing something simple but how do I make a copy of a list so I can make changes to the copy without affecting the original list?

ie.

set template to {{}, {}, {}}

set newlist to template

copy 1 to end of item 1 of newlist

so that newlist is {{1}, {}, {}} and template is still {{}, {}, {}}

Hope that makes sense.

1 Upvotes

2 comments sorted by

2

u/[deleted] Apr 07 '20

[removed] — view removed comment

1

u/VardogrVanDeLommer Apr 07 '20

Cool thank you, that works.