In my macro the user is to provide both a source directory and a
destination directory but in MacOS 10.14.03, Mojave, there is no title in the folder picker. Macro: input = getDirectory("Select Source Directory "); output = getDirectory("Choose Destination Directory "); Google has not been my friend, today. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
My usual work-around is to display the prompt message as a status.
In Java: String message = "Choose a directory..."; IJ.showStatus(message); DirectoryChooser dc = new DirectoryChooser(message); Others have suggested other fixes, but this was the easiest method for me. -- Kenneth Sloan [hidden email] Vision is the art of seeing what is invisible to others. > On Mar 1, 2019, at 12:07, Robert Lockwood <[hidden email]> wrote: > > In my macro the user is to provide both a source directory and a > destination directory but in MacOS 10.14.03, Mojave, there is no title in > the folder picker. > > Macro: > input = getDirectory("Select Source Directory "); > output = getDirectory("Choose Destination Directory "); > > Google has not been my friend, today. > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Thanks, Kenneth, but I can't make those lines work with macros, they look
as if they belong in Java code. On Fri, Mar 1, 2019 at 11:13 AM Kenneth Sloan <[hidden email]> wrote: > My usual work-around is to display the prompt message as a status. > > In Java: > > String message = "Choose a directory..."; > IJ.showStatus(message); > DirectoryChooser dc = new DirectoryChooser(message); > > Others have suggested other fixes, but this was the easiest method for me. > > > -- > Kenneth Sloan > [hidden email] > Vision is the art of seeing what is invisible to others. > > > > > > > On Mar 1, 2019, at 12:07, Robert Lockwood <[hidden email]> wrote: > > > > In my macro the user is to provide both a source directory and a > > destination directory but in MacOS 10.14.03, Mojave, there is no title in > > the folder picker. > > > > Macro: > > input = getDirectory("Select Source Directory "); > > output = getDirectory("Choose Destination Directory "); > > > > Google has not been my friend, today. > > > > -- > > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
https://imagej.nih.gov/ij/developer/macro/functions.html
-- Kenneth Sloan [hidden email] Vision is the art of seeing what is invisible to others. > On Mar 1, 2019, at 15:53, Robert Lockwood <[hidden email]> wrote: > > Thanks, Kenneth, but I can't make those lines work with macros, they look > as if they belong in Java code. > > On Fri, Mar 1, 2019 at 11:13 AM Kenneth Sloan <[hidden email]> > wrote: > >> My usual work-around is to display the prompt message as a status. >> >> In Java: >> >> String message = "Choose a directory..."; >> IJ.showStatus(message); >> DirectoryChooser dc = new DirectoryChooser(message); >> >> Others have suggested other fixes, but this was the easiest method for me. >> >> >> -- >> Kenneth Sloan >> [hidden email] >> Vision is the art of seeing what is invisible to others. >> >> >> >> >> >>> On Mar 1, 2019, at 12:07, Robert Lockwood <[hidden email]> wrote: >>> >>> In my macro the user is to provide both a source directory and a >>> destination directory but in MacOS 10.14.03, Mojave, there is no title in >>> the folder picker. >>> >>> Macro: >>> input = getDirectory("Select Source Directory "); >>> output = getDirectory("Choose Destination Directory "); >>> >>> Google has not been my friend, today. >>> >>> -- >>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html >> >> >> -- >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html >> > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |