Thank for your answer but my problem is not only for this script, it's for all the jsx scripts.
Also, the problem come from (my) InDesign or from my computer and don't have a beginning of solution.
Just give it a try and load one of your jsx scripts to the ESTK and execute the script from there.
How to do that:
1. Right click on the particular script in the Scripts Panel and chose "Edit Script"
=> The ESTK (ExtendScript Toolkit) app will start and is showing the script as lines of code
2.1 Assign your specific version of InDesign as the target for ESTK:
2.2 If your specific InDesign version is not running you'll get a red broken chain symbol.
Click it to run InDesign. The symbol will change to green.
Just open an InDesign file and:
3. Then hit cmd+r in the ESTK for running the script on the target (your specified InDesign version)
Would that work for you?
If not, are there any alert messages?
Do you have the most recent version of Java installed on yur computer? Recent versions of the Mac OS do not have it installed by default.