InDesign Table Conversion

Hi All,

I place a file in InDesign document of having tab separated text, now I need a script, so that user will just select the text and run the script, the selected text should get converted in the Table.

Thanks