Article View: adobe.scripting.indesign
Article #8409Re: Changing text to superscript
From: Dave_Saunders
Date: Thu, 12 Oct 2006 14:35
Date: Thu, 12 Oct 2006 14:35
15 lines
1170 bytes
1170 bytes
That is the find/change method. It's called search in JavaScripting.
You could do it this way:
app.findPreferences = null;
app.changePreferences = null;
app.changePreferences.position = Position.superscript;
myFinds = objTextFrame.search("m2", false, false, undefined);
app.findPreferences.position = Position.superscript;
app.changePreferences.position = Position.normal;
myFinds = objTextFrame.search("m", false, false, undefined);
But this makes the assumption you don't have any other "m" characters superscripted for some other reason.
Dave
Technical Details
Message-ID:
<3bc1f2e5.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<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.2@webcrossing.la2eafNXanI> Date: Thu, 12 Oct 2006 07:35:46 -0700 References: <3bc1f2e5.-1@webcrossing.la2eafNXanI> Lines: 16 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!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing