I’ve downloaded Greg’s bash example action, but I don’t see how to pass the text from a draft into it.
Getting it from there to the Terminal I can hopefully figure out on my own.
I’ve downloaded Greg’s bash example action, but I don’t see how to pass the text from a draft into it.
Getting it from there to the Terminal I can hopefully figure out on my own.
There are examples in ShellScript
object docs.
You pass an array of arguments to the execute
method. To pass the content of the current draft:
runner.execute([draft.content])