// version checking macro
requires("1.37q");
notes = File.openUrlAsString("/ij/notes.html");
if (notes=="")
exit("Unable to open ImageJ \"News\" (http://rsb.info.nih.gov/ij/notes.html)");
vl = substring(notes, indexOf(notes,"
"),indexOf(notes,"
"));
version = substring(vl,indexOf(vl," ")+1,indexOf(vl,","));
if (getVersion()>version) {
showMessageWithCancel("Version Checker",
"Your Version : "+getVersion()+"\nCurrent Version : " + version
+ "\nClick 'OK' to visit IJ's website");
run("ImageJ Web Site...");
} else {
showMessage("Version Checker",
"You are running the latest version of ImageJ ("+version+")");
}