Article View: adobe.scripting.indesign
Article #9796Re: Variation of Dave's Script in "How To Begin Scripting"
From: Fred_Goldman
Date: Tue, 18 Jul 2006 03:16
Date: Tue, 18 Jul 2006 03:16
10 lines
1248 bytes
1248 bytes
Eureka! We're in business!
I was even able to do two lines myself <g>.
I had to apply the paragraph style and at the same time override the character style that was applied to it. I couldn't find out how to do it in one line (is it possible?), so I first applied [None] character style then applied the paragraph style with clearing all local formatting:
myOriginalStyle = app.activeDocument.characterStyles.item("[None]");
myFinalStyle = app.activeDocument.paragraphStyles.item("Paragraph Style 1");
myAnchStory.texts[0].applyStyle( myOriginalStyle );
myAnchStory.texts[0].applyStyle( myFinalStyle,true );
Technical Details
Message-ID:
<3bc0ed94.13@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc0ed94.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c3f000112de732ba X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Fred_Goldman@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: Variation of Dave's Script in "How To Begin Scripting" Message-ID: <3bc0ed94.13@webcrossing.la2eafNXanI> Date: Mon, 17 Jul 2006 20:16:33 -0700 References: <3bc0ed94.-1@webcrossing.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ispa.de!news.ecp.fr!news.stben.net!webcrossing