Maybe this answer from Julia would help:
https://community.adobe.com/t5/photoshop/ps-cc-export-layer-to-files-without-prefix-numbers/m-p/6048717?page=1#M430772
Personnaly I choosed to adress the situation by modifying the "Export Layers as file" Photoshop JSX script in order to get rid of suffixes and then use an action script simply refering to the menu item… It is a one click solution for the end user. You select the layer and click to launch the action, and that's it.
But all other ways are interesting, specially writing a dedicated JSX script as you did. I will check it, Bravo!
... View more