I have a script that I want to write. I want from a master script to call a helper script and pass in an array of numbers. In the helper script I want to process the array of numbers, and type DownArrow the number of times represented by the value in the array. For example:
put (1,3,4) into myarray
type DownArrow, DownArrow, DownArrow
type DownArrow, DownArrow, DownArrow, DownArrow
I cant seem to get the syntax just right:
repeat with each column in columns repeat until column is 0 typetext DownArrow subtract 1 from column end repeat end repeat
I got an error when I try and subtract from my counter, saying the value is not a number.