I'm locking for the method that make the opposit action of "Button.convertToObject ()"
I need to convert pageItems in buttons, is it possible?
var myMenuCenter=app.menuActions.item("$ID/$$$/Command/Destroy FormField");
You will need to select the object and then try something like this. There is probably a better way to do this but this should get you pointed in the right direction. This is in CS6
I have spent various days looking for a solution and I think this is the only way.
1) Add a button to the object: obj.buttons.add()
2) Create a new button with the same properties as the page item.
All workarounds are helpful.
So it means that a specific method does not exists.
I believe that's correct.