Thanks, Camelot!
It turns out that many .rtf are showing up incorrectly as .txt – they don't even have that extra dot on the icon in a Finder window. Nor are they correct in the Info pane, under "Name & extension".
My mistake was thinking that converting an open file to .rtf with Shift-Command-T (under Format in the Menu bar) would work. It did not; it simply saved the file as .rtf with all the coding still showing as text. (Painstaking correction then had to be done by hand for each file.)
A solution (of sorts) has been arrived at, which I will outline for other dummies...
• Wonky files are easy to spot. The unwanted code on a file shows in the Preview pane of a Finder window.
• Changing file type has to be done by typing the proper extension onto a file name, either in a Finder window or on the Info pane. (A warning window comes up: "Are you sure...?", but that's OK. It can be turned off in Finder preferences > Advanced.)
• The change seems to work whether the file is open or not, but will only appear after the file is closed and reopened. Whether the extension is hidden or not does not seem to matter; the little dot will still appear on the file's icon.
So I'm blaming TextEdit for incorrectly identifying the files. Two things –
- Should I copy-paste TextEdit from my laptop to my iMac? Is that advisable, or even possible?
- Under "Open with:" in the Info pane, should I press "Change All...", or might this convert legitimate text files to rich text?
Otherwise I'll plod on...the problem is now manageable.