Article View: adobe.scripting.indesign
Article #8997Re: Horizontal alignment of contents in cells (row)
From: Dave_Saunders
Date: Tue, 19 Sep 2006 17:38
Date: Tue, 19 Sep 2006 17:38
13 lines
1459 bytes
1459 bytes
Cells don't have a justification property (see page 613 of the CS2 Scripting Reference). It's the text in the cell that has that propery. So: It looks to me that you're processing the whole table, so, you could write: myTable.cells.everyItem().texts[0].justification = Justification.rightAlign; And something similar for the other properties in your loop. You don't need the loop when you have everyItem() at your disposal. Note that wherever you picked up the enumeration information for Justification it is erroneous there. Of the 42 places it appears, it is right 19 times and wrong 23 times, so you have a slightly better than 50/50 chance of getting it wrong. There was some kind of transcription error when the orginal material was converted from the VB equivalent information for the 23 that actually have the VB syntax. Dave
Technical Details
Message-ID:
<3bc1b144.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc1b144.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,50ba3bb4353cb621 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: Horizontal alignment of contents in cells (row) Message-ID: <3bc1b144.0@webcrossing.la2eafNXanI> Date: Tue, 19 Sep 2006 10:38:04 -0700 References: <3bc1b144.-1@webcrossing.la2eafNXanI> Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing