I want to tag every file that I scan with a 'Scan' tag. I successfully wrote the shell script that does the tagging part, but now I am struggling to start it when scanning my documents.

Here is what I tried and thought of so far:

Making automator Image Capture plugin which would run the shell script. This makes the process complicated, because now I need to Scan To my plugin, which means that I would need to make a selection of where to save the scanned document from within the workflow by using Ask for Finder Items. This is subpar, because if I want to scan 20 documents to the same into the same folder, then I need to select the same folder 20 times.

Another way I thought of was creating a folder action workflow in Automator. However, I could not figure out how to distinguish between PDFs that are created by Image Capture, and PDFs that are downloaded from the net and copied to the same folder. Sadly I can't rely on PDF metadata to distinguish files created by Image capture since it just says macOS Version 10.15.3 (Build 19D76) Quartz PDFContext.

So how would I approach the task of running my tagging script each and every time I scan a document and save it into an arbitrary location? I would prefer no third party software solutions, unless that's the only way. It does not have to be an Automator workflow, even though I only thought of that so far.

I am on 2015 MBP, MacOS Catalina 10.15.3.

You must log in to answer this question.

Browse other questions tagged .