Article View: adobe.scripting.indesign
Article #16075"sticky" overrides
From: Aaron_Nelson
Date: Tue, 14 Oct 2003 21:29
Date: Tue, 14 Oct 2003 21:29
1 lines
1672 bytes
1672 bytes
I'm writing a script to format tables for a catalog, and having some difficulty. I need to apply formatting after converting a block of text to a table. The reason for this is that some columns of a table represent part numbers and prices, and they are formatted differently. Initially I used a for each loop to change the text cell by cell, but on larger tables (20+ columns) this is a cumbersome process. It was suggested to me (thank you, Chris) that instead of changing the formatting on a cell-by-cell basis, I create and apply a "blank" character style cell by cell, then subsequently specify the character style attributes. The problem is that changing the FontStyle and HorizontalScale does not affect the pertinent text. It appears as though Indy is treating those properties as local formatting, and won't change them within the table. If I manually apply the style after running the script, the text will format as I specified, but I can't seem to find a way to force it to apply the character style changes at runtime.
Technical Details
Message-ID:
<2ccddc8f.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,a5c0762284140260,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-10-14 14:38:03 PST From: Aaron_Nelson@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: "sticky" overrides Message-ID: <2ccddc8f.-1@webx.la2eafNXanI> Date: Tue, 14 Oct 2003 14:29:18 -0700 Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit