I am using TextEdit and need the document to save as a .rtf, but when I am copying and pasting the data over, since there are small images and thumbnails, it will always save as .rtfd.
I am currently going through the process of doing this manually, but when dealing with 50+ documents, going into the Get Info area, setting the proper extension, then saving that file again takes time. I do not need the images to be there, but going through and removing manually is also not a good option.
I am currently trying to learn AppleScript and using Script Editor, but wanted to see if in the meantime anyone had any ideas here or have a script that does this?
.rtfd
file is actually a folder containing a file namedTXT.rtf
and any images that were included. I'd simply copy theTXT.rtf
files out of their respective.rtfd
, while renaming them in the process. Assuming all the.rtfd
files are in the same folder, then in Terminal change directory to the location of the.rtfd
files, i.e.cd /path/to/.rtfd_files
and then use the following compound command:for d in *.rtfd; do cp -nv "${d}/TXT.rtf" "${d%.*}.rtf"; done