Batch-processing Image Files in a Folder using a folder action with Automator
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: