How to write an ImageJ macro that assign SPACE+s command

I have current macro stored in StartupMacros.txt file, which works fine:

macro "Save As TIFF... [s]" {
  saveAs("Tiff");
}

What I want to do is to assign [SPACE +s] command instead of [s].
How can I do that?

I tried this but won’t work.

macro "Save As TIFF... [SHIFT+s]" {
  saveAs("Tiff");
}

Dear Peverall_Dubois
I changed your script to:

macro "Save As TIFF... [SPACE+s]" {
  saveAs("Tiff");
}

and saved the macro to the plugin folder and restarted Imagej. It worked as you described after that.

2 Likes