View Single Post
Old 08-24-2014, 01:18 PM   #7
Timber
Enthusiast
Timber began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Jun 2008
Device: iPad, Macbook Pro, Kindle
Thanks for the help loximuthal and kovid. That automator script is a better way of calling the ebook-viewer.

I think I screwed something up in the implementation though. If I run the automator script, it calls the ebook-viewer just fie, but the other part where I can drop a file onto it doesn't seem to be working.

Love to get any suggestions for where I messed up in implementing it

I opened automator, chose Run Shell Script from the actions and gave it this script inside

if [ "$1" != "" ]; then
/Applications/calibre.app/Contents/MacOS/ebook-viewer --detach "$1"
else
/Applications/calibre.app/Contents/MacOS/ebook-viewer
fi

Bottom part where it doesn't receive a parameter and just calls the ebook-viewer works just fine.

Top part where I should be able to drop a file onto it and have it call that isn't working.

Any help with the scripting would be much appreciated
Timber is offline   Reply With Quote