applescript - if "a File" then repeat with a from 1 to 32 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"}