Batch-processing Image Files in a Folder using a folder action with Automator

automationautomatorcommand linesips

I'm trying to resize new image files in a folder using a folder action so the files that were already resized to 300×250 don't get resized again. The thing is I'm having issues getting the resizing to happen at all..

Here is my current Automator Workflow:
enter image description here

It works when I test it by adding "Get Selected Finder Items" but when I close automator and I add new files to the folder nothing happens. I'm using Hazel to move jpgs to the folder, but nothing is happening to the files after they are moved into the folder to be resized

Best Answer

As you already have Hazel installed anyway, it might be easier to use it to trigger the image resizing as well. Create a new rule in Hazel to watch the folder and execute the command:

enter image description here