So I have this script that I am just trying to read the contents into a list. However it keeps blowing up with: Can’t set every line to {“apple”, “banana”, “cherry”, “grape”, “”, “”}.*)
Any ideas? Thanks in advance, Scott
set theFile to (POSIX file "/Users/scott/test1.txt")
try
open for access theFile
set fileContents to (read theFile)
set lines to paragraphs of fileContents
close access theFile
on error error_message number error_number
log "OOPS " & error_message
close access theFile
end try