Is it possible to trigger scanning automatically on OS X? All I was able to find is http://blog.scottkleper.com/scanline-command-line-scanner-for-mac/, which is rather good, only that it can scan into pdfs. I don't feel like adding support for jpegs myself.

Can I scan documents with either with a terminal command or applescript?

  • 1
  • @slhck thanks, that would presumably work, but it's somewhat hacky solution. I'm kind of hoping for a better automation, one that would not interrupt users work. Will have to use this though if nothing else pops up. – Mikulas Dite Nov 19 '13 at 20:30
  • maybe there's something to hide a window. like for windows there's hstart by ntwind, but maybe there is something for osx. or something in applescript that hides the window – barlop Nov 20 '13 at 7:30
  • user285892 - Are you still looking for a solution? I can add a -jpg option to scanline relatively easily if you still need it. – Canadian Luke Dec 31 '13 at 18:21
  • @CanadianLuke indeed I am. You will be most awesome if you actually implement it :) I looked at the repo and as a matter of fact I tried to implement jpeg output. I suppose it would be handled somewhere around github.com/klep/scanline/blob/master/scanline/… but then again I have no idea. Thank you :) – Mikulas Dite Jan 2 '14 at 9:15

I have added a -jpeg / -jpg option to scanline. Note that the comment above was from me, but @CanadianLuke reposted it as a comment because it was "not an answer". Hopefully this is considered an answer -- here's a direct link to download the scanline binary with -jpg support:


  • Glad someone else finds it useful. Good luck! – klep Jan 3 '14 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.