Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenMIMS removes all StartupMacros #27

Open
thomasaarholt opened this issue Aug 14, 2016 · 4 comments
Open

OpenMIMS removes all StartupMacros #27

thomasaarholt opened this issue Aug 14, 2016 · 4 comments
Assignees
Labels

Comments

@thomasaarholt
Copy link

Since I use OpenMIMS so much, I have it set in Fiji's StartupMacros.fiji.ijm file under:

macro “AutoRun" {
 run("Open MIMS Image");
}

I have a bunch of other macros I use - to colour some of the images with the cameca LUT, set a scalebar and reorder the images. Unfortunately, adding the macros to the StartupMacros file doesn't work. After some testing I realised that it when I load the OpenMIMS plugin it wipes all the installed macros.

Does anyone have any suggestions to a workaround?

@cpoczatek cpoczatek added the bug label Aug 15, 2016
@cpoczatek
Copy link
Member

There are 2 things you can do:

  • Rerun Startup Macros in Plugins -> Macros However, I'm not sure if this works because I get a syntax error in StartupMacros.fiji.ijm ???
  • Rename or delete Fiji.app/macros/openmims_tools.fiji.ijm (or comment everything out) so it's can't be run at startup. The purpose of this macro is to add 2 custom OpenMIMS tools to the tool bar. I think commenting out is probably the best option because that file will show up as locally modified in the Fiji updater (as opposed to missing) and it should leave it alone.

I'm gonna leave this bug open so we can think of maybe a better way to handle this.

@thomasaarholt
Copy link
Author

Interestingly commenting out the file didn't help - I think since it finds
a file it wipes it, even if there is nothing in it.
Deleting it did work though - though I realise it will throw a warning when
I update. Thanks!

On Mon, 15 Aug 2016 2:48 pm Collin Poczatek, notifications@github.com
wrote:

There are 2 things you can do:

Rerun Startup Macros in Plugins -> Macros However, I'm not sure
if this works because I get a syntax error in StartupMacros.fiji.ijm
???

Rename or delete Fiji.app/macros/openmims_tools.fiji.ijm (or comment
everything out) so it's can't be run at startup. The purpose of this macro
is to add 2 custom OpenMIMS tools to the tool bar. I think commenting out
is probably the best option because that file will show up as locally
modified
in the Fiji updater (as opposed to missing) and it should
leave it alone.

I'm gonna leave this bug open so we can think of maybe a better way to
handle this.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#27 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACmGj5iOVkS7VkKU6AEY_7LGL4UUNzIwks5qgG4qgaJpZM4Jj4yw
.

@taylorwrt taylorwrt self-assigned this Sep 26, 2016
@taylorwrt
Copy link
Contributor

Thomas,

Collin resigned a few weeks ago to take another position, so for the time being, I am the sole developer here at Partners for OpenMIMS. I am a part-time contractor, and am still learning the ropes, so to speak, but would like to know if this problem is still bothering you. Prior to yesterday, I had not had any experience with ImageJ macros, but in looking at the macro StartupMacros.fiji.ijm I have, I noticed that it indeed has a syntax error, as Collin described. Assuming you have the same file I do, fixing this syntax error might help you solve your problem. To fix it, go to approximately line 32, where you will see the line
function UseHEFT {
Here, the double parenthesis are missing, so the line should be:
function UseHEFT() {

See if that help any.

Walter Taylor

@thomasaarholt
Copy link
Author

Well, that's pretty sexy. That seems to work great.

Sorry to hear about Collin leaving. I much appreciate his work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants