Mr_Noodle wrote:Yes, look up "match patterns" and "nested conditions" in the help.
You can add conditions like:
- Code: Select all
Name matches (• file name)
If (all) are met for (any file in the same folder)
Name matches (• file name)
Extension is ....
where (• file name) is a custom text attribute defined as matching "anything". What this does is in the first condition, it will match the file name and store it in that custom attribute. In the nested condition, it will try and find another file matching that previously matched file name, plus what other conditions you add (like extension).
You'll need to play with it a bit but that should give you the basic gist of it.
This would work if the file initially is all in the same folder, then assorted to its subfolders.
However, if it is already in the subfolders, how would I get it to scan the files that are already in them?
ie.
Depth 0: Depth 1: Depth 2:
2020 202001 IMG_0001.jpg
202002 IMG_0002.jpg
IMG_0003.jpg
202003 IMG_0004.jpg
2021 202101 IMG_0005.jpg
IMG_0001.mov
IMG_0002.mov
...
I need to move IMG_0001.mov and IMG_0002.mov into folders '202001' and '202002' to where IMG_0001.jpg and IMG_0002.jpg are, but because each of the files are in different subfolders, I can't scan them. (And I have a range from 2012 through to 2021, so like 120 subfolders. Do I have to make a rule for each one of them? I just want it too loop each subfolder or subsubfolder and scan it or something, but not sure how to do them. I am also unfamiliar with script writing, although I understand it when I read off it, I just can't write it(limited understanding of applescript/javascript/shell script).