I am able to export PDF from Pages using the following:
export doc to file (targetPath & fileNamePrefix & ".pdf") as PDF
However when trying to export to RTF or RTFD, eg,
export doc to file (targetPath & fileNamePrefix & ".rtf") as RTF
I get error:
“The variable RTF is not defined”
I have tried rtf
RTD
rtfd
RTFD
to no avail.
Model: Mac Mini
AppleScript: 2.10
Browser: Firefox 68.0
Operating System: macOS 10.13