Article View: adobe.scripting.indesign
Article #2169[JS CS3] Merging table columns
From: Michael_Dean
Date: Sat, 10 Jan 2009 03:43
Date: Sat, 10 Jan 2009 03:43
13 lines
1056 bytes
1056 bytes
Hi all,
What's the fastest way to merge columns in a table?
I'm using the following loop to merge the 4th and 5th columns in my table:
for( var f = myTable.rows.length-1; f >= 0; f-- ){
myTable.columns[3].cells[f].merge (myTable.columns[4].cells[f])
}
It works, but I'm working on a large table (120 pages worth) and have many instance where I need to merge columns. Using the loop above, the script takes hours to run. Is there a faster way to merge columns while keeping the rows intact?
Thanks,
Michael
Technical Details
Message-ID:
<59b779d3.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,fcf8b6c8e9285d5b,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Michael_Dean@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [JS CS3] Merging table columns Message-ID: <59b779d3.-1@webcrossing.la2eafNXanI> Date: Fri, 9 Jan 2009 19:43:22 -0800 Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit