Then that is supplied by Spotlight but apparently it's blank. It might be better to capture it yourself. Search for "match patterns" in the help. What you want to do is grab the enclosing folder name yourself using a condition like:
- Code: Select all
If (all) are met
If (all) are met for (the enclosing folder)
Name matches (•enclosing folder name)
...
where (•enclosing folder name) has the pattern "anything". To get the nested condition, hold down option while clicking + to create a new condition. That will capture the folder name into the attribute you defined which you can then use in your rename pattern.