Skip to content, Skip to search



172 bytes added, 12:18, 20 March 2017
Adding scripts to the Plugins menu: clean up style
= Adding scripts to the Plugins menu =
For the script to appear in the Plugin ImageJ menus, the following must apply:
| text = ".txt" is not a supported script extension
| width = 30%
| float = right
# The script file is saved in the <code></code> directory (or a subdirectory thereof).
# The script name ends in a supported script extension. For example, #* ".js" for javascript, #* ".py" for jython, #* ".rb" for jruby, #* ".clj" for clojure, and #* ".bs" for beanshell script. 'NOTE:' ".txt" is not a supported script language.# The script name contains a '_' (underscore) character, e.g. "MyScript_.ijm". {{Fiji | Replace <code></code> with <code></code>}}
The extension will be stripped and any underscores will be turned into spaces before the script is added to the menus.
Scripts in the top-level "<code>" </code> directory will appear at the bottom of the ''Plugins '' menu. Scripts can be placed in other menus by by nesting subdirectories, for example placing a script in the "<code>" </code> directory will add it to the ''File '' menu.
If you aren't able to find your script, you can always run the [[Using_the_Command_Launcher|Command Finder]] to verify its location (or absence).