View Single Post
Old 05-17-2019, 01:15 PM   #1
Bhuvanesh
Junior Member
Bhuvanesh began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2019
Device: Android phone (Samsung Galaxy S9+), MacOSX
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?
Bhuvanesh is offline   Reply With Quote