On Mar 10, 2009 11:33pm, Jack Senechal <email address hidden> wrote:
> 1) Implement some logic like this, since it's implied you want to use the
> ADF if you're scanning more than one page at a time:
> if (pages == 'all' || pages > 1) {
> if (batch-scan-option-present) {
> enable batch-scan
> }
> }
Or if you specify the ADF directly:
if (batch-scan-option-present) {
if ($source == 'ADF' or ($source == 'auto' and ((pages == 'all' || pages >
1)) {
enable batch-scan
}
}
> 2) Detect when the ADF is out of paper and stop scanning then. The
The detection is only passed onto SANE when the batch-scan option is
enabled.
On Mar 10, 2009 11:33pm, Jack Senechal <email address hidden> wrote: scan-option- present) {
> 1) Implement some logic like this, since it's implied you want to use the
> ADF if you're scanning more than one page at a time:
> if (pages == 'all' || pages > 1) {
> if (batch-
> enable batch-scan
> }
> }
Or if you specify the ADF directly:
if (batch- scan-option- present) {
if ($source == 'ADF' or ($source == 'auto' and ((pages == 'all' || pages >
1)) {
enable batch-scan
}
}
> 2) Detect when the ADF is out of paper and stop scanning then. The
The detection is only passed onto SANE when the batch-scan option is
enabled.
I'll look at implementing option 1.