How to Increment the Filename in Scansnap Manager?

Morning.

Where do I have access to the »serial number« with which Scansnap Manager 3.2L90 starts the numbering of further scans?

The four underlined digits must start with 0221. And from next scan on, the number must be increased by one for each scan.

:question: This would be a question for Fujitsu as we have no control over this software.

EDIT 2018-09-26: Needed it again myself and copied the code to a terminal on a new Mac: Seems that this only works if you install bash 4 on your system (using Homebrew) and start it from there. With bash 3, which still is installed on Mojave, the leading zeros will not be written.

  • Installing Homebrew: ```

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

*  Installing bash4: ```

brew update && brew install bash

  • Add bash4 to list of allowed shells: ```

sudo bash -c ‘echo $(brew --prefix)/bin/bash >> /etc/shells’

*  Switch to bash4: ```

chsh -s $(brew --prefix)/bin/bash

After that and restarting terminal/iterm everything works as expected :smiley:. Cheers!

==== original post ====

Unfortunately, Fujitsu doesn’t provide support for this, and they implemented their file naming much more intelligent than one wants it to be: If you have a folder and put a file named 20180220.pdf in, the next file will be 20180001.pdf. You literally have to create 220 properly named PDF files in that folder to fool the ScanSnap Software …

To do this in less than a second, open iTerm, go to your destination folder and execute this:

for i in {0000..0220}; do echo FoolingScanSnap > 2018${i}.pdf; done

That should save you some time :slight_smile:. Good luck!

This won’t work because, it creates not filenames with only eight digits. So, Scansnap will not find a file 20180001.pdf, but a file 20181.pdf. So Scansnap increments the next filename to 20180002.pdf, because it have made already a file 20180001.pdf.