This content has been marked as final. Show 4 replies
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = '(.+)';
app.changeGrepPreferences.changeTo = '
Good minimal snippet, Peter. But you forgot the bold :-D
>app.findGrepPreferences.fontStyle = "Bold";
(insert somewhere before the changeGrep line).
ArcRaj, be aware is that "Bold" is a
i font style name
-- it's not an 'attribute' such as in Word. So it will fail miserably if your bold font style is called something like "Semibold" (Minion), "Semibold Condensed" (Myriad), "Extended Bold #2" (Eurostile) or "65 Bold" (Univers).
Or, if you expect it to find the bold in "Bold Italic" -- it won't work either.
>But you forgot the bold
Bit too minimalistic, eh?
See also ExportHTML.jsx example script from InDesign CS3 Guide Scripts.