Extendscript: how to addword to indd user dictionary with case sensitive enabled ?
Hi, I'm working on a javascript program that needs to add non hyphenate words to the user dictionnary.
I'm able to add word to the user dictionary with something like :
var noCesure =[ "~Crescrire"];
var myUserDictionnaries = app.userDictionaries;
for (var i = 0; i < myUserDictionnaries.length; i++)
{
if (myUserDictionnaries.name == "Français")
{
var mySourceUserDictionary = myUserDictionnaries;
break
}
}
if (myUserDictionnaries.name == "Français")
{
mySourceUserDictionary.addWord(noCesure);
}
But it adds only "~crescrire" to the dictionary, without the uppercase C letter.
I' know it is possible to have the uppercase C in the GUI interface but I did not find how to enable the "case sensitive" switch using extendscript.
Any idea ?
Regards, Pierre
