<div dir="ltr"><div><div><div>Hi Curtis<br><br></div>Thank you for your last update on the scripting. I got a chance to play around with it and have been running some simple Jython scripts. <br><br>Now I am trying to understand how one should be accessing ImageJ2 functionality from the scripts. In ImageJ1 I use the static functions in the IJ class, IJ.run, IJ.openImage etc.<br>
<br></div>So far in ImageJ2 I have been writing java applications that start by instantiating an ImageJ app and then use that to access services and run commands. Basically following the tutorials. <br><br></div><div>So how are things intended to work in a script?? Is there a simpler api somewhere like the IJ API?? Or does one still need to use the service APIs in a script??<br>
<br></div><div>Thanks<br><br>Brian<br></div><div><br></div><br><div><div><div><div><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 19, 2013 at 6:17 PM, Curtis Rueden <span dir="ltr"><<a href="mailto:ctrueden@wisc.edu" target="_blank">ctrueden@wisc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Brian,<div class=""><div><br></div><div><div>> You mentioned that it is getting closer with the merger of a</div>
<div>> 'script-parameters' branch.</div></div><div><br></div></div><div><div>Yep, the current master branch supports running parameterized scripts in any supported scripting language. But what doesn't work yet is running them from the Script Editor. That work is pending on the 'script-editor-cleanup' branch, which unfortunately I doubt will be finished before year's end.</div>
</div><div><br></div><div><div class=""><div>> Are there any particular classes or example code that would be useful</div><div>> to look at right now??</div><div><br></div></div><div>No real examples yet, sorry. The closest thing ATM is the unit tests:</div>
<div><br></div><div>Beanshell: <a href="http://git.io/ozG67g" target="_blank">http://git.io/ozG67g</a></div><div>Clojure: <a href="http://git.io/XXjbwg" target="_blank">http://git.io/XXjbwg</a></div><div>JavaScript: <a href="http://git.io/YNMdMQ" target="_blank">http://git.io/YNMdMQ</a></div>
<div>JRuby: <a href="http://git.io/S72JqQ" target="_blank">http://git.io/S72JqQ</a> (but broken, unfortunately)</div><div>Jython: <a href="http://git.io/wa4SQw" target="_blank">http://git.io/wa4SQw</a></div><div class="">
<div><br></div><div>> Or would it be best to wait a few weeks for more updates. </div>
</div></div><div><br></div><div>Well, in a few more weeks, parameterized scripts will be working from the Script Editor, and we will also have a tutorial in imagej-tutorials. But fundamentally it is working now, if you are feeling impatient. :-)</div>
<div><br></div><div>Regards,</div><div>Curtis</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 9, 2013 at 10:27 AM, Brian Northan <span dir="ltr"><<a href="mailto:bnorthan@gmail.com" target="_blank">bnorthan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Curtis (and list)<br><br></div>Thanks for the continued updates on the status of the scripting. You mentioned that it is getting closer with the merger of a 'script-parameters' branch. Are there any particular classes or example code that would be useful to look at right now?? Or would it be best to wait a few weeks for more updates. <br>
<br></div>Thanks<span><font color="#888888"><br><div><br>Brian<br></div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div></div></div>