Page 1 of 1

Rename to only affect end of file name?

PostPosted: Tue Jun 11, 2024 4:22 pm
by katz.kristen0
Hi there. I'm hoping someone has a creative solution that I just couldn't figure out on my own. Here's the situation...

I have multiple views of an image. I made a rule for each view to rename them. In this example things break on view 2.

Example of Parameters Used:
If name ends with "_1"
Rename with Name(using find and replace _1 to _VPSFH000), Extension.

These are my raw file names I'm working with:
abcdeg_235_1.png
abcdeg_235_2.png
abcdeg_235_3.png
abcdeg_235.png

That I want them to become is:
abcdeg_235_VPSFH000.png
abcdeg_235_VPSFH001.png
abcdeg_235_VPSBH001.png
abcdeg_235.png (This I want to automate deleting if I can figure out my rename issue.)

The trouble is this:
abcdeg_235_VPSFH000.png
abcdeg_2VPSFH00135_VPSFH001.png
abcdeg_235_VPSBH001.png
abcdeg_235.png

Because it sees there's _2 earlier in the name it changes both instances of _2 in the file name. I need it to ONLY change the end. I tried using "_1.png" as a more unique identifier but I think because the software looks at extension separately that isn't working.

Is there a way to make sure it doesn't change any of the first 10 characters? Those are identifiers I need to protect. I only want to change the end of the file names.

Re: Rename to only affect end of file name?

PostPosted: Wed Jun 12, 2024 8:41 am
by Mr_Noodle
The replace text option may not be the best solution here. Instead look up custom attributes. I would capture the number in a custom attribute which you can then use in the Rename pattern. If it's a number, you can also have it subtract one from it.