Article View: adobe.scripting.indesign
Article #597[JS CS3] Tab Stops in Table
From: Joaquin_Zarasul
Date: Tue, 17 Mar 2009 07:57
Date: Tue, 17 Mar 2009 07:57
8 lines
1159 bytes
1159 bytes
Below is a function that would delete all existing tab stops in a column and the add a new tab stop.
function TabStopper (myPosition, xx){
myTable.columns.item(xx).cells.everyItem().texts[0].tabStops.everyItem().remove();
myTable.columns.item(xx).cells.everyItem().texts[0].tabStops.add({position:myPosition, alignment:TabStopAlignment.CHARACTER_ALIGN, alignmentCharacter:")"});
}
The problem is that this works well with CS2 but not with CS3. In CS3, only the tab stops in the last cell of the selected column are removed. Can anybody please help analyze what the problem is. Thank you so much.
Technical Details
Message-ID:
<59b83ad5.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,f8d980df89214e41,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Joaquin_Zarasul@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [JS CS3] Tab Stops in Table Message-ID: <59b83ad5.-1@webcrossing.la2eafNXanI> Date: Tue, 17 Mar 2009 00:57:50 -0700 Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit