how to get name of arbitrary file selected by user in macro?
Posted by Bill Christens-Barry on Apr 25, 2007; 5:28pm
URL: http://imagej.273.s1.nabble.com/how-to-get-name-of-arbitrary-file-selected-by-user-in-macro-tp3699653.html
How can I get the name and path of a text file opened by the user in a macro?The macro opens the
file this way:
f = File.openAsString("");
After looking at the list archives and online doc, I haven't figured out how to get at the name or path
when they are not already known. Note that I am opening a text file and there is no corresponding
window whose name I can peruse. Also, the file chosen by the user can be in an arbitrary location.
Thanks.
Bill Christens-Barry