This is not an answer to your question as it stands, rather a recommended solution for your underlying problem. [VueScan][1] provides macOS support for nearly all scanners. Your particular scanner is included in the list. Connect your scanner to your iMac, install VueScan and run it. [1]: https://www.hamrick.com