Skip to content, Skip to search

Changes

Scripting

2 bytes added, 07:56, 20 July 2018
Adding JAR-packaged scripts to the menu: Small fixes
Commands added to the menu in the described way can be called from other scripts. Use the [[macro recorder]] to get the required code for doing so.
== Adding JarJAR-packaged scripts to the menu ==
Scripts can be packaged in a JAR file for easier distribution to your colleagues and via [Update ManagerSites]. For this purpose, [https://github.com/imagej/example-script-collection example-script-collection] can be used as a the template Maven project.
Inside the example-script-collection jar, the scripts are in <code>./resources/scripts.</code> and therefore get added to the menu when the jar JAR is on the classpath (i.e. in <code>./plugins/</code> or <code>./jars/</code>).
ImageJ2 (and therefore Fiji) looks for scripts in subfolders of <code>./scripts/</code> as it is already described in the previous section, and for jars in <code>./jars/</code>. ImageJ1 recognizes plugins and scripts in <code>./plugins/</code>
Emailconfirmed
25
edits