Automator Filter Finder Items
A very simple task, which I have attempted to figure out many times over the last few months; but my repeated attempts haven't been successful. This should be easy for someone to resolve…
I would like to strip out all the files of a certain extension (.txt) from an hierarchy of nested folders, & move them to the Trash. (Told you it was easy!)
Here's what I think ought to work:
• Create an Automator Workflow
• 'Ask for Finder Items' to select the topmost folder
• 'Get Folder Contents' with 'Repeat for each subfolder found' — (the results successfully include all the relevant files)
• 'Filter Finder Items': "find files where any of the following are true: file extension is .txt" — (I tried "txt" as well as ".txt")
• 'Move Finder Items to Trash'.
The files turn up (alongside loads of other junk) in the 'Get Folder Contents' step, & they are reported in the results; but when I try to filter out everything apart from the .txt files, so that only the .txt files remain, the filter reports no results.
So the 'Filter Finder Items' action completes with no results, & with a warning that: The action “Move Finder Items to Trash” was not supplied with the required data.
I think it must be something obvious, but I can't figure it out, & although I've searched extensively online, everyone else with similar problems has other complications which get resolved… so they lose interest just at the point where I think they're going to reveal the solution.
27" iMac 3.06 GHz Intel Core 2 Duo, Mac OS X (10.6.5), Logic Studio 8.0.2, Occam's Razor Pro