"<http://rsb.info.nih.gov/ij/macros/toolsets/>."
);
return;
} else if (label.endsWith("*")) {
// load from ij.jar
MacroInstaller mi = new MacroInstaller();
label = label.substring(0, label.length()-1) + ".txt";
path = "/macros/"+label;
if (IJ.shiftKeyDown()) {
String macros = mi.openFromIJJar(path);
Editor ed = new Editor();
ed.setSize(350, 300);
ed.create(label, macros);
IJ.setKeyUp(KeyEvent.VK_SHIFT);
} else
mi.installFromIJJar(path);
} else {
// load from ImageJ/macros/toolsets
if (label.equals("Startup Macros"))
path = IJ.getDirectory("macros")+"StartupMacros.txt";
else if (label.endsWith(" "))
path = IJ.getDirectory("macros")+"toolsets/"+label.substring(0, label.length()-1)+".ijm";
else
path = IJ.getDirectory("macros")+"toolsets/"+label+".txt";
try {
if (IJ.shiftKeyDown()) {
IJ.open(path);
IJ.setKeyUp(KeyEvent.VK_SHIFT);
} else
new MacroInstaller().run(path);
}
catch(Exception ex) {}
}
}
}