function addCommand() {

        var menu                    = Menus.getMenu(Menus.AppMenuBar.FILE_MENU),
            INSTALL_COMMAND_SCRIPT  = "file.installCommandScript";

        CommandManager.register(Strings.CMD_LAUNCH_SCRIPT_MAC, INSTALL_COMMAND_SCRIPT, handleInstallCommand);
        menu.addMenuDivider();
        menu.addMenuItem(INSTALL_COMMAND_SCRIPT);
    }
function addCommand() {

        var menu                    = Menus.getMenu(Menus.AppMenuBar.FILE_MENU),
            INSTALL_COMMAND_SCRIPT  = "file.installCommandScript";

        CommandManager.register(Strings.CMD_LAUNCH_SCRIPT_MAC, INSTALL_COMMAND_SCRIPT, handleInstallCommand);
        menu.addMenuDivider();
        menu.addMenuItem(INSTALL_COMMAND_SCRIPT);
    }
function addCommand ( ) { var menu = Menus . getMenu ( Menus . AppMenuBar . FILE_MENU ) , INSTALL_COMMAND_SCRIPT = "file.installCommandScript" ; CommandManager . register ( Strings . CMD_LAUNCH_SCRIPT_MAC , INSTALL_COMMAND_SCRIPT , handleInstallCommand ) ; menu . addMenuDivider ( ) ; menu . addMenuItem ( INSTALL_COMMAND_SCRIPT ) ; }
Register the command and add the menu to file menu.
Register the command and add the menu to file menu .
Adds a command to the command menu