Skip to content

Instantly share code, notes, and snippets.

@mutterer
Created January 23, 2019 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mutterer/71c7f743fa94c898b1516b9d2fe363c8 to your computer and use it in GitHub Desktop.
Save mutterer/71c7f743fa94c898b1516b9d2fe363c8 to your computer and use it in GitHub Desktop.
Example code for an ActionBar mini app
// Example code for an ActionBar mini app.
// Save this in Plugins>ActionBar
// Launch it at statup using run("mini app"); in Options>Startup...
// Action Bar description file :mini_app
run("Action Bar","/plugins/ActionBar/mini_app.ijm");
exit;
<main>
// Optional example drag and Drop action
<DnDAction>
file=getArgument();
open(file);
run("8-bit");
</DnDAction>
<line>
// Optional button that shows/hides the main ImageJ toolbar
<button>
label=Toggle IJ
arg=<hide>
// Example button
<button>
label=hello
arg=<macro>
showMessage("hello");
</macro>
</line>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment