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


Click here to return to the '10.4 Convert document formats on the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4 Convert document formats on the command line
Authored by: chacher on Mar 05, '08 05:30:44AM

can someone please tell me how to output the converted files to a new/different directory?
thanks

OR

point me towards a good into to Terminal – I've been putting off learning it, but after this tip, I'm READY



[ Reply to This | # ]
10.4 Convert document formats on the command line
Authored by: morespace54 on Mar 05, '08 10:46:07AM

That would be:

textutil -convert fmt filename -output path/to/newfile.fmt


So let's say you have a document named "MySource" in a RTF format (in your current directory) and you want to save the result as a file named "Result" in a TXT format (in your Documents directory), you would do the following:

textutil -convert txt MySource.rtf -output ~/Documents/Result.txt



[ Reply to This | # ]