[Need help] removing Menu item
Hello!
Iam working on a little Menu for InDesign to make life easier for my colleagues.
Somehow i did not pay attention for a second and added a new Menue item that does not seem to have a name.

I use this code to remove old menu entrys / clear the one iam working one before reloading it:
main2();
function main2(){
try{
app.scriptMenuActions.item("Skripte").remove();
}
catch(myException){}
try{
app.menus.item("$ID/Main").submenus.item("Skripte").remove();
}catch(e){}
}
The problem is that it does not seem to work if the Menu item does not have a name by itself.. any idea on this?
Maybe there is a way to do it by "ID"? Or am i just too blind to see the obvious?
Thanks in advance!
