Hi,
Looking into Indesign interface, it seems that there is no way to adapt a table to its frame. By the way, I don't see any ability to set the width of a table but maybe I am wrong on this point ?
So, is there any script that allow that, to be honest, I don't think you can get something really good.
The closest lead I see should be something like :
A - get the width and heigth of the frame
B - get the number of columns and lines
C - set the width & heigth of cells to A/B.
You will understand how much this way can'tbe satisfying for you.
I hope I am wrong however.
Loic