Scripts

Here's where you can play with commands and see what can be done. I've registered the following variables already, the CommandManager as cm, the mainMenu, fileMenu and viewMenu. So to add a command to the fileMenu you can simple call fileMenu.add(..) with an appropriate command instance.

Examples (Drag and Drop)
bc = new BeepCommand();
f = bc.addNewFace("default");
f.setText("Beep!");
fileMenu.add(bc);

bc.putHint(BeepCommand.BEEP_COUNT, new Integer(2));
bc.execute();

cmd = cm.getCommand("welcome-page.selector");
cmd.execute();