Kota Miura (email@example.com)
2011-07-25 First release
2012-02-19 Additional capability for dropping jython files. Fixed a bug: Drop Script window was listed in the menu “windows” even after closing, but now it disappears as it should be.
2012-11-24 “Auto Run” feature. When the script file is saved in the editor, the script is automatically executed.
- pom updated, parent to be ImageJ, ver 1.0.1 (2016/07/14 10:31)
- pom updated to 1.28 (2013/03/08 16:44)
- spelling mistakes corrected, control on enable/disable code button (w… (2012/11/24 22:30)
- limit dependency only to ij.jar and jython-x.jar (2012/11/24 22:27)
- File status checking completed, auto run feature added (2012/11/24 16:54)
- dependency on apache commons io deleted (2012/11/24 16:53)
- another update, .gitignore (2012/11/24 00:11)
- .gitignore updates (2012/11/24 00:10)
- jython runner revisited, to redirect stdout and errors to IJ.log. sta… (2012/11/24 00:09)
- pom.xml added (2012/11/23 20:13)
Download Drop_Script-1.0.x.jar from the link below, and place it under the plugin folder of Fiji or ImageJ.
In case of ImageJ, you need Jython interpreter (Fiji already comes with the Jython interpreter so you don't need to install it). To get the interpreter, you need to run a test jython script (whatever you could just write, something like “print 'test'”) and “evaluate python” in ImageJ. Automatic Jython installation then starts.
If you are using Fiji:
Instead of installing manually, you could also set automatic download & updates by registering our update site. <code> http://cmci.embl.de/ijplugins </code> For managing update site, see this page.
ImageJ ver 1.44h or higher (ImageJ, upgrade page).
The aim of this plugin is to synchronize the script editing using external editors such as Notepad++ (windows only), Coteditor (osx) or Vim (universal) and quickly run the script in ImageJ or Fiji. Start the plugin, drag and drop the script file to the plugin window, and edit the file in the editor of your choice. Then clicking the “Run” button in the Drop-Script window will run the script.
DropScript plugin only keeps the path to the dropped files and accesses the code in the saved file every time when “Run” is clicked. For this reason, you could edit the code in external editor while the macro/script is keep on being listed in the DropScript drop-down menu.
To be more efficient: Turning on “Auto Run” option will let you automatically trigger to run the script as soon as the script is “Save”ed in the editor. With “auto-run”, the Drop script plugin continuously monitor changes in the script file, and automatically executes the script in ImageJ or Fiji whenever any change is detected.
Only with Jython script, running a code with infinit loop will freeze ImageJ. This is because outputs from Jython interpretor is currently kept in a buffer (ByteArrayOutputStream), converted to a String and then printed in the log window at once (IJ.log(String)). Infinite loop causes the buffer to never reaching the log window.
Syntax Highlighter for ImageJ Macro is available in following editors.