Shell newbie here: how do I pass a [[draft]] into a bash script?

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. :slight_smile:

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: