Read rich text as plain text

Does anyone know if there is a way to read in a rich text file as plain text? Or anything like strip all the rich text formatting from the file or convert it after being read so all I have is the plain text I want.

I’m using open for access to read in the rtf file.

Thanks!

Hi,

easiest way is to use the shell textutil command


set RTFFile to "/path/to/file.rtf"
set RTFtext to do shell script "textutil -stdout -convert txt " & quoted form of RTFFile