2

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?

0

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

  • Could you expand on how to use the aforementioned action to search for a file/folder? – grg Jun 29 '14 at 17:47
  • it is just to select if you wana search the folder contents or also the subfolders to select the main folder just use the action you use already – konqui Jun 29 '14 at 19:14
  • @konqui There exists a 'Ask for Finder items'-action, but this gives a prompt from where I can choose the files. I would like to open all of them automatically. – Matthijs Jun 29 '14 at 19:35
  • there should be an action named "Selected Finder items" or if you like it really simple just drag'n'drop the Main Project Folder onto the right side of automator. – konqui Jun 29 '14 at 20:08
  • Doesn't work for me…I can check the 'Do this for all subfolders' box, but it does noet seem to make a difference. – Matthijs Jun 29 '14 at 22:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .