Page 1 of 1

Target subfolders with specific name

PostPosted: Fri Aug 15, 2014 2:27 pm
by creativename
I've searched through the forums and can't seem to find what I need.

I'm trying to target files in subfolders that have a specific name. The problem is that these subfolders are at different depths.

[Watched Folder] > [Subfolder 1] > [Desired Folder] > file
[Watched Folder] > [Subfolder 1] > [Subfolder 2] >[Desired Folder] > file

Is there a way that I can crawl all the subfolders in my watched folder but only find the folder with the name I want, then modify files inside?

I have enough of these folders that making individual watched folders would be tedious and possibly confusing, but I also don't want to alter the depth due to organization, as the contents match the parent folder.

For example, if I'm trying grab the JPG folders in order to tag all the files with "flat":
Stock > Nature> Clouds > JPG >file.jpg
Stock > Nature > Trees > JPG > file.jpg
Stock >Ink-Paint > Paint> Splatter > JPG > file.jpg
Stock >Ink-Paint > Paint> Drip > JPG > file.jpg

Re: Target subfolders with specific name

PostPosted: Fri Aug 15, 2014 2:56 pm
by Mr_Noodle
Read the sticky article about subfolders up top. You can take the rule supplied there and modify it to limit which folders it goes into. You can do it by name or folder depth or whatever. I suggest playing with that.

Re: Target subfolders with specific name

PostPosted: Fri Aug 15, 2014 3:16 pm
by creativename
I have, and I still can't manage to get it to crawl into all the subfolders of the watched folder and find the folders with the name, and then only edit the files inside the folders with the name. I can only manage to get it to find all files in all folders, or not crawl into subfolders at all, even when reordering my rules.

Re: Target subfolders with specific name

PostPosted: Mon Aug 18, 2014 12:06 pm
by Mr_Noodle
Actually, it might be trickier since if you have something like:

folder A->folder B->folder C

and you want to go into folder C, you still need to add a condition such that it knows folder C is deeper down when you are at folder A.

An alternative way to handle this is to have it go into all subfolders but in the rules for the files themselves, do:
Code: Select all
   If (all) match for (the enclosing folder)
       Name is "blah"


You need to hold down option and click the + button to get the nested condition. Try that out.

Re: Target subfolders with specific name

PostPosted: Mon Aug 18, 2014 8:22 pm
by creativename
Nesting worked, thank you, though I did still have to reorganize my files a little manually. It would be more helpful if I could write a rule that is: if kind is image and if any of my files' enclosing folders name is "blah," do something.

Right now I can only grab my files' single enclosing folder: If kind is image and if my files' enclosing folder name is "blah," do something. Since I know that all the items inside the named folder, even if they are nested in deeper folders contain what I need.

Re: Target subfolders with specific name

PostPosted: Wed Aug 20, 2014 1:59 pm
by Mr_Noodle
Not sure how common it is but I'll think about an option to match any enclosing folder.