Document (or application) languages is not something you can change via scripting.
I just wanted to have "clean" documents (not having multiples languages registered in the doc when only one is used).
But I can live with that.
Sometimes the dictionnary is driving me nuts.
the dictionnary is driving me nuts since the CC, I just cannot have FRENCH as language for the dictionnary and corrections. It stays in english for whatever reason and i'm about to throw myself out of the window, no kidding ...
What is your code?
Language at Document level not modifiable.
You have to change the text property (story, paragraph or whatever).
To get the language :
set languageToApply to language with vendors 1 whose name is myLanguage
To set the language:
tell stories to set applied language to applyLanguage
[si tu as besoin d'aide en français, contacte-moi en MP)