private void scriptOpen(final String command) {
		String path = "";
		String name;
		int i;
		int tabIndex = 0;
		String title;
		final int startIndex = command.indexOf("{");
		final int endIndex = command.lastIndexOf("}");

		if (startIndex == -1 || endIndex == -1 || startIndex == endIndex) {
			System.out.println("invalid command:");
			System.out.println(command);
			return;// invalid command, return
		}
		path = command.substring(startIndex + 1, endIndex);

		final File file = new File(path);
		name = file.getName();
		this.addTab(name);

		for (i = 0; i < this.tabbedPane.getTabCount(); i++) {
			title = this.tabbedPane.getTitleAt(i);
			if (title.equals(name)) {
				tabIndex = i;
			}
			else if (title.matches(name + "\\(\\d\\)")) {
				tabIndex = i;
			}
			else if (title.matches(name + "\\(\\d\\d\\)")) {
				tabIndex = i;
			}
			else if (title.matches(name + "\\(\\d\\d\\d\\)")) {
				tabIndex = i;
			}
		}

		final Component tabComponent = this.tabbedPane.getComponentAt(tabIndex);
		this.loadFile(((ScrollPane) tabComponent).getTextArea(), file);
	}