Open ctrueden opened 5 years ago
Start the Macro Recorder; record as Macro.
Press [ to start the Script Editor.
Paste the following script:
#@ String name #@output String greeting greeting = "Hello, " + name
Switch the language to Groovy.
Save the script (e.g. /home/curtis/Desktop/Greeting.groovy).
/home/curtis/Desktop/Greeting.groovy
Run the script with Ctrl+R or the Run button.
Observe the recorded command:
run("script:/home/curtis/Desktop/Greeting.groovy", "name=Chuckles");
Create a new macro from the recorded command.
Try to run the macro.
Observe error message:
Unrecognized command: "script:/home/curtis/Desktop/Greeting.groovy", "name=Chuckles");
Would be nice for ImageJ's run function to support executing scripts via module identifier, in addition to ImageJ1-style short name from the menus.
run
Reported by @lacan here.
Start the Macro Recorder; record as Macro.
Press [ to start the Script Editor.
Paste the following script:
Switch the language to Groovy.
Save the script (e.g.
/home/curtis/Desktop/Greeting.groovy
).Run the script with Ctrl+R or the Run button.
Observe the recorded command:
Create a new macro from the recorded command.
Try to run the macro.
Observe error message:
Would be nice for ImageJ's
run
function to support executing scripts via module identifier, in addition to ImageJ1-style short name from the menus.Reported by @lacan here.