Article View: adobe.scripting.indesign
Article #2490Re: Align Text in a column
From: Dave_Saunders
Date: Wed, 17 Dec 2008 18:10
Date: Wed, 17 Dec 2008 18:10
7 lines
1186 bytes
1186 bytes
How does a script know that a paragraph is a heading? Are they only at the top of a column? Are they always at the top of a column -- that is, if it's at the top of a column, it's a heading. If so, then this is fairly easy to script. I think the script would just visit every text column in the selected story and set the top-paragraph to align left or right accordingly. But wait, what is the parent of a text column? If it's the story, then you'd have to compare the index of the text column with the index of the text of the parent text frame. If they're the same, align left; else align right. Dave
Technical Details
Message-ID:
<59b74b5e.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b74b5e.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,6ac6eee4e6e6ec1a X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Align Text in a column Message-ID: <59b74b5e.0@webcrossing.la2eafNXanI> Date: Wed, 17 Dec 2008 10:10:10 -0800 References: <59b74b5e.-1@webcrossing.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit