var myParagraphStyle = null;
var myTable = null;
myParagraphStyle = app.activeDocument.paragraphStyles.item("50 Table_txt");
myTable.columns.width = 40;
app.selection.appliedParagraphStyle = myParagraphStyle;
myTable = app.selection.convertToTable("\t","\r");
why doesnt work?
I usually am very kind and thoughtful as I wish everyone would be with me but :
1) Start welcoming people and thank them for their help is appreciated and cost less. Also introduce you is fine.
2) Being clear on what you try to achieve an what you get as result help people understanding your issue
3) Obviously your "issue" comes from the instruction "return" which ends the function code execution at this point. So no further code is executed.
Hope that helps,