Just getting started with Retrobatch. Is there a way to process only newly added files?
The origin folder grows over time and reprocessing files will take more and more time.
One way I tried was to change the filename or tags of the original files as they were processed. And then filter input files for the filename or tags. But I could not find an option to do that.
Another could be to move the processed originals to another folder.
Any suggestions?
Thanks
edit: just found the node to add Finder tags. Now I only need a way to filter for them.
Thereâs no built in way to do this. However, it is possible to to use Folder Actions (which is built into MacOS) to have any new files sent to a workflow. Hereâs a sample AppleScript to do this:
use AppleScript version "2.4"
use scripting additions
on adding folder items to theAttachedFolder after receiving theNewItems
tell application "Retrobatch"
set d to open "/path/to/retrobatch/workflow/Invert.retrobatch"
tell d
execute input items theNewItems
end tell
end tell
end adding folder items to
Then using the Folder Actions Setup app (weirdly in the /System/Library/CoreServices/Applications/ folder) you can then pick a folder and attach the AppleScript to it.
Iâll take it as a feature request that youâd like âonly process files added to this folder since the last time this was runâ.
As for âonly processing files added since last runâ, I can imagine that is technically complex to keep track of that.
In the meantime, being able to filter files by tag would already enable similar functionality: Set the tag to âyellowâ on the original file when processing, and each run filter out all the files that have their tag set to âyellowâ.
This could also work by editing the filename of the original file (for example add â_processedâ).
This sounds like the kind of thing Hazel could help with. Itâs not cheap but itâs a little like Retrobatch for file operations. Havenât tried the attached workflow (also noteI havenât upgraded to the latest version yet) but if you were to open with a droplet instead of Retrobatch itself it could workâŚ