/** @param Sets the directory that scripts are read and executed from. */
  public void setDirectory(String scriptDirectory) {
    scriptPath = scriptDirectory;

    initBody(readScripts());

    wingFooter.setText("Scripts loaded from sketchbook directory.");
  }
  /** Execute a JRuby Script If the script name is not null, this executes it. */
  void executeJRubyScript(String scriptName) {

    if (scriptName != null) {

      ScriptRunner myScript = new ScriptRunner(jrubyPath + "jruby.bat", jrubyPath + "jruby");

      try {
        myScript.run(scriptPath + scriptName);
        System.out.println(myScript.getScriptOutput());
        ((WingFooter) wingFooter).setText(" Script finished.");
      } catch (Exception e) {
        Base.showWarning("JRuby Error", "Could not find the JRuby Compiler\n", null);
        e.printStackTrace();
      }

    } else {
      /* Display the issue */
      wingFooter.setText("Select a script to run.");
    }
  }