Hi Josh, On 2019-03-10 at 23:37 +0100, Josh <jnf...@grauman.com> wrote... > I am new to emacs and orgmode. I spent the last couple days reading > most of the docs before diving in,
Welcome! > but I didn't see anywhere how I could have a macro that instead of > replacing the macro with lisp code, calls an external program instead. > > Something like: > #+MACRO: func call /home/josh/mybinary $1 > > {{{func(Text Argument)}}} > > and this would be setup to call an external program and the output of > the program would replace the macro on export. > > /home/josh/mybinary "Text Argument" I do wonder if you're asking an XY problem, especially after reading your follow-up question about running an entire Org file through a pre-filter. Why does it have to be a macro that you call? Why not #+NAME:'d Babel code block, which can (presumably) run any program you want. -k.