I’m writing a macro to open a file with variable name.
First, i read a barcode to get the correct file name,
then i try to open the file.
open("C:/PROGRAMMEFINAL/BARCODE.jpg"); //open the barcode run("Barcode Codec"); //a text window appears with the name of the right file, which is contained in the barcode filename = getInfo("window.contents"); //get the name of the file i want to open directory = "C:/PROGRAMMEFINAL/"; //get the directory where all my files are contained tif = ".tif"; //add the extension open(directory+filename+tif); //open the right file
Unfortunately, an error message appears :
File is not in a supported format, a reader plugin is not available, or it was not found.
I get exactly the path of the file.
I’m new to imagej and i did’nt find a solution on ImageJ help,
Any help and insight is appreciated,