Article View: adobe.scripting.indesign
Article #9543[JS CS2] How can I select a piece text and change a property
From: Erik_Bruinsma
Date: Thu, 17 Aug 2006 13:24
Date: Thu, 17 Aug 2006 13:24
16 lines
1445 bytes
1445 bytes
The situation is this: I've got a text, wich I assign to a text frame with the following command: ...texts[0].contents = "I want this next word in bold blurf bla"; my question how can I set, for instance, the 'appliedCharacterStyle' property only for the word 'blurf'. I can create an InDesign tagged text file that gives me the required result. But since this type of action is going to be done within a loop that often loops 1000+ times and the creating of the file needs a 2 second delay. I also know how to determine these differences within a text by checking the textStyleRanges, but I cant find a way to create these ranges myself. What I'm hoping for is a method to parse the tagged text directly into a textframe, instead of placing it from a file. Can anyone please tell me how to do this, or point me in the right direction. Erik Bruinsma
Technical Details
Message-ID:
<3bc14b71.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,a75ff663f7b720a3,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Erik_Bruinsma@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: [JS CS2] How can I select a piece text and change a property Message-ID: <3bc14b71.-1@webcrossing.la2eafNXanI> Date: Thu, 17 Aug 2006 06:24:43 -0700 Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing