Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: should print a summary with the filename #543

Closed
muescha opened this issue Jan 22, 2025 · 1 comment
Closed

CLI: should print a summary with the filename #543

muescha opened this issue Jan 22, 2025 · 1 comment
Labels

Comments

@muescha
Copy link

muescha commented Jan 22, 2025

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

When I run the CLI with placeholders or with the autosave option, then I can not easy guess the file names

Describe the solution you'd like

  • it would be nice to have an info printed to show me the filenames created after the scan. maybe only when I use --verbose or with an --info, --fileinfo or similar options.
naps2.console -p "7320 Einzug SW 200dpi" -a -n 2 -d 10000 -v --progress --fileinfo
2025-01-22 18:50:16.079 NAPS2[19087:1510821] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
Beginning scan...
Waiting 10000ms...
Starting scan 1 of 2...
0 page(s) scanned.
Waiting 10000ms...
Starting scan 2 of 2...
0 page(s) scanned.
created files:
- /Users/muescha/Documents/Personen/Muescha/2025-01-22-18-31-48-scan.pdf
- /Users/muescha/Documents/Personen/Muescha/2025-01-22-18-32-25-scan.pdf

Nice to have: --json to get an JSON output:

naps2.console -p "7320 Einzug SW 200dpi" -a -n 2 -d 10000 --fileinfo --json
{
  "result": "success",
  "errors": [],
  "files": [
    "/Users/muescha/Documents/Personen/Muescha/2025-01-22-18-31-48-scan.pdf",
    "/Users/muescha/Documents/Personen/Muescha/2025-01-22-18-32-25-scan.pdf"
  ]
}

Describe alternatives you've considered

I can scan it to an empty temp dir and then look what pages are there.

@cyanfish
Copy link
Owner

Collecting under #546

@cyanfish cyanfish added the cli label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants