Created
January 23, 2019 08:42
-
-
Save mutterer/71c7f743fa94c898b1516b9d2fe363c8 to your computer and use it in GitHub Desktop.
Example code for an ActionBar mini app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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