Is there a tool that scans images from the command line? I am looking like scanimage on linux that works like this:

scanimage > image.pnm

I've tried googling and checked if ImageCapture is scriptable via applescript but no results.


I don't know of a way to do it with built in tools, but there is an OS X version of SANE that should be able to do exactly what you request (scanimage > image.pnm).


This is a TWAIN datasource for MacOS X that aquires images using the SANE backend libraries. The SANE backend libraries provide access to a large range of scanners connected through SCSI or USB. For a complete list see the documentation on the SANE project homepage.

It's available at http://www.ellert.se/twain-sane/

| improve this answer | |

You might also be interested in scanline, which does what you're requesting:


(Disclaimer: I wrote scanline. It's free and open source)

| improve this answer | |
  • 1
    Up vote for you and kudos for mentioning your association. – Ian C. Sep 23 '14 at 4:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .