Accessing OS X application menu in plugins.window.getMenuBar

Hi

How can I access the menus in the OS X application menu with the plugins.window.getMenuBar()? As plugins.window.getMenuBar().getMenu(0) returns File, I don’t know how to get the application menu.

Regards, Robert