Example of reading a text file line by line and repeating processing until the last line. #SenseTalk
set MyFile to resourcepath("textfile.txt") repeat with MyLine = each line of file MyFile typetext MyLine, returnKey end repeat