Automating assignment of buttons file paths
I have document with multiple buttons that must open files. I changed this script to work with file paths instead of urls: Automating Assignment of Button URLs for DPS Projects | Adobe Developer Connection
But now I have another problem: I have many identical buttons that must open the same files. When creating copy of button, Indesign automaticly renames it, adds number at the end. But even if I rename buttons to have the same name, script dosent work with them. So I need a way to make script work like that: loop throu all of my buttons and if name is something like "Button", "Button 2", "Button 3" give them the same file path as in the my table corresponding with "Button".
Sory for my bad english : ). I don`t know how to script and I need help.