Article View: adobe.scripting.indesign
Article #840Re: [CS3 JS] Question about collecting overridden style settings
From: Peter Kahrel
Date: Thu, 05 Mar 2009 15:01
Date: Thu, 05 Mar 2009 15:01
5 lines
1111 bytes
1111 bytes
You could get the properties of the textStyleRange and those of the containing paragraph by using toResource(). You then have two objects that can be compared fairly easily. Collect the differences and set those to the new paragraph style. If you store these settings (in a variable, array, object -- whatever), you can use them to check whether another textStyleRange differs and decide not to create a new char. style but use one that already exists with those same settings. Peter
Technical Details
Message-ID:
<59b81cad.5@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b81cad.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,ae48fa806cc37e1a X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Peter Kahrel" <kahrel@kahrel.plus.com> Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [CS3 JS] Question about collecting overridden style settings Message-ID: <59b81cad.5@webcrossing.la2eafNXanI> Date: Thu, 5 Mar 2009 07:01:43 -0800 References: <59b81cad.-1@webcrossing.la2eafNXanI> Lines: 11 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit