Article View: adobe.scripting.indesign
Article #15357Re: findPreferences & changePreferences resetting
From: Dave_Saunders
Date: Sat, 29 Nov 2003 14:09
Date: Sat, 29 Nov 2003 14:09
18 lines
1240 bytes
1240 bytes
You can cheat by taking advantage that it's always first on the list:
myDoc = app.documents[0];
app.findPreferences = null;
app.changePreferencs = null;
myDoc.search("u",false,false,"",{},{appledCharacterStyle:myDoc.characterStyles[0]})
Or you can do this:
myDoc = app.documents[0];
app.findPreferences = null;
app.changePreferencs = null;
myCstyle = myDoc.characterStyles.item("No character style");
myDoc.search("u",false,false,"",{},{appledCharacterStyle:myCstyle})
You don't include the square brackets in this case.
Dave
Technical Details
Message-ID:
<2cce7776.3@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cce7776.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c8456477bc7b0c7d X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-29 06:37:38 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: findPreferences & changePreferences resetting Message-ID: <2cce7776.3@webx.la2eafNXanI> Date: Sat, 29 Nov 2003 06:09:16 -0800 References: <2cce7776.-1@webx.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit