Re: Error in code when applied to batch processing
You need to define "title" first. Add this to the beginning of the macro:
title = getTitle();
Does that work?
On 6/8/2018 10:03 AM, Adrián Villalba wrote:
> Dear all,
> I have a single code that works fine with single images, but when applied
> to batch processing (Import>Image sequence) it does not work properly. The
> following code:
> run("Split Channels");
> selectWindow(title+" (blue)");
> selectWindow(title+" (red)");
> selectWindow(title+" (green)");
> Does not close the red and blue channels when applied to image sequences
> and it appeared a new screen showing my a bug. Do you know what can cause
> it and if it can be repaired?
> Thank you in advance!