MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / runMacroFile

Method runMacroFile

ij/src/main/java/ij/IJ.java:239–242  ·  view source on GitHub ↗

Runs the specified macro or script file in the current thread. The file is assumed to be in the macros folder unless name is a full path. The optional string argument ( arg ) can be retrieved in the called macro or script using the getArgument() function. Returns

(String name, String arg)

Source from the content-addressed store, hash-verified

237 Returns any string value returned by the macro, or null. Scripts always return null.
238 The equivalent macro function is runMacro(). */
239 public static String runMacroFile(String name, String arg) {
240 Macro_Runner mr = new Macro_Runner();
241 return mr.runMacroFile(name, arg);
242 }
243
244 /** Runs the specified macro file. */
245 public static String runMacroFile(String name) {

Callers 10

sendArgumentMethod · 0.95
main0Method · 0.95
runMacroMethod · 0.95
runMethod · 0.95
searchMethod · 0.95
measureStackMethod · 0.95
newHyperStackMethod · 0.95
addParticlesMethod · 0.95
itemStateChangedMethod · 0.95
runMethod · 0.45

Calls 1

runMacroFileMethod · 0.95

Tested by

no test coverage detected