naps2 7.4.2.0 installed via brew.sh on Mac OS Monterey 12.6.6
Everything seems to work well, however the system doesn't save the generated .pdf files.
I would like to use the batch function using Patch-T Codes.
I already granted full disk access, but still doesn't work.
saving a file manually works, but without all naming conventions
what can I do?
thank you so much in advance,
Best Regards,
Karl
Error Message:
System.UnauthorizedAccessException: UnauthorizedAccess_IODenied_Path, /Applications/NAPS2.app/myfilename.pdf
---> System.IO.IOException: Permission denied
Exception_EndOfInnerExceptionStack
at void Interop.ThrowExceptionForIoErrno(ErrorInfo, string, bool)
at void Interop.CheckIo(Error, string, bool)
at SafeFileHandle Microsoft.Win32.SafeHandles.SafeFileHandle.Open(string, OpenFlags, int, bool, out bool, Func<errorinfo, openflags,="" string,="" exception="">) x 3
at new System.IO.Strategies.OSFileStreamStrategy(string, FileMode, FileAccess, FileShare, FileOptions, long, UnixFileMode?)
at new System.IO.Strategies.UnixFileStreamStrategy(string, FileMode, FileAccess, FileShare, FileOptions, long, UnixFileMode?)
at UnixFileStreamStrategy System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(string, FileMode, FileAccess, FileShare, FileOptions, long, UnixFileMode?)
at FileStreamStrategy System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream, string, FileMode, FileAccess, FileShare, int, FileOptions, long, UnixFileMode?)
at new System.IO.FileStream(string, FileMode, FileAccess, FileShare, int, FileOptions, long) x 4
at void NAPS2.Pdf.PdfExporter+OutputPathOrStream.CopyFromStream(MemoryStream inputStream)
at bool NAPS2.Pdf.PdfExporter.MergePassthroughPages(MemoryStream stream, OutputPathOrStream output, List<pageexportstate> passthroughPages, PdfExportParams exportParams, ProgressHandler progress)
at async Task<bool> NAPS2.Pdf.PdfExporter.Export(OutputPathOrStream output, ICollection<processedimage> images, PdfExportParams exportParams, OcrParams ocrParams, ProgressHandler progress)+(?) => { }
at async Task<bool> NAPS2.Pdf.PdfExporter.Export(OutputPathOrStream output, ICollection<processedimage> images, PdfExportParams exportParams, OcrParams ocrParams, ProgressHandler progress)
at async Task NAPS2.Scan.Batch.BatchScanPerformer+BatchState.Save(Placeholders placeholders, int i, List<processedimage> images)
at async Task NAPS2.Scan.Batch.BatchScanPerformer+BatchState.Output()
at async Task NAPS2.Scan.Batch.BatchScanPerformer+BatchState.Do()
at async Task NAPS2.Scan.Batch.BatchScanPerformer.PerformBatchScan(BatchSettings settings, IFormBase batchForm, Action<processedimage> imageCallback, Action<string> progressCallback, CancellationToken cancelToken)
at async Task NAPS2.EtoForms.Ui.BatchScanForm.DoBatchScan()</string></processedimage></processedimage></processedimage></bool></processedimage></bool></pageexportstate></errorinfo,>
NAPS2 isn't supported via brew. Can you try uninstalling and reinstalling from the naps2.com website?
Actually it doesn't look like brew is the problem. You need to put in a full path (click the ...). A relative path will be saved next to the NAPS2 app which isn't writable.
Thank you.
That's the solution.
I already ddi play around with this dialog, however didn't recognize, that the setttings aren't saved when naps2 is closed.
Once opened again, the path has been thrown out again and I do have to click the ... again everytime.
Can I somehow write it permanent into the settings? e.g. with command line?
Batch settings are saved when you click the Start button (but not if you close out without scanning).
Thank you!