Article View: adobe.scripting.indesign
Article #14899Re: JS beginners help
From: Roy_Marshall
Date: Thu, 15 Jan 2004 22:57
Date: Thu, 15 Jan 2004 22:57
27 lines
1268 bytes
1268 bytes
I have looked at Daves reference, it does have a section on index-ing.
I have now written this, and surprise surprise, it does not work!
Can someone point me in the right direction?
Cheers
Roy
myText = app.selection[0].parentStory;
app.myfindPreferences = null;
app.mychangePreferences = null;
myCount = myText.search("�").length();
for (i=myCount; i>0; i--)
{
myResult = myText.indexOf("�"[,i]);
myLine = myResult.parentLine();
if (myLine.search("*^t") == true)
{
myLine.search("*^t", false, false, "*t",{appliedParagraphStyle:"right indent"},{appliedParagraphStyle:"no indent"});
}
}
Technical Details
Message-ID:
<2ccf45cf.22@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf45cf.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,613db9f5b5ffc527 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-15 15:07:57 PST From: Roy_Marshall@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: JS beginners help Message-ID: <2ccf45cf.22@webx.la2eafNXanI> Date: Thu, 15 Jan 2004 14:57:59 -0800 References: <2ccf45cf.-1@webx.la2eafNXanI> Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit