You can do something like this:
- Code: Select all
If (all) are met
If extension is mkv
If (all) are met for (the enclosing folder)
Name matches (•folder name)
Do
Rename (•folder name)(extension)
To get the nested condition, hold down option while clicking on the + button to create a new condition. There you will see the new target popup where you can specify the enclosing folder. (•folder name) is a custom attribute which you can define as (anything). What the rule above does is match mkv files whose enclosing folder's name matches anything. That second part doesn't seem useful except for the fact that is captures the name of the enclosing folder into that custom attribute. You can then use that custom attribute in the Rename action.