Login  Register

Saving Results to Volumes

Posted by Tomm on Mar 04, 2014; 9:06am
URL: http://imagej.273.s1.nabble.com/Saving-Results-to-Volumes-tp5006764.html

Hi all,

I have two questions.
1) Is is possible to select an external HDD as a directory in macro?  (The following code did not work in my
Mac.)
2) How do I put the name(ID) from roiManager (ex. 0013-0372) as a file name? (The following code put the index.)
--
dir = getDirectory("Volumes") + "ExternalHDD/" + "FolderA/";
name = roiManager("index") ;
saveAs("results", dir+name+".xls");
--
Finally I wanna save the file (0013-0372.xls) in /Volumes/ExternalHD/FolderA/.

Thanks for any help.
Tom