This works for me. It took some extra time because, uh, well, I accidentally was looking at the InDesign reference ... took me a while to find out why none of the commands worked ...
But my hunch payed off: I was thinking, maybe you need to construct a new tab stop. That's way different than how InDesign works.
/* set up for testing */
doc = app.activeDocument;
ele = {position:[100,0], size:[300,100], tab:[60,90,120,200]};
var rectRef = doc.pathItems.rectangle(ele.position[0]/1, ele.position[1]/1, ele.size[0]/1, ele.size[1]/1);
eleText = doc.textFrames.areaText(rectRef);
var dataArray= new Array ();
eleText.contents="hello\tworld\thow\tare\tyou\ttoday";
/* Use the following to set tab stops */
t = new Array(ele.tab.length);
for (tab=0; tab<ele.tab.length; tab++)
{
t[tab] = new TabStopInfo;
t[tab].position = ele.tab[tab];
}
eleText.paragraphs[0].tabStops = t;
Other than with InDesign
, you cannot add or modify a single tab stop. Instead, the entire array is "read/write". Creating a new array of "TabStopInfo" items and feeding that into your paragraph is a roundabout way of doing stuff, but hey, at least it works.