James Brickley wrote:
Please describe what you are trying to accomplish with Automator.
From your example it looks like you are triggering the Automator actions when changes to the downloads sub-folder occur and executing a Unix find command which just seems to list everything and then you have a Move Finder items to Trash. The items being returned are not Finder items so they aren't deleted. The bash script runs lists the files and then closes and nothing is being deleted. You might wish to delete the files using more Unix commands in your bash script. But do be cautious while testing as the files won't go to the trash can.
I would have thought as much, but surprisingly I made a similar Automator workflow as a test.
As you noted, the shell script outputs lines that happen to represent file paths; the subsequent "Move to Trash" action DOES move said files to the trash!
This workflow apparently is to be set as a folder action, with the purpose of deleting files that are added to the folder. It seems to me that this could do without the find command, but perhaps the OP can clarify what is the intended purpose of the workflow, I could be missing something.