Re: open next
Posted by
ctrueden on
Oct 15, 2009; 2:34pm
URL: http://imagej.273.s1.nabble.com/open-next-tp3690744p3690745.html
Hi Andrew,
Here is an example macro that does something similar to what you ask:
https://skyking.microscopy.wisc.edu/trac/java/browser/trunk/components/loci-plugins/utils/macros/recursiveTiffConvert.txtThis one batch converts an input directory of files in some format into
TIFFs in an output directory, but you could change the logic per-file to do
whatever you want.
-Curtis
On Thu, Oct 15, 2009 at 5:08 AM, Andrew Bell <
[hidden email]> wrote:
> Hello,
>
> I want a macro to open an image, perfrom an operation, save it to another
> location, and open the next image in the original folder. Is this possible
> without the user having to specify the source folder each time?
>
> This is where i am at so far:
>
>
> dir = getDirectory("Choose Destination Directory ");
> open();
> name = dir+getTitle();
> run("Rolling Ball Background", "rolling=50");
> save(name+".tif");
> run("Open Next");
>
> This macro only opens the next file in the destination folder. How can I
> specify to open the next file in the source folder?
>
> Any suggestions warmly welcomed!
>
> Regards,
>
> Andrew
>