Question
appliedLanguage question
I'm trying to set an applied language to a paragraph style.
When I use this app.activeDocument.allParagraphStyles[20].appliedLanguage = app.languagesWithVendors.itemByID(81); on it's own the code works fine. When I put it into a function, as shown below, it fails.
Please can someone help and point me in the right direction.
Thank you.
function processThis() {
for (ii=1; ii<paraStylesToProcess.length; ii++) {
//alert(paraStylesToProcess[ii])
listIndex = paraStylesToProcess[ii];
app.activeDocument.allParagraphStyles[listIndex].appliedLanguage = app.languagesWithVendors.itemByID(81);
}
w.close();
}