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.
![](https://secure.gravatar.com/avatar/343f31d16b7e8ecc7d41c9cca4a88587?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)