I created a workflow in Automator consisting of a single action, "Convert Format of Word Documents" (provided by Microsoft Word). I saved this in ~/Documents/convert_word_to_pdf.app
. I can run it by dragging a word file over this app, and it will generate a PDF for me. However, I can't figure out how to run it through the command line. I tried running automator convert_word_to_pdf.app foo.docx
and I get Unable to open workflow.
. I also tried convert_word_to_pdf
and convert_word_to_pdf/document.wflow
as arguments to automator
, with the same results. What am I missing here?
Automator command line: “Unable to open workflow”
automator
Related Question
- Automator “Filter Finder Items” issues with spotlight
- How to create an Automator service to run a script on all files in a folder
- Automator workflow fails to run on terminal, but runs from within automator. Why
- Automator workflow to split PDF
- MacOS – Automator action to run python script on series of files fails in Catalina
- Can an Automator workflow generate an Application
- Apple Automator: where does it store a new filename
Best Answer
Use
-i
:Or if there are multiple arguments:
See the man page: