Hi Trevor, Thanks for the assistance. I'll use this script if I cannot find a way to make the changes via a FindChangeByList script.
Much appreciated!
Hi kvnob,
Jongware is definatly correct that you don't nead to loop through the languages in your case.
To set all text in a text box to Candian you could use:
var mySelection = app.selection[0],
doc = app.activeDocument;
if (mySelection.constructor.name == "TextFrame") mySelection.texts[0].appliedLanguage = "English: Canadian";
else if (mySelection.hasOwnProperty ("parentTextFrames")) mySelection.parentTextFrames[0].texts[0].appliedLanguage = "English: Canadian";
// To set all character / paragraphs styles to Canadian
doc.paragraphStyles.itemByRange(1, doc.paragraphStyles.length -1).appliedLanguage = "English: Canadian";
doc.characterStyles.itemByRange(1, doc.characterStyles.length -1).appliedLanguage = "English: Canadian";
to do the whole document just change app.selection[0] to app.activeDocument
But you can do the same with the find change dialog as stated.
It is normaly quite easy to find a common denominator to search for that will include everything including white spaces of all types (which by the way are considered black if that's the set text color) try setting under the find format the strikethough gap color to none.
Alternatively you could leave the find format alone and use find grep puting (?s).* in the find what box.