Not sure what you mean about the "programatic" way then? You did not make it clear what you are actually trying to do from a workflow point of view.
Depending on what you are trying to do it may be possible to achieve what you want by making use of the Calibre command line utilities. Alternatively you might be able to make use of the Recipe sub-system.
|