Thanks to this tip at MacOSXHints, I discovered a great utility in OS X 10.4 that I didn’t know existed: textutil
. It can easily convert files to plain text, html, rtf, doc, and other formats. To convert a .doc file to html, you can just do: textutil -convert html file.doc
.