I have never written anything in AppleScript but I recently got a MBP and started playing around with it just to tweak the touchbar. In a downloaded preset I saw this line:
set theArray to every text item of theString
I assume that this line appends the entire string (every single character element) to the array.
How I can choose to append only a fixed n number of characters from that string/item, say maybe the first 10 characters of that string?