public void menuAction(String cmd) {
		IOConsole console = myConsole;
		if (myMenuBar != null) {
			console = myMenuBar.getConsole();
			if (console == null) console = myConsole;
		}
		if (console == null) return;
		if (cmd.equals("Quit")) {
			exit();
		} else if (cmd.equals("Print")) {
			Frame frame = JTFTools.getEnclosingFrame(this);
			if (frame == null) return;
			PrintJob pj = frame.getToolkit().getPrintJob(frame, myTitle, null);
			if (pj == null) return;
			frame.printAll(pj.getGraphics());
			pj.end();
		} else if (cmd.equals("Cut")) {
			console.cut();
		} else if (cmd.equals("Copy")) {
			console.copy();
		} else if (cmd.equals("Paste")) {
			console.paste();
		} else if (cmd.equals("Select All")) {
			console.selectAll();
		} else if (cmd.equals("Save")) {
			console.save();
		} else if (cmd.equals("Save As")) {
			console.saveAs();
		} else if (cmd.equals("Script")) {
			console.script();
		} else if (cmd.equals("Print Console")) {
			console.printConsole();
		}
	}