I am try to extract data from a file that is tab delimited.
The first entry in each line is in the format:
123-1234567-1234567
When using the code below the data extracted is “123” and NOT “123-1234567-1234567” as I would have expected. Is anyone able to tell me why this is? I have searched online extensively and can’t figure it out on my own.
Thanks
tell application “Finder”
set fileRefr to (open for access filePath)
set theText to (read fileRefr)
set textList to paragraphs of theText
close access fileRefr
set theCNT to (count of textList) - 1
set uniqueList to {}
set AppleScript's text item delimiters to " "
repeat with i from 2 to theCNT
set thisParagraph to first word of item i of textList
set end of uniqueList to thisParagraph
end repeat
set AppleScript's text item delimiters to ""
end tell