public void script() {
		Frame frame = JTFTools.getEnclosingFrame(this);
		FileDialog dialog = new FileDialog(frame, "Input Script", FileDialog.LOAD);
		dialog.setDirectory(System.getProperty("user.dir"));
		dialog.setVisible(true);
		String dirname = dialog.getDirectory();
		String filename = dialog.getFile();
		if (filename != null) {
			try {
				FileReader rd = new FileReader(new File(new File(dirname), filename));
				setInputScript(new BufferedReader(rd));
			} catch (IOException ex) {
				throw new ErrorException(ex);
			}
		}
	}