/** Runs the specified macro or script file in the current thread. The file is assumed to be in the macros folder unless <code>name</code> is a full path. The optional string argument (<code>arg</code>) can be retrieved in the called macro or script using the getArgument() function. Returns any string value returned by the macro, or null. Scripts always return null. The equivalent macro function is runMacro(). */ public static String runMacroFile(String name, String arg) { Macro_Runner mr = new Macro_Runner(); return mr.runMacroFile(name, arg); }
/** Runs the specified macro or script file in the current thread. The file is assumed to be in the macros folder unless <code>name</code> is a full path. The optional string argument (<code>arg</code>) can be retrieved in the called macro or script using the getArgument() function. Returns any string value returned by the macro, or null. Scripts always return null. The equivalent macro function is runMacro(). */ public static String runMacroFile(String name, String arg) { Macro_Runner mr = new Macro_Runner(); return mr.runMacroFile(name, arg); }
return runMacroFile(name, arg); InputStreamReader isr = new InputStreamReader(is); StringBuffer sb = new StringBuffer();
return runMacroFile(name, arg); InputStreamReader isr = new InputStreamReader(is); StringBuffer sb = new StringBuffer();
if (name!=null) { path = directory+name; runMacroFile(path, null); if (Recorder.record) { if (Recorder.scriptMode()) else path = Menus.getPlugInsPath() + name; runMacroFile(path, null);
if (name!=null) { path = directory+name; runMacroFile(path, null); if (Recorder.record) { if (Recorder.scriptMode()) else path = Menus.getPlugInsPath() + name; runMacroFile(path, null);