@BetterRed
Thanks for your suggestions! Sadly, one cannot use an Alias (at least not one that is pointing to a folder) as "book" in Calibre.
I tried a little and came up with this hack:
1. make a script file containing the following code (replacing the x-devonthink URL with the link to the respective folder):
#! /bin/bash
/usr/bin/osascript <<-EOF
tell application "Finder" to open location "x-devonthink-item://XXX"
EOF
osascript -e 'tell application "Terminal" to quit' &
exit
2. save this file with the .command extension (or - what I did - with a more descriptive extension like "supporting_information" for which you then have to make Terminal.app the default application)
3. import as an additional format for the respective book into Calibre
4. navigate to the enclosing folder and make the file executable (chmod +x ...)
Clicking on the "command" (or "supporting_information") format in Calibre now opens a Terminal, executes the script thus opening the supporting information folder in DEVONthink and closes Terminal again...
Best,
J
|