View Single Post
Old 08-13-2020, 10:35 AM   #22
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Job Spy plugin tool "Search for book title list currently in the system clipboard"

Quote:
Originally Posted by eater View Post
The "drop" interface is cool but I'd love a way to use this plugin on my command line, piping a list of Recoll results and getting the output in the Calibre GUI. Is that possible?

Quote:
Originally Posted by DaltonST View Post
Drop Search Results is designed for Drag and Drop using file path results of GUI-based search applications like Agent Ransack, Windows Search, X1, etc. One could write a tiny GUI created from a command line that loads supplied file path parameters that can then be dragged and dropped.
However, since you are using a Linux command-line app and not a GUI search app with drag-and-drop capability, you might try this approach:

[1] Use the Job Spy plugin's tool "Search for book title list currently in the system clipboard". Each title must be delimited with a "\n", as if you had a text file with a single title on each line that you had copied to the clipboard.

[2] Write a Python script with a command line parameter that adds a long string of book titles to the system clipboard. For ideas how to do so, see: https://stackoverflow.com/questions/...t-to-clipboard

[3] Pipe a list of Recoll results to your new Python script.

[4] In Calibre, create a custom Keyboard Shortcut to the Job Spy tool in [1], above, to make it trivial to execute.




DaltonST
DaltonST is offline   Reply With Quote