1 person found this helpful
You are looking for app.quit(): InDesign ExtendScript API (12.0)
No surprise there, but I never have used it and so I find myself wondering how it's going to work. After all, a script runs inside of InDesign. So what does happen when it issues a "quit" command ... and more code follows that line?
Thank you! That's exactly what I was looking for!
[Jongware]-GfBROo A long long time ago there was that indesign weird bug that could be solved by quitting indesign and restarting it manually. I naively thought at the time that a script could both quit and relaunch indesign. Unsurprisingly the script couldn't fix the issue teh same way as InDesign seemed to be somehow kept alive (or in the limbs) if the quit call was made prior to further script commands.
Confusing to say the least. I meant it would make sense the script stops at the quit command line but in the script the script was considered to the end. So maybe the close call is delayed until a script actually ends ?