🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1701

Javascript to iterate over every cell in a table

#1701
From: Kevin_Bird
Date: Tue, 27 Jan 2009 11:51
18 lines
1435 bytes
Hello experts

I am importing XML tables into Indesign with attributes that specify the cell style, paragraph style, and character style.

Indesign's rendering behaviour is quite odd as it displays some, but not all of the table correctly! When I click into a cell, the correct cell, paragraph and character styles are selected but the cell-style doesn't seem to be applied properly, especially the cell rules. If I click the cell style, then the rule is displayed.

I need a work-round for this problem while Adobe are looking into it.

Could someone write a Javascript that iterates through a table, cell by cell, finds the cellstyle that is currently applied and then re-applies that style? I'm hoping this will get round my problem.

I currently have no experience with Javascript, so any help would be appreciated.

I am running Indesign 5.0.4

Regards.

--
Kevin
Technical Details
Message-ID: <59b7b20d.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,1dcd16a2120b1ad6,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Kevin_Bird@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Javascript to iterate over every cell in a table
Message-ID: <59b7b20d.-1@webcrossing.la2eafNXanI>
Date: Tue, 27 Jan 2009 03:51:24 -0800
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit