if multiple files selected then remove n letters from each
command works fine as button, not sure what is meant here
If it can be saved as a rename preset.
The buttons are from here RegExp basics: Removing characters from start/end of names - Rename Presets - Directory Opus Resource Centre (dopus.com).
I am currently tidying my rename presets after discovering 'groups' after reading one of your fine posts, and these buttons cannot be put into a group, so I was trying to convert them to a preset. But that is proving more difficult than anticipated and another lesson learnt - no dialogs in rename scripts but normal commands/button scripts can have dialogs and also rename.