roiname = Dialog.getString();
name = getInfo(“slice.label”);
roiname2 = roiname + “_” + name;
run(“Duplicate…”, " ");
So in upper code ROI name has extension .roi at the end and I would like to romove this extension.
So is it possible that when macro gets ROI name as a string i can limit string in a way that it will start from 5th letter from the end.
for example roi name B4.roi should be just B4.