I am trying to update this code to use for TextEdit. RetrieveFile is just a text file exported from FileMaker Pro.
Old code is for Scriptable Text Editor:
tell application "Scriptable Text Editor"
set text item delimiters to {tab}
open file (RetrieveFile)
set thelist to text items of document 1 as list
set text item delimiters of AppleScript to {""}
quit saving no
end tell
Basically I need to change a delimited text file that has “tab” as it’s unique
identifier and I need to change that into a {“”} throughout the file. How would I do this? I saw a post on June 20th that is similar, but I can’t get it to work.
I have this so far:
set AppleScript's text item delimiters to {tab}
set thelist to read file RetrieveFile
set thelist to text items of thelist as list
set AppleScript's text item delimiters to {""}