Quote:
Originally Posted by redynstruc
First, let me say, "Thank you" for writing the "Open With" plugin. I am trying to use the advantages of calibre to overcome the disadvantages of the Kindle Reader for my Mac (which, I wouldn't even need if it weren't for the drm issue) and I believe "Open With" will help me to do that.
I have tried to customize the script to work on my Mac and I fear that the fact that I am a long time user of MS-DOS/Windows (I only switched to a Mac a few months ago) is contributing to my befouling the code. Here is the latest version of what I have tried so far:
from PyQt4.Qt import Qt
ofep_open_with_menus = [('Kindle', 'AZW', 'MacintoshHD\/Applications\/Kindle.app', None, None, None)]
I tried removing the "escape" backslashes, but to no avail. The good thing is that when I right-click, the "Open With" submenu appears and the default "Sigil" option presents itself. Now, if I could just get it to show "Kindle" (and then, of course, open the book with my Kindle desktop reader), I would be set.
Any help you can provide will be greatly appreciated.
|
You are an incorrect name of the tweak - where did you get that from? The correct name of the tweak is
owp_open_with_menus (owp for open with plugin - a prefix I use to ensure no naming collisions with any functionality added to Calibre)
[EDIT: I just realised that while the post has the correct tweak name, my manual editing of the readme.txt file was rubbish and no doubt what you copied from. Sorry for the inconvenience, new zip will be pushed to the post]
You will need to restart Calibre to get the new menu displayed of course. I may do another version of the plugin in future so it does not require a restart, I've got the whole dynamic menu in Qt thing figured out now with the last plugin I did.