A command line tool is preferred, but not required.
Do you know of any automatable tool that can automatically detect and remove blank pages from a multi-page PDF file?
Here are a few tools I found on the web. I haven't used them, so I can't comment on how well they might work for you.
A-PDF Scan Optimizer has an option for detecting and removing pages with not many visible marks.
the CoolUtils TIFF PDF Cleaner "detects blank pages in TIFF and PDF files and deletes them".
Edocfile's Blank Page Remover has the effect of deleting blank pages from a PDF file, though it's intended for use with a scanner and a printer as a way of converting a document with mixed single- and double-sided sheets into a document with all single- or double-sided sheets.
Axpertsoft's PDF Page Remover can remove blank pages from multiple PDF files at a single command.
All these requires Windows of some flavour, so I hope you have a virtual machine on your Mac.