[ID-4261037] JavaScript is not working in InDesign 20.2.0
allow me to get a version of 20.1 from the cloud until you fix the problem
1
vote
We tried executing the script shared by you at our end and found that the extension you are using for the script should be ".scpt"(applescript) and not".jsx"(javascript). Please try changing the extension of your script to ".scpt".
—
Adobe InDesign Team