Using the Script Editor

From Fiji

Jump to: navigation, search
Script Editor (Fiji)
Author Johannes Schindelin, Sumit Dubey (Google Summer of Code 2009)
Maintainer Johannes Schindelin
Source gitweb
Initial release 11 Sep 2008
Latest version 14 Oct 2009
Development status beta


Using the Script Editor

The script editor is an invaluable help when writing scripts in any of Fiji's supported languages.

To get started, start up the script editor:

Script-Editor-new.jpg

Then choose a language from the language menu:

Script-Editor-choose-language.jpg

Now you can write your script. In this tutorial, Jython was chosen as scripting language, but the process is really the same for all scripting languages.

Script-Editor-first-script.jpg

Once you are satisfied with the script, run it. This does not require saving, but of course, you should save your script later, when it works.

Script-Editor-run.jpg

Note that while the script is running, the window title shows the tell-tale (Running).

You can use all of ImageJ's classes right away. Here is an example that shows a dialog where the user can input a number. For details how to write dialogs in the different scripting languages, see Scripting comparisons

Script-Editor-dialog.jpg