How can add a action of button create from script?
I want create a Button from script.
I had add by script:
var doc=app.documents[0];
var txtMain=doc.textFrames[0];
var oCell_URL=txtMain.tables[0].cells[1];
var btnLink=oCell_URL.buttons.add();
Now, How can add action for this button?
Ex:

