MacOS – Can Automator’s ‘find finder items’ ignore subfolders when searching

automatormacos

I am using the Apple Automator to build a simple program that opens all the documents that belong to a project. All files are in the same folder and can be identified by the first characters of the file name; I am using the 'Find finder items'-action to find all these files, and then open them. However, there also files with similar names in a subfolder, that I do not want to open.

I would like the action to search only in the main folder, and to disregard the content of any subfolders. Is there a way to do this in Automator?

Best Answer

yes use the action "Ask for Folder Contents" (i hope its called like that on an English OS - I'm currently on a German one there it is called "Ordnerinhalt abfragen"), there you can say if you also wanna use subfolders or not.

I added a demo workflow for you.

Demo Workflow