Login  Register

Re: macro command to define default folder

Posted by Michael Schmid on Oct 01, 2013; 7:59am
URL: http://imagej.273.s1.nabble.com/macro-command-to-define-default-folder-tp5004990p5004993.html

Hi Bill

have a look at the following thread
https://list.nih.gov/cgi-bin/wa.exe?A2=ind0811&L=imagej&P=R1828&1=imagej&9=A&I=-3&J=on&d=No+Match%3BMatch%3BMatches&z=4

   myDirectory = "/home/bill/inputfiles1/";
   call("ij.io.OpenDialog.setDefaultDirectory", myDirectory);

The separator (slash) at the end of myDirectory is optional.

You can also get the current default folder:
   currentDirectory = call("ij.io.OpenDialog.getDefaultDirectory");

Michael
________________________________________________________________
On Oct 1, 2013, at 06:59, Bill Christens-Barry wrote:

> Hi,
>
> Is there a macro command that will define an arbitrary, subsequent default folder in which an open file dialog will begin? My search turned up a comparable discussion regarding ij.io.OpenDialog() constructors:
>
> https://list.nih.gov/cgi-bin/wa.exe?A2=ind1008&L=imagej&P=R49258&1=imagej&9=A&J=on&d=No+Match%3BMatch%3BMatches&z=4
>
>
> but didn't yield means for doing this in the macro language.
>
> Thanks.
>
> Bill Christens-Barry
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html