simon-knuth / scanner

An all-in-one scanner app built for the Universal Windows Platform
https://simon-knuth.github.io/scanner/index
Mozilla Public License 2.0
495 stars 28 forks source link

start scanner by „cmd“-command line and surrender parameter (e.g. –f scan-destination-folder) #85

Open danielguenther2021 opened 2 years ago

danielguenther2021 commented 2 years ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

danielguenther2021 commented 2 years ago

here more details:

The app will be opened by command line with the given path and to that place should the app save the scanned document. The GUI could be used for further operations, e.g., deleting empty pages.

use-case-example 1:

you create a scan-to-stick.bat the content of scan-to-stick.bat could be similar to start scanner.exe -f current-path-to-folder (the app run a scan in the folder) the scan-to-stick.bat could run by calling from an own created explorer menu (e.g., scan to here …)

use-case-example 2:

you create a scan-to-stick.bat the content of scan-to-stick.bat could be similar to start scanner.exe -f g:\scanneddocuments the scan-to-stick.bat could run automatically by connecting the usb stick

simon-knuth commented 2 years ago

Hi there, sorry for the super late reply. It's an interesting proposition and definitely something that could be added. I believe that it would require some work, since the app doesn't currently support any kind of intent system and is instead built around the UI when it comes to the general flow. In order to implement this, a lot of cases would need to be considered (e.g., what the app does when the app is launched, and the scanner isn't found immediately).

Interfacing with the command line is pretty common for open-source software, but I have to admit that I'm personally not an avid command line user and I suspect that the user base is almost entirely unfamiliar with that tool. As a result of this and me trying to invest more time into different projects I won't actively implement this. However, if someone else were to take a look, I'd be happy to try and give some pointers or help with any potential design decisions. The examples you've given could be a very promising starting point.