StartupMacros does not reload when using extension *.ijm

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

StartupMacros does not reload when using extension *.ijm

Stein Rørvik
Hello,

As you all know ImageJ macros can have either an *.txt or *.ijm extension.
The latter makes it easy to associate macro files with your preferred text editor with syntax coloring etc.

I noticed that if your StartupMacros file is named <imagejfolder>\macros\StartupMacros.ijm
instead of <imagejfolder>\macros\StartupMacros.txt,
it will not reload when you choose StartupMacros from the >> toolbar menu.
It seems that <ij.jar>\macros\StartupMacros.txt is loaded instead; thus discarding your customizations.

Being able to reload StartupMacros from the >> toolbar menu is very convenient for testing when you are editing it.

If you are instead using a *.txt extension, the >> menu will properly load <imagejfolder>\macros\StartupMacros.txt

This is a bit unexpected behaviour, which perhaps should be corrected?

Stein


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: StartupMacros does not reload when using extension *.ijm

Wayne Rasband-2
> On Nov 8, 2017, at 8:47 AM, Stein Rørvik <[hidden email]> wrote:
>
> Hello,
>
> As you all know ImageJ macros can have either an *.txt or *.ijm extension.
> The latter makes it easy to associate macro files with your preferred text editor with syntax coloring etc.
>
> I noticed that if your StartupMacros file is named <imagejfolder>\macros\StartupMacros.ijm
> instead of <imagejfolder>\macros\StartupMacros.txt,
> it will not reload when you choose StartupMacros from the >> toolbar menu.
> It seems that <ij.jar>\macros\StartupMacros.txt is loaded instead; thus discarding your customizations.

This bug is fixed in the latest ImageJ daily build (1.51s16).

-wayne

> Being able to reload StartupMacros from the >> toolbar menu is very convenient for testing when you are editing it.
>
> If you are instead using a *.txt extension, the >> menu will properly load <imagejfolder>\macros\StartupMacros.txt
>
> This is a bit unexpected behaviour, which perhaps should be corrected?
>
> Stein

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