Project

General

Profile

Files ยป Macro_IO_Settings_Demo.txt

a macro that demonstrates the usage of the Macro_IO_Settings plugin - Volker Baecker, 04/03/2011 01:03 AM

 
call("fr.cnrs.mri.macro.io.IOSettings.show");

IJ.log("\\Clear");

IJ.log("FILE LIST:");
fileList = call("fr.cnrs.mri.macro.io.IOSettings.getFileList");
files = split(fileList, ",");
for (i=0; i<files.length; i++) IJ.log(files[i]);

IJ.log("\nFILE LISTS:");
fileLists = call("fr.cnrs.mri.macro.io.IOSettings.getFileLists");
lists = split(fileLists, ";");
for (i=0; i<lists.length; i++) {
IJ.log("list nr: " + (i+1));
files = split(lists[i], ",");
for (j=0; j<files.length; j++)
IJ.log(files[j]);
}

IJ.log("\nINPUT FOLDER:");
inputFolder = call("fr.cnrs.mri.macro.io.IOSettings.getInputFolder");
IJ.log(inputFolder);

IJ.log("\nINPUT FOLDERS:");
inputFolders = call("fr.cnrs.mri.macro.io.IOSettings.getInputFolders");
folders = split(inputFolders, ",");
for (i=0; i<folders.length; i++) IJ.log(folders[i]);

IJ.log("\nOUTPUT FOLDER:");
outputFolder = call("fr.cnrs.mri.macro.io.IOSettings.getOutputFolder");
IJ.log(outputFolder);

IJ.log("\nOUTPUT FOLDERS:");
outputFolders = call("fr.cnrs.mri.macro.io.IOSettings.getOutputFolders");
folders = split(outputFolders, ",");
for (i=0; i<folders.length; i++) IJ.log(folders[i]);
    (1-1/1)