/***************************************************************
* method : run(), opens a dialog box for the batch conversion *
**************************************************************/
public void run(String arg) {
OpenDialog od = new OpenDialog("Select a file in source folder...", "");
if (od.getFileName()==null) return;
String dir1 = od.getDirectory();
GenericDialog gd = new GenericDialog("LSM Batch Converter", IJ.getInstance());
gd.addChoice("Convert to: ", choices, format);
gd.showDialog();
if (gd.wasCanceled())
return;