Again, once you
create the symlinks, you can create a file association that merely passes the selected book as a parameter to `/usr/bin/ebook-viewer`. You did say you know how to create an arbitrary association to a command-line executable -- well, that will need to use the symlink, not the *.app
My updater includes code to create the symlinks, but you could also run (as root) the command that the updater would run:
Code:
ln -sf /Applications/calibre.app/Contents/console.app/Contents/MacOS/* /usr/bin/