Re: macro command to designate but not open a file?

Posted by gankaku on
URL: http://imagej.273.s1.nabble.com/macro-command-to-designate-but-not-open-a-file-tp5014926p5014929.html

Hi Bill,

the following command does what you need for the first part of your
question:


path = File.openDialog(title);


cheers,
Jan


2015-11-12 16:00 GMT+01:00 Bill Christens-Barry <[hidden email]>:

> In a macro I'd like to navigate to and choose but not open a file so I can
> assign its name (or full path) to a variable. I haven't identified a means
> of doing this using the File.* or getDirectory() macro commands. Is there a
> way to do this?
>
> Also, I'd like to specify a default starting path for the getDirectory()
> macro command, but don't see a way to do this. Is there a means for doing
> this in the macro language?
>
> Thanks,
>
> Bill
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--

CEO: Dr. rer. nat. Jan Brocher
phone:  +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail: [hidden email]
info: [hidden email]
inquiries: [hidden email]
web: www.biovoxxel.de

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