Login  Register

Within my macro, how do I test if a plugin is installed before calling it?

Posted by Alan Hewat on Aug 07, 2009; 11:33am
URL: http://imagej.273.s1.nabble.com/Within-my-macro-how-do-I-test-if-a-plugin-is-installed-before-calling-it-tp3691533.html

I am writing a macro to capture images from a number of different cameras,
correct them for lens distortion, and stitch them together to form a mosaic.

I would like to test if a plugin is installed before calling it with
run("PluginName",...) If I call it without testing if it exists, and it is
not installed I get an ImageJ alert "Unrecognized command: PluginName".

Thanks. Alan.