Re: souce directory code for writing macro

Posted by BenTupper on
URL: http://imagej.273.s1.nabble.com/souce-directory-code-for-writing-macro-tp3689273p3689274.html

Hi,

Perhaps you are looking for ...

        sourceDir = File.directory();

You can call this after opening an image.  Is that what you mean by  
"the image dir last opened"?

Ben


On Feb 13, 2010, at 12:53 AM, Teresa W wrote:

> I want to embed a generic definition for the image dir for saving  
> files etc,
> inside a macro.
>
> saveAs("Tiff", "D:\\Aug 2009\\Channa NReconB\\Colour.tif");
>
> ie D:\\Aug 2009\\Channa NReconB, replaced by a generic term for the  
> image
> dir last opened. Trolling thru the macros command library has not  
> thrown up
> anything I can understand.
>
> Thanks, Teresa
> --
> View this message in context: http://n2.nabble.com/souce-directory-code-for-writing-macro-tp4565178p4565178.html
> Sent from the ImageJ mailing list archive at Nabble.com.