Hi all,
I've been trying to use Macro_Runner.runMacroFromJAR method inside a plugins.config file with no success The text inside plugins.config is: Plugins>MyFolder, "My Macro", Macro_Runner.runMacroFromJar("Something.ijm", "") The result is that in IJ's menu I get this: My Macro", Macro_Runner.runMacroFromJar("Something.ijm From testing various things, it seems that static functions with more than 1 argument cannot be used. Is this correct? All the best Oli -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Oli,
I have also had the same problem. I would like to distribute a suite of macros and plugins all as a single jar, but I don't know if it is possible. My current work-around is to package the macros separately from the jar and then reference them in plugins.config as such: Plugins>MyFolder, "My Macro", ij.plugin.Macro_Runner("UnpackedSuiteMacros/Best_Macro_Ever.ijm") Ideas would be appreciated. Thanks, Alan |
Hi Alan,
On Wed, 16 Jul 2014, Alan Brooks wrote: > I have also had the same problem. I would like to distribute a suite of > macros and plugins all as a single jar, but I don't know if it is > possible. It might appear to be a splendid idea to just send a .jar via email to your collaborators. But as soon as you have to juggle more than a single revision of *every* contains macro and plugin, it gets pretty tedious. Another pretty big disadvantage of putting macros into .jar files is that they cannot easily be edited (enhanced, modified, improved, fixed, etc) > My current work-around is to package the macros separately from the jar and > then reference them in plugins.config as such: > Plugins>MyFolder, "My Macro", > ij.plugin.Macro_Runner("UnpackedSuiteMacros/Best_Macro_Ever.ijm") As I wrote in a mail yesterday, if you use Fiji or ImageJ2 (but not yet if you use bare-bones ImageJ 1.x), putting your macro into plugins/Scripts/UnpackedSuiteMacros/Best_Macro_ever.ijm it will be installed into the (new) top-level menu "UnpackedSuiteMacros" instead of the "Plugins" menu. > Ideas would be appreciated. http://imagej.net/How_to_set_up_and_populate_an_update_site Ciao, Johannes -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Alan Brooks
Hi Wayne,
I had not seen the Jar Resources Demo. I appreciate the tip. I may not use it to package stand-alone plugins but it will be useful to be able to include some resources I was trying to package nicely. Cc'ing the mailing list in case someone in the future is looking for the same thing. Regards, Alan On Sun, Jul 20, 2014 at 11:26 AM, Rasband, Wayne (NIH/NIMH) [E] < [hidden email]> wrote: > Hi Alan, > > Have you looked at the "JAR Resources Demo" plugin at > > http://imagej.nih.gov/ij/plugins/pcl-demo.html > > It demonstrates how to include text files, images and macros in jar files. > > Best regards, > > -wayne > > On Jul 17, 2014, at 12:11 AM, Alan Brooks wrote: > > > Hi Oli, > > > > I have also had the same problem. I would like to distribute a suite of > > macros and plugins all as a single jar, but I don't know if it is > possible. > > > > My current work-around is to package the macros separately from the jar > and > > then reference them in plugins.config as such: > > Plugins>MyFolder, "My Macro", > > ij.plugin.Macro_Runner("UnpackedSuiteMacros/Best_Macro_Ever.ijm") > > > > Ideas would be appreciated. > > > > Thanks, > > Alan > > > > > > > > -- > > View this message in context: > http://imagej.1557.x6.nabble.com/plugins-config-and-static-functions-with-more-than-1-argument-tp5008189p5008789.html > > Sent from the ImageJ mailing list archive at Nabble.com. > > > > -- > > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |