Please problem with bio-format importer

when I use bio format importer in ImageJ everything opens correctly and the name of the images corrrespond with the name of the serie I have opened from my .lif file.

When I try to open the same serie using a macro:

s = 33;
run(“Bio-Formats Importer”, “open=[C:/Users/Sapito/Dropbox/Manuscript/Figure 1/2018_04_24/Test 24042018 overright2.lif] autoscale color_mode=Composite split_channels view=Hyperstack stack_order=XYCZT series_”+s);

now all images open with the name containing the whole pathway information (C:/…)

Can someone help?

Are you actually calling the name as the entire path as you have written the code.

Try this (It might need to be tweaked a little.

dir1 = getDirectory("Choose input 8 bit Images Directory ");
list = getFileList(dir1);
for (f=0; f<list.length; f++) {
path = dir1+list[f];
run(“Bio-Formats Importer”, “open=[path] autoscale color_mode=Composite split_channels view=Hyperstack stack_order=XYCZT series_”+s);
}

I really appreciate your help, but I am not an expert macro writer. I do not understand the code you have typed.

Linking these posts so they are connected Bio-formats importer, images title contain whole directory path sequence