🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8407

Re: Changing text to superscript

#8407
From: Dave_Saunders
Date: Thu, 12 Oct 2006 14:09
14 lines
1074 bytes
It's easier to use find/change although it could be done the way you're contemplating. Along these lines:

app.findPreferences = null;
app.changePreferences = null;
myFinds = objTextFrame.search("m2", false, false, undefined);
for (var j = myFinds.length - 1; j >= 0; j--) {
 myFinds[j].characters[-1].position = Position.superscript;
}

or, you could use a character style to do the superscripting:

 myFinds[j].characters[-1].appliedCharacterStyle = mySuperStyle;

Dave
Technical Details
Message-ID: <3bc1f2e5.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing
References: <3bc1f2e5.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,593b5349935074b7
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Changing text to superscript
Message-ID: <3bc1f2e5.0@webcrossing.la2eafNXanI>
Date: Thu, 12 Oct 2006 07:09:17 -0700
References: <3bc1f2e5.-1@webcrossing.la2eafNXanI>
Lines: 15
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