The runmcConsole plugin defines three BeanShell convenience methods that can be called from macros:
void runCommandInrunmcConsole( | View ? | view, |
? | String ? | shell, |
? | String ? | command) ; |
Runs command in the shell named shell. Will open a runmcconsole window if one is not already open.
void runCommandToBuffer( | View ? | view, |
? | String ? | shell, |
? | String ? | command) ; |
Runs command in the shell named shell, placing the command's output in a new buffer. Will open a runmcconsole window if one is not already open.
void runInSystemShell( | View ? | view, |
? | String ? | command) ; |
Equivalent to calling:
runCommandInrunmcConsole(view,"System",command); |
void waitForrunmcConsole(
View view)
;
Waits until the currently executing command finishes before returning.
void clearrunmcConsole(
View view)
;
Clear's the runmcconsole's output area.
void getenv(
String name)
;
Returns the specified environment variable.
void setenv(
String name, String value)
;
Sets the specified environment variable to a new value.
If a command is run from the runmcconsole while macro recording is in progress, a call to one of these methods is recorded automatically.