Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Using textutil to convert .docx to .doc Apps
I was very surprised to see that the following was not included among the various ways to convert a docx document to doc format in the July 2010 issue of MacWorld. [crarko adds: They do mention using TextEdit to do the conversion there, but not textutil.]

If you are using Leopard or Snow Leopard, open a Terminal window, navigate to the location of the .docx file you wish to convert and type the following:

textutil -convert doc myFile.docx

Where myFile.docx is the file you need to convert. It's also possible to just drag your document in the Finder and drop it on the Terminal window to get the correct full path to it. The operation will output myFile.doc in the same folder as the original after the conversion.

[crarko adds: I tested this, and it works as described. We've covered textutil before but not this particular conversion.]
    •    
  • Currently 2.77 / 5
  You rated: 1 / 5 (26 votes cast)
 
[17,718 views]  

Using textutil to convert .docx to .doc | 8 comments | Create New Account
Click here to return to the 'Using textutil to convert .docx to .doc' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using textutil to convert .docx to .doc
Authored by: jc_helary on Jun 17, '10 07:43:46AM

The available formats are: txt, html, rtf, rtfd, doc, docx, wordml, odt, or webarchive.

Basically the conversion result is the same as if done with TextEdit. The only thing textutil brings is batch processing and a number of nice options (including concatenating the converted files into one resulting file).

Everybody should check the manual page to see the possibilities.



[ Reply to This | # ]
Using textutil to convert .docx to .doc
Authored by: ctierney on Jun 17, '10 08:13:31AM
If you find yourself on 10.3 with no access to textutil, the following applescript can extract plain text to your clipboard:
docx2clipboard

[ Reply to This | # ]
Using textutil to convert .docx to .doc
Authored by: timcrawf on Jun 17, '10 08:18:22AM

How would one create an Automator service using this script?



[ Reply to This | # ]
Using textutil to convert .docx to .doc
Authored by: joewhite on Jun 17, '10 11:48:47AM
Create a new Service workflow, set service to receive selected files or folders in Finder, then Run Shell Script

textutil -convert doc "$@"

[EDIT]and be sure to Pass Input as arguments.[/EDIT] Give it a name like "convert to .doc" and save, and you're on your way to right-click goodness.

---
OS X: Because it was easier to make UNIX user-friendly than to debug Windows
Edited on Jun 17, '10 12:09:55PM by joewhite


[ Reply to This | # ]
Using textutil to convert .docx to .doc
Authored by: timcrawf on Jun 17, '10 01:01:43PM

Thank you. It was that last bit
"$@"
That I didn't know.



[ Reply to This | # ]
Using textutil to convert .docx to .doc
Authored by: AronAmbrosiani on Jun 18, '10 04:43:33AM

Hi,

thanks for a very useful hint, especially as an automator app!

do you know of any methods to do the same with .xlsx files?



[ Reply to This | # ]
Using textutil to convert .docx to .doc
Authored by: strummer5 on Jun 18, '10 06:43:17AM

This is a great hint...I also tried it using textutil to convert OpenOffice/NeoOffice .odt files to .doc and it appears to work. I'm playing around with automator now to a create folder action or mini-app to batch convert.

I work in a school where we've leaned on OpenOffice/NeoOffice for students but I'm trying to move everyone over to Pages for stability's sake (too many sad faces when Ooo/NO crashes in mid project). I've never been able to find an app that would bulk-convert the hundreds or thousands of odt's we have floating around. It's a shame that Apple just doesn't roll odt support into iWork since TextEdit and Quicklook already support it.



[ Reply to This | # ]
Using textutil to convert .docx to .doc
Authored by: oldmactech on Oct 07, '10 02:10:34PM

Is there a switch that will retain the original (in this case docx version) font style and size? When I run this it converts everything into Times at 12 pt. and shows either all bold or not, but doesn't keep the bold where the original has it.



[ Reply to This | # ]