Article View: adobe.scripting.indesign
Article #9392Re: Formatting Fonts in TextFrames with JavaScript
From: Dave_Saunders
Date: Wed, 23 Aug 2006 02:03
Date: Wed, 23 Aug 2006 02:03
7 lines
954 bytes
954 bytes
The trick with formatting text, when you have control of the situation as you seem to have, is to design a template that has all the styles you're going to need (that's paragraph styles, character styles and object styles) and then applying them by script is easy: myTextFrame.paragraphs[0].appliedParagraphStyle = "H1" for example. Dave
Technical Details
Message-ID:
<3bc155d2.5@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc155d2.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,17d528cc5b8e0e0c X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: Formatting Fonts in TextFrames with JavaScript Message-ID: <3bc155d2.5@webcrossing.la2eafNXanI> Date: Tue, 22 Aug 2006 19:03:43 -0700 References: <3bc155d2.-1@webcrossing.la2eafNXanI> Lines: 10 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