Try `[[NSMenu mainMenu] itemWithTag: tagnum]` using `0` for the Brackets menu and `4999` for the Window menu. Those tags are the same in every language.