Article View: adobe.scripting.indesign
Article #14676Re: JS beginners help
From: Roy_Marshall
Date: Tue, 20 Jan 2004 22:31
Date: Tue, 20 Jan 2004 22:31
24 lines
1348 bytes
1348 bytes
Hi.
If anyone is still following this thread, I have a question...
I have (with your help) now come up with this code which does exactly what i want it to do. HOWEVER somewhere along the line, I managed to leave out the index command, but it still works. Cna someone explain this to me?
Cheers
Roy
myStory = app.selection[0].parentStory;
app.myfindPreferences = null;
app.mychangePreferences = null;
myPounds = myStory.search("�");
myPoundCnt = myPounds.length;
for( i=myPoundCnt-1; i>=0; i-- )
{
myPound = myPounds[i];
myTab = myPound.lines[0].search( "*^t" );
if( myTab.length > 0 )
{
myPound.lines[0].appliedParagraphStyle = "George Kidner body text"
}
}
Technical Details
Message-ID:
<2ccf45cf.43@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!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-20 14:37:53 PST From: Roy_Marshall@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: JS beginners help Message-ID: <2ccf45cf.43@webx.la2eafNXanI> Date: Tue, 20 Jan 2004 14:31:42 -0800 References: <2ccf45cf.-1@webx.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit