Article View: adobe.scripting.indesign
Article #14819Re: JS beginners help
From: Roy_Marshall
Date: Tue, 13 Jan 2004 13:04
Date: Tue, 13 Jan 2004 13:04
21 lines
1314 bytes
1314 bytes
I have got together this quick script
myDocument = app.activeDocument
with (myDocument){
myPage = pages.item(0);
with (myPage){
myTextFrame = textFrames.item(0);
with (myTextFrame){
myStory = myTextFrame.paragraphs.item();
app.findPreferences = null;
app.changePreferences = null;
myStory.search("roy", false, false, "ROY");
}
}
}
The script only seraches the first paragraph. I have tried various things to make it act on the whole story with no success. Also, what are the flase comments relating to in the search command? I have looked through the scripting guide, and found not much to help me.
Thankyou in anticipation!
Roy
Technical Details
Message-ID:
<2ccf45cf.7@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-7-bit X-Google-Thread: f939a,613db9f5b5ffc527 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-13 05:07:41 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.7@webx.la2eafNXanI> Date: Tue, 13 Jan 2004 05:04:34 -0800 References: <2ccf45cf.-1@webx.la2eafNXanI> Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit