Check if a plugin is available

Dear ImageJ users,

I would like to assert, that a specific plugin is available in my ImageJ macro, i.e.:
I want to assert that the Plugin Coloc2 (I think it’s in Fiji) is available.

Can I assert that from within the ImageJ macro language?

Best regards,
Stephan

Assert is not available in ImageJ macro. But you can do this:

http://imagej.1557.x6.nabble.com/Within-my-macro-how-do-I-test-if-a-plugin-is-installed-before-calling-it-td3691533.html

or call a different scripting language with eval inside the macro code:

http://imagej.net/developer/macro/functions.html#eval

1 Like