My older InDesign scripts not working when I upgraded to OS Monterey and InDesign 2022. Any help how I can fix these?
Copy link to clipboard
More info please. Can you post a specific script that is not working? How is it not working? Is there an error message? Does nothing happen?
Hi, this is the error message I get.
What is the code?
Hi @tinam94365979, this might seem ridiculous, but could you try adding a ; (semicolon) to the start of the first line of the script file (the path to the script file is shown in your error dialog). Then save the script and try it again. Probably won't work but there are cases where an improperly terminated include file can cause this problem. Worth a try, even if a long shot.
Good suggestion Mark, but I am thinking how was it working in CC2022. Did anything change in CC2023 w.r.t. ExtendScript? I doubt that. Let's see what the OP comes back with. The other thing I would want to test after this has been made to run on 2023, would be to see the behaviour of old code with setting the script engine to 2022 but running the code from 2023.
It would be interesting to see the first lines of the code.
( Adobe Community Expert )
Hi, This worked! Just adding a semicolon before the first first line - thanks you so much! Amazing! I have another script I may need to check. Thank again!
Hi, This worked! Just adding a semicolon before the first first line - thank you so much! Amazing! I have another script I may need to check. Thanks again!