Re: How to determine the current macro name
Posted by
Volker Baecker on
Dec 10, 2015; 12:44pm
URL: http://imagej.273.s1.nabble.com/How-to-determine-the-current-macro-name-tp5015202p5015203.html
I don't think there is a simple way to do this.
File.directory
File.name
work for macro files as for other files, however you have to run the
command after opening the macro and before opening any other file.
getList("window.titles");
gives a list of all none image window titles including macros.
Maybe we can help more if you tell us why you need this.
Best regards,
Volker Baecker
Stein Rørvik:
> Simple question:
>
> Is there any way an ImageJ macro can determine its own filename?
> That is, any way to read the name and file path of the currently
> loaded macro file?
>
> Stein
>
> -- ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html