private Object scriptCheck(String strScript, boolean returnContext) {
// from ConsoleTextPane.checkCommand() and applet Jmol.scriptProcessor()
if (strScript.indexOf(")") == 0 || strScript.indexOf("!") == 0) // history
// disabled
strScript = strScript.substring(1);
ScriptContext sc = (new ScriptEvaluator(this)).checkScriptSilent(strScript);
if (returnContext || sc.errorMessage == null)
return sc;
return sc.errorMessage;
}