Article View: adobe.scripting.indesign
Article #2352Cell formating via scripting
From: Fra_Innocent
Date: Tue, 30 Dec 2008 15:54
Date: Tue, 30 Dec 2008 15:54
7 lines
1459 bytes
1459 bytes
I am trying to do two cell formating tasks via scripting. 1) I have a two column table and I would like to be able to have a cellstyle applied to the top cell of each row based on the content of the bottom cell. That is, if row1cell2 has text "Hey" I would like to have row1cell1 to be given the cellStyle "Hey" for instance. I am a novice to scripting and have tried several methods, but each time I have failed. 2) Second, I would like to be able to adjust the width and height of a row or column in response to the length of the text string. For instance, if the length of my text string "Hey" is 12 pts, could I have the width adjust to 12 pts? Or, in a slightly more complicated example, if I had the word H-e could I tell the script to make the width the length of just H- and ignore everything after the -dash? Any help would be appreciated. Please let me know if I can clarify this at all.
Technical Details
Message-ID:
<59b763a0.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,3f1bc6cad539dc07,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Fra_Innocent@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Cell formating via scripting Message-ID: <59b763a0.-1@webcrossing.la2eafNXanI> Date: Tue, 30 Dec 2008 07:54:34 -0800 Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit