Article View: adobe.scripting.indesign
Article #2004Re: [JS CS3] "Working on characters arrays" slowness matter
From: xbytor
Date: Mon, 12 Jan 2009 23:48
Date: Mon, 12 Jan 2009 23:48
10 lines
929 bytes
929 bytes
Just at the JS level, this should help:
var elements = app.selection[0].texts[0].characters.everyItem().getElements();
var max = elements.length;
for(var i = 0; i < max; i++) {
elements[i].baselineShift = posMe();
}
-X
Technical Details
Message-ID:
<3B2751FF309FB9525953EF674921E3B9@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b77f37.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,a4bf1129f6ae00ec X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: xbytor@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [JS CS3] "Working on characters arrays" slowness matter Message-ID: <3B2751FF309FB9525953EF674921E3B9@in.webcrossing.la2eafNXanI> Date: Mon, 12 Jan 2009 15:48:19 -0800 References: <59b77f37.-1@webcrossing.la2eafNXanI> Lines: 11 User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit