scanpage

I've been wanting to make a quick and easy tool for scanning a single page for a while now, and finally got around to it.
This script basically needs to know what scanner you are using, and where you want the file to be saved...
You can create a .desktop file for it and then just call it, insert a document in the scanner and click ok.
It will create all needed files and make a pdf.

Though i've made it to also use tesseract, this isn't strictly needed (there are remarks in the script where you can comment/uncomment stuff to not use tesseract).
Probably not ideal, and surely not cleanly written it does to the job quite nicely and fits my needs. I'm putting it up on my site if anyone ever might want to use it.

As usual, i welcome improvements on my code.

Scanpage script