Picard just automatically just trashed all my File Names and added rubbish at the end of each file name without so much as a say-so. it did other damage as well, but i am/have fixed most of that.
i have worked out that the last valid string at the end of every file name is "(NORM)"
see attached example
so i want to truncate the file name from that to the rhs end of file name
but do you think i can work out a way that actually works!
i played with $left and $cut right and $strstr, but i couldn't get anything to actually work
You don't explain what did not work.
Have you checked which position `
returns and how many characters from the right that would be?
I tried to explain the basic behaviour of $cutright() in this post for you:
You would have to calculate either how many characters you want to keep and use $left() or how many characters you would have to include if you want to cut off a part of a string from the right.
And if you want to find a variable position in a string and use $cutright() (instead of $left()) then you have to subtract that position from the total length of the string.
The converter can look for a constant string at a variable position.
And otherwise in general: the more of the original data is visible, the closer the suggestions will be to a solution - because I do not feel included in