hi all, i work with CS5 Indesign and i'd know if there's a way or GREP expression to find text only in footnotes not in the main document. Open the find/replace window you can search in main document including footnotes but not the reverse.
Thank you
Then you are good to go. Just make sure to specify this style in the Find Formatting box in the Find/Change dialog (you might have to press the "More Options" button to see this).
"Footnotes" were added in CS2, and so was the option to exclude them from searching, but FIVE FULL versions later nothing -- nothing at all -- has changed since then. Somehow that led me to think I was the only one using them, ever. Glad to see I'm not!
yes thank you this way is useful and do you also know the javascript command that do what i asked? i have this script and i want add the filter of style in the search.
thank you very much again
//Clear the find/change preferences.
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
//Set the find options.
app.findChangeGrepOptions.includeFootnotes = true;
app.findChangeGrepOptions.includeHiddenLayers = false;
app.findChangeGrepOptions.includeLockedLayersForFind = false;
app.findChangeGrepOptions.includeLockedStoriesForFind = false;
app.findChangeGrepOptions.includeMasterPages = false;
Your lucky day, indeed I do know. Check out
http://jongware.mit.edu/idcsjs5.5/pc_FindGrepPreference.html#appliedPa ragraphStyle
If you want to you can join the crusade http://forums.adobe.com/message/4273963#4273963
It's the feature request forum - that seems to go largely ignored.
But the more people the better I suppose.
Losing all faith in Adobe's interest in upgrading this feature.
yes i read the javadoc for the methods but i am not very strong in javascript but i would try, my style for the footnotes is called "Footnotes Style" in order to set the option for the search in the script the command is
app.findGrepPreferences.appliedParagraphStyle = "Footnotes Style";
or
app.findGrepPreferences = appliedParagraphStyle.basedOn("Footnotes Style");
Thank you for your answers
hi, i tried the option but when i run the script this is the error "Invalid value for property set 'appliedParagraphStyle' String was expected, or ParagraphStyle NothingEnum enumerator but received "Footnotes Style""
app.findGrepPreferences.appliedParagraphStyle = "Footnotes Style";
in this command "Footnotes Style" is not a string?!? what's wrong?
Yeah, on occasion I get the same thing with commands that *should* work that way. Try forcing the *exact* pointer to a style down its throat -- sometimes you have to be quite explicit.
app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyles.item("Footnotes Style");
By the way: this will not work if your 'notes style is inside a group. If it is, you have to drill down to the exact position using "paragraphStyleGroups" items.
North America
Europe, Middle East and Africa
Asia Pacific