http://imagej.273.s1.nabble.com/installing-macro-properly-tp5023470p5023475.html
for pointing this out.
but this does not what Kenneth was looking for.
Perhaps the latter menu item should / could be removed.
removed which is annoying, at least for me.
>> On Jun 10, 2020, at 12:57 PM, Kenneth Sloan <
[hidden email]> wrote:
>>
>> I apologize for being slow - but the documentation is confusing me. So, I'll pester you with a direct question about my specific problem.
>>
>> I have a file, "foo_macro.ijm" which looks like:
>>
>> macro "foo_macro" { ...stuff… }
>
> Use the Plugins>Install... command to install the macro. It will display two dialogs. In the first, select the macro you want to install. In the second, select the folder in the plugins folder where you want to install the macro. This works with both ImageJ and Fiji, but with Fiji, the macro must have an underscore in the name, you have to restart before the macro appears in the Plugins menu, and the macro is not installed if you create a sub-folder in the second dialog.
>
> -wayne
>
>> My usual routine with Java plugins is to use a "plugins.config" file in the .jar file. Typically, I drag&drop the .jar file, select a subfolder under plugins (to keep all my plugins in one place - mostly so it is easy to DELETE all of them when required), and restart FIJI. Works perfectly. The plugins.config file always looks like this:
>>
>> Plugins>category,"pretty name",className
>>
>> where "category" is a sub-menu under Plugins where I want "pretty name" to appear, and
>> "className" is the name of the Java Class.
>>
>> I want to do something similar with this macro, but...
>>
>> drag&drop of foo_macro.ijm does not install the macro - instead it brings me into the editor
>> so, OK - I'll use Plugins>Install Plugin. Note that I have rarely used this method, so I may completely mis-understand it.
>>
>> That works about as expected, except:
>>
>> a) there seems to be no way to select a subfolder of plugins - foo_macro.ijm is installed in plugins.
>> I would like to put it in plugins/subFolder.
>> b) I can't seem to get the macro to show up with a sub-menu - it shows up at the bottom, along with Debug and Sandbox and others. I would like it to show up as Plugins>subMenu>foo_macro.
>>
>> Following the documentation, I tried:
>>
>> macro "<subMenu> foo_macro" { ...stuff... }
>>
>> but this had no effect.
>>
>> What am I doing wrong?
>>
>> I think I can install the macro manually in a sub-folder (but I don't like to do that myself, and I definitely don't want to tell my colleagues to try to do this themselves).
>>
>> I have no clue how to get the macro to show up as Plugins>subMenu>foo_macro.
>>
>> My main sources so far have been the online tutorial and the example macro "MacroSubMenus.txt" - but clearly I'm not understanding them.
>>
>> Clues?
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>