User Tools

Site Tools


downloads:drop_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
downloads:drop_script [2012/05/22 11:20] kotadownloads:drop_script [2016/07/14 11:12] (current) – [Installation] kota
Line 1: Line 1:
 ====== Drop Script ====== ====== Drop Script ======
 ~~NOTOC~~ ~~NOTOC~~
-[{{ :documents:downloadimg:dropscript.png?300|Drop Script Interface in ImageJ}}] +[{{ :documents:dropscript2012.png?400|Drop Script Interface in ImageJ}}]
 ==== Author ==== ==== Author ====
-Kota Miura\\  +Kota Miura (miura@cmci.info)\\ 
-Centre for Molecular and Cellualr Imaging (CMCI), EMBL Heidelberg\\  +
-miura at embl dot de Tel: +49 6221 387 404\\ \\ +
 ==== History ==== ==== History ====
-2011-07-25  +2011-07-25   First release\\ 
-  * 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-02-19  +2012-11-24   "Auto Run" feature. When the script file is saved in the editor, the script is automatically executed. \\ 
-  * 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.+{{rss>https://github.com/cmci/IJ_DropMacro/commits/master.atom 10 date 24h}} 
 === Source === === Source ===
 [[https://github.com/cmci/IJ_DropMacro]]\\ \\  [[https://github.com/cmci/IJ_DropMacro]]\\ \\ 
Line 18: Line 16:
 ==== Installation ==== ==== Installation ====
  
-**for IJ macro and Javascripts:**\\ +Download Drop_Script-1.0.x.jar from the link below, and place it under the plugin folder of Fiji or ImageJ
-Download [[http://cmci.embl.de/dls/Drop_Macro.jar|Drop_Macro.jar]] and place it in the ImageJ plugin folder.\\ \\ +
  
-**for IJ macro, Javascripts and Jython:**\\ +[[https://github.com/cmci/IJ_DropMacro/releases/download/v1.0.1/Drop_Script-1.0.1.jar|Jar file]]
-2012/02/19 -- A new version available with capability for Jyson scripts (files with .py ending)Since this new version requires Fiji or a classpath set to jython.jar, I leave the old version with only IJ macro and Javascript as it is aboveThe new version could be downloaded from the link below+
  
-[https://github.com/cmci/IJ_DropMacro]+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: **\\+<del>**If you are using Fiji: **\\
 Instead of installing manually, you could also set automatic download & updates by registering our update site.  Instead of installing manually, you could also set automatic download & updates by registering our update site. 
 <code> <code>
 http://cmci.embl.de/ijplugins http://cmci.embl.de/ijplugins
 </code> </code>
-For managing update site, [[http://fiji.sc/wiki/index.php/How_to_follow_a_3rd_party_update_site|see this page]]. +For managing update site, [[http://fiji.sc/wiki/index.php/How_to_follow_a_3rd_party_update_site|see this page]].</del>
 ==== Requires ==== ==== Requires ====
 ImageJ ver 1.44h or higher ([[http://rsb.info.nih.gov/ij/upgrade/|ImageJ, upgrade page]]).\\ \\  ImageJ ver 1.44h or higher ([[http://rsb.info.nih.gov/ij/upgrade/|ImageJ, upgrade page]]).\\ \\ 
 ==== Description ==== ==== Description ====
-Opens a small window that allows you to drag and drop ImageJ macro and/or ImageJ Javascript files. You could load as many files as you want by simply drag-and-dropping files diretly from filesystem brawser such as "windows explorer" or "Finder (osx)". Dropped files will all be listed in the drop-down menu. Selecting one macro/scrip and clicking "Run" button will run the macro/script. "Clear" button will clear the list of dropped files. "Code" button will open the code, and let you edit the file.  
  
-The reason I made this plugin is to edit macro/scripts using external editors such as Notepad++ or Vim. Since DropScript pluing accesses the code in the saved file everytime "Run" is clicked, you could edit the code in external editor and save while the macro/script is keep on being listed in the DropScript drop-down menu. +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 FijiStart 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.    
 + 
 +This plugin will appear under menu tree Plugins > EMBLtools > Drop Script. The plugin opens a small window titled "Drop Script" where you drag and drop ImageJ macro (.ijm), Javascript (.js) and Jython (.py) script files. You could drag & drop as many files as you want directly from filesystem browser such as "Windows explorer" or "Finder (osx)".  
 + 
 +Dropped files will be appended as a list to the drop-down menu. "Clear" button will clear the list. "Code" button will open the code (Only for Javascript and ImageJ macro) in ImageJ macro editor.  
 + 
 +** known bugs ** 
 + 
 +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 ([[http://docs.oracle.com/javase/1.5.0/docs/api/java/io/ByteArrayOutputStream.html|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.  
 + 
 +  
 +==== Additional Information ==== 
 + 
 +Syntax Highlighter for ImageJ Macro is available in following editors.  
 + 
 +  * Vim 
 +    * [[http://cmci.embl.de/downloads/vim_syntaxhighlighter|Syntax-Highlighter for ImageJ Macro]] 
 +  * CotEditor 
 +    * [[https://gist.github.com/1334472|Syntax-Highlighter for ImageJ Macro]] 
 +  * Notepad++ 
 +    * [[http://cmci.embl.de/downloads/npp_syntaxhighlighter|Syntax-Highlighter for ImageJ Macro]]
downloads/drop_script.1337685652.txt.gz · Last modified: 2016/05/24 12:46 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki