Custom menus created by script stay after relaunching InDesign
There's a bug in InDesign 2022 where custom menus created by a script stay after relaunching InDesign.
How to reproduce:
-Run this AppleScript script which will create a menu titled Custom Menu:
tell application "Adobe InDesign 2022"
tell menu "$ID/Main" to make submenu with properties {title:"Custom Menu"}
end tell
-Relaunch InDesign
The menu Custom Menu will still be there. While it should NOT be there unless explicitely created by a script again.
The only way to remove it is to run a separate script that specifically removes the menu.
It's a big problem for third-party software: for example, where users remove a startup script that created the menu - but the menu doesn't go away.