How to add or remove tab stops using ExtendScript
I need to change the tabs in a paragraph via scripting. Here is what I have so far:
var oaTabs = oPgf.Tabs;
var oaNewTabs = [];
for( n = 0; n < oaTabs.length; n++ )
{
if( oaTabs[n].x < iLeft || oaTabs[n].x > iRight )
oaNewTabs.push( oaTabs[n] );
}
var oaProps = oPgf.GetProps( );
var i = GetPropIndex( oaProps, Constants.FP_Tabs );
oaProps[i].propVal.tsval = oaNewTabs;
oPgf.SetProps( oaProps );
Replacing the tsval inside the propVal for the paragaph tags does not work. I believe tsval is an alias to an array that is actually there, but what is the property name of the array that I need to replace ? Can this be done at all in this manner ?
Thanks for a quick reply
