set AppleScript's text item delimiters to ", " set a to {} repeat with n from 1 to 10 set a to a & n end repeat a as text