http://manual.calibre-ebook.com/cli/cli-index.html
Quote:
On OS X you have to go to Preferences->Advanced->Miscellaneous and click install command line tools to make the command line tools available. On other platforms, just start a terminal and type the command.
|
Afterward, just type that code into automator as per loximuthal's screenshot.
According to my Google-fu, you should create an automator
application workflow, and add the "Run Shell Script" action. That will provide a box to insert that code, which should look like loximuthal's screenshot. You MUST USE "Pass input: as arguments" or else the files dragged onto the app will not get passed to the script, which was the whoe point.