Populating a custom Yes/No field based on results from bash command executed on file
I would like to mark PDF files in Calibre as searchable/not-searchable (I guess the former would be text+images and the latter would be un-OCR'ed images). I would like to try populating this custom Yes/No field based on results from a command executed in bash on the file, e.g. whether
strings `file` | grep -c FontName
gives an integer greater than 0.
Is this possible, and if so, how do I do it?
|