Open a Word Doc as text in Coda

I often get content for sites in Word docs which I used to open in Pages. Getting the text out of pages involved far too much clicking, particularly if I was extracting a URL from text in a table. To save my wrists, I figured out the following:

catdoc file.doc | coda >> temp.txt

catdoc converts the Word file into plain text, and outputs to STDIO. I pipe that into Coda using coda-cli. For some odd reason, I need to provide the temp.txt throw-away file, or Coda doesn’t respond. The result is a new tab in Coda with the contents of the Word document.

catdoc and coda-cli can be installed using Homebrew.

Comments are closed here.