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: retry when feeder is empty #539

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

CLI: retry when feeder is empty #539

muescha opened this issue Jan 22, 2025 · 1 comment

Comments

@muescha
Copy link

muescha commented Jan 22, 2025

Describe the feature
It would be helpful to have an option to handle the “document feeder is empty” error gracefully.

To Reproduce
Steps to reproduce the behavior:

  1. Open Terminal.
  2. run the command
  3. Leave the document feeder empty.
  4. Observe the console displaying an error.
$ naps2.console -p "7320 Einzug SW 200dpi" -a -n 2
Error Domain=com.apple.ImageCaptureCore Code=-9933 "Document feeder is empty." UserInfo={NSLocalizedDescription=Document feeder is empty.}

Expected behavior

Add a --retry-on-empty-feeder option, with optional delay settings. The delay could default to the value of the --delay parameter or allow customization.

$ naps2.console -p "7320 Einzug SW 200dpi" -a -n 2 --delay 5000

[...]
Error Domain=com.apple.ImageCaptureCore Code=-9933 "Document feeder is empty." UserInfo={NSLocalizedDescription=Document feeder is empty.}
Feeder is empty... retry scan in 5000ms.
Waiting 5000ms...
5000ms
4000ms
3000ms
2000ms
1000ms
Starting scan 2 of 2...```

**Desktop (please complete the following information):**
- OS: macOS Sonoma 14.5 (23F79)
- Version: NAPS 7.5.1.0
@muescha muescha changed the title CLI: retry when feeder is empfy CLI: retry when feeder is empty Jan 22, 2025
@cyanfish
Copy link
Owner

Going to combine this under #234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants