private void insertScript() {
		File f = new File("scripts/" + scriptName + ".script");
		if (f.exists() && f.isFile()) {
			try {
				Reader reader = new BufferedReader(new FileReader(f));

				StringBuilder file = new StringBuilder();
				char[] charbuf = new char[1024];
				int len;
				while ((len = reader.read(charbuf)) != -1) {
					file.append(charbuf, 0, len);
				}
				codeArea.setText(file.toString());

				reader.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}