OK, this is a very basic question. In Fiji running on a Mac (OS 10.10.3), I'm writing a simple java PlugInFilter and would like to save the java file to the plugins directory. However, on the Mac, the whole Fiji installation is in a "package" that is not openable from within the Fiji script editor, so there's no obvious way I can see to save the file there from within Fiji.
Obviously, I can save the source file somewhere else, go to the Finder to "show package contents" for Fiji, navigate to the plugins folder and move the file there after the fact, but that seems clumsy. So am I missing something obvious here? I'm trying to move from developing Java plugins in plain-vanilla ImageJ to Fiji, because I like the Fiji script editor better than ImageJ's text editor, but I don't see a clear way to do what I want. Any suggestions? Jon Marsh |
I dragged the Plugins folder to my finder sidebar then you can get to it
easily. If there is a better solution though I'd like to hear it. B On Fri, May 1, 2015 at 2:25 PM, JonNathan < [hidden email]> wrote: > OK, this is a very basic question. In Fiji running on a Mac (OS 10.10.3), > I'm writing a simple java PlugInFilter and would like to save the java file > to the plugins directory. However, on the Mac, the whole Fiji installation > is in a "package" that is not openable from within the Fiji script editor, > so there's no obvious way I can see to save the file there from within > Fiji. > > Obviously, I can save the source file somewhere else, go to the Finder to > "show package contents" for Fiji, navigate to the plugins folder and move > the file there after the fact, but that seems clumsy. > > So am I missing something obvious here? I'm trying to move from developing > Java plugins in plain-vanilla ImageJ to Fiji, because I like the Fiji > script > editor better than ImageJ's text editor, but I don't see a clear way to do > what I want. > > Any suggestions? > > Jon Marsh > > > > > -- > View this message in context: > http://imagej.1557.x6.nabble.com/Saving-java-files-in-developed-in-Fiji-with-script-editor-tp5012672.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 |
Hi Jon,
Unfortunately I don't think there are any nice workarounds. There was discussion last year about reusing the classic ImageJ save as dialog[1] but it looks like the work wasn't finished. I also filed an issue suggesting a short-term workaround[2]. If you want a solution right away, you can create a symlink to the plugins directory[3]. For example, if you open up a terminal, go to your home directory, and use "ln -s /Applications/Fiji.app/plugins myplugins" you can save things into your /Users/yourname/myplugins/. But you still will have the ugly JFileChooser that defaults to the App directory. Best, Mark [1] https://github.com/imagej/imagej-ui-swing/pull/19 [2] https://github.com/imagej/imagej-ui-swing/issues/41 [3] http://apple.stackexchange.com/questions/115646/how-can-i-create-a-symbolic-link-in-terminal On Sun, May 3, 2015 at 12:24 PM, Brandon Hurr <[hidden email]> wrote: > I dragged the Plugins folder to my finder sidebar then you can get to it > easily. If there is a better solution though I'd like to hear it. > > B > > On Fri, May 1, 2015 at 2:25 PM, JonNathan < > [hidden email]> wrote: > > > OK, this is a very basic question. In Fiji running on a Mac (OS > 10.10.3), > > I'm writing a simple java PlugInFilter and would like to save the java > file > > to the plugins directory. However, on the Mac, the whole Fiji > installation > > is in a "package" that is not openable from within the Fiji script > editor, > > so there's no obvious way I can see to save the file there from within > > Fiji. > > > > Obviously, I can save the source file somewhere else, go to the Finder to > > "show package contents" for Fiji, navigate to the plugins folder and move > > the file there after the fact, but that seems clumsy. > > > > So am I missing something obvious here? I'm trying to move from > developing > > Java plugins in plain-vanilla ImageJ to Fiji, because I like the Fiji > > script > > editor better than ImageJ's text editor, but I don't see a clear way to > do > > what I want. > > > > Any suggestions? > > > > Jon Marsh > > > > > > > > > > -- > > View this message in context: > > > http://imagej.1557.x6.nabble.com/Saving-java-files-in-developed-in-Fiji-with-script-editor-tp5012672.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 > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |