<div dir="ltr">Hi Simon,<div><br></div><div><div>> What I still can't do is prevent the popup for the compression type.</div></div><div><br></div><div style>Yeah, the issue was a bit tricky. I took a crack at it and came up with this workaround:</div>

<div style><br></div><div style><a href="https://gist.github.com/ctrueden/5805462">https://gist.github.com/ctrueden/5805462</a><br></div><div style><br></div><div style>Hope it helps you. There is probably a simpler way but I don't have time to investigate further.</div>

<div style><br></div><div style>Regards,</div><div style>Curtis</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 18, 2013 at 7:36 AM, simon andrews <span dir="ltr"><<a href="mailto:simon.andrews@babraham.ac.uk" target="_blank">simon.andrews@babraham.ac.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 18 Jun 2013, at 11:55, Curtis Rueden wrote:<br>
<br>
> Good point. A similar approach would be to programmatically invoke the Bio-Formats Exporter at the same level ImageJ would internally:<br>
><br>
> LociExporter bfExporter = new LociExporter();<br>
> bfExporter.setup(arg, myImagePlus);<br>
> bfExporter.run(null); // ImageProcessor argument is ignored here<br>
><br>
> Where "arg" is the same argument string passed to run.<br>
<br>
</div>OK, I'm nearly there, but I think I might be stuck at the end.  After a lot of going through the source for the plugins I can now use the method you suggested above along with a command string such as:<br>
<br>
outfile=[d:/whatever/file.tif] splitz=[0] splitc=[0] splitt=[0]<br>
<br>
..to get the filename set and to not prompt for the splitting options.  What I still can't do is prevent the popup for the compression type.  Looking at the Exporter.java code I don't think it's possible to do this as the plugin.arg value is read at the start of the run() method but only the outfile, splitZ, splitC and splitT values are read, then plugin.arg is set to null so there's no way to get anything out of there after that.  The compression options code also doesn't seem to have any logic to read a default value.<br>


<br>
If this is right then I can't see that I can do what I need through the plugin interface.  Am I reading this right or am I still missing something?<br>
<br>
Cheers<br>
<div class="im"><br>
Simon.<br>
<br>
The Babraham Institute, Babraham Research Campus, Cambridge CB22 3AT Registered Charity No. 1053902.<br>
</div>The information transmitted in this email is directed only to the addressee. If you received this in error, please contact the sender and delete this email from your system. The contents of this e-mail are the views of the sender and do not necessarily represent the views of the Babraham Institute. Full conditions at: <a href="http://www.babraham.ac.uk" target="_blank">www.babraham.ac.uk</a><<a href="http://www.babraham.ac.uk/email_disclaimer.html" target="_blank">http://www.babraham.ac.uk/email_disclaimer.html</a>><br>


</blockquote></div><br></div>