/* * This plugin extracts the image metadata for all the DM3 image files in a directory * and saves the metadata to a text file. */ // Choose the directory that contains the DM3 files from which you need the metadata. directory = getDirectory("Choose a Directory"); setBatchMode(true); count = 0; // This is a list of the filenames in the directory. filenames = getFileList(directory); // Loop over the list of filenames and find the DM3 files. for (i=0; i