I want to process a text file that reads lines delimited by a return character.The problem is that the applescript is not recognising the return character as a delimiter.
–The script allows us to choose the tab-delimited file, opens it for access
–and read the data from the file into a variable using a return as the delimiter.
–This gives us a list in which each item is one line, or record, from the file.
set theFile to choose file with prompt “Choose a tab-delimited text file”
open for access theFile
set theData to read theFile using delimiter (return)
close access theFile
display dialog (count of theData)
The result of the dialog is always 1.
help is greatly appreciated.
Chris.