public void actionPerformed(final ActionEvent evt) {
final ScriptDefinition def = model.getDefinition(table.getSelectedRow());
setVisible(false);
bot.getScriptHandler().removeScriptListener(ScriptSelector.this);
dispose();
Script script = null;
try {
script = def.source.load(def);
} catch (final Exception e) {
log.severe(e.getMessage());
}