Filter for adding folders 2022
Hi. Any news to this?
https://www.advancedrenamer.com/forum_thread?forum_id=5376
I have a ton of folders, which all of them contain a subfolder called previews. Or is there a different way to filter the folder "previews" in the add folders method? Filtering by file extensions or name is not possible here.
Folder1
- sub1
- previews
Folder2
- sub xyz
- previews
https://www.advancedrenamer.com/forum_thread?forum_id=5376
I have a ton of folders, which all of them contain a subfolder called previews. Or is there a different way to filter the folder "previews" in the add folders method? Filtering by file extensions or name is not possible here.
Folder1
- sub1
- previews
Folder2
- sub xyz
- previews
I assume that you want to load the files in the "previews" folders.
Another option is to load ALL the folders but only rename files contained in "previews".
You can do this using an if statement in a script.
app.parseTags("<DirName:2>") will return the name of the folder containing the filename currently being processed.
Another option is to load ALL the folders but only rename files contained in "previews".
You can do this using an if statement in a script.
app.parseTags("<DirName:2>") will return the name of the folder containing the filename currently being processed.
Reply to #2:
"I assume that you want to load the files in the "previews" folders."
Yes
"You can do this using an if statement in a script."
Can you explain this in more detail?
Situation:
New Name
<DirName:3> <DirName:2> <DirName:1> <Inc NrDir:01>
<DirName:1> = previews
"I assume that you want to load the files in the "previews" folders."
Yes
"You can do this using an if statement in a script."
Can you explain this in more detail?
Situation:
New Name
<DirName:3> <DirName:2> <DirName:1> <Inc NrDir:01>
<DirName:1> = previews
Reply to #3:
Try:
if (app.parseTags("<DirName>") == "Previews") return app.parseTags("<DirName:3> <DirName:2> <DirName:1> <Inc NrDir:01>");
Try:
if (app.parseTags("<DirName>") == "Previews") return app.parseTags("<DirName:3> <DirName:2> <DirName:1> <Inc NrDir:01>");