macro command to define default folder

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

macro command to define default folder

Bill Christens-Barry-2
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
Reply | Threaded
Open this post in threaded view
|

Re: macro command to define default folder

Michael Schmid
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
Reply | Threaded
Open this post in threaded view
|

Re: macro command to define default folder

Bill Christens-Barry-2
In reply to this post by Bill Christens-Barry-2
Michael,

Thanks for this, which accomplishes just what I've wanted.

Bill

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