add to list applescript code example
Example: add to array applescript
set theList to {"cyan", "magenta", "yellow"}
set newColor to "black"
set end of theList to newColor
theList
-- {"cyan", "magenta", "yellow", "black"}
set theList to {"cyan", "magenta", "yellow"}
set newColor to "black"
set end of theList to newColor
theList
-- {"cyan", "magenta", "yellow", "black"}