<div dir="ltr">Hi Dscho,<div><br></div><div>> <span style="font-family:arial,sans-serif;font-size:13px">I should be able to complete that work and release</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">> scijava-common 2.24.0 </span><span style="font-size:13px;font-family:arial,sans-serif">before </span><span class="" tabindex="0" style="font-size:13px;font-family:arial,sans-serif"><span class="">tomorrow</span></span><span style="font-size:13px;font-family:arial,sans-serif"> morning.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I am hesitant to rush this solution. Would you mind waiting till tomorrow morning so we can discuss and finalize in person?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks,</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Curtis</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 16, 2014 at 12:26 PM, Johannes Schindelin <span dir="ltr"><<a href="mailto:schindelin@wisc.edu" target="_blank">schindelin@wisc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Curtis,<br>
<div><div class="h5"><br>
On Mon, 16 Jun 2014, Johannes Schindelin wrote:<br>
<br>
> I am facing a problem where I cannot pass macro options properly because<br>
> the script service insists on handing the task to an individual thread<br>
> in the thread pool of the thread service, and ImageJ 1.x can therefore<br>
> no longer see its (home-brewn thread-local) macro options.<br>
><br>
> I fiddled a little with providing an extra input called<br>
> "ij1.macro.options" but the ScriptModule figures that there is no input<br>
> called "ij1.macro.options" and therefore the ScriptEngine never sees it.<br>
><br>
> Any thoughts that might help me solve this in a clean way? I really do<br>
> not want to fudge some pseudo-solution that would "fix" it in the short<br>
> run...<br>
<br>
</div></div>Thanks for taking the time to chat. And sorry for running off; I will be<br>
online later in the evening.<br>
<br>
The way I plan to address the issue is to special-case<br>
"org.scijava.scripting.*" values in the input values passed to<br>
ScriptService#run and add an API to the ScriptModule to get the values of<br>
these settings. This should be clean and allow all the use cases we came<br>
up with in our brief chat.<br>
<br>
I should be able to complete that work and release scijava-common 2.24.0<br>
before tomorrow morning.<br>
<br>
Sounds good?<br>
<br>
Ciao,<br>
Dscho<br>
</blockquote></div><br></div>