From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Subject: Macro that calls external program Date: Sun, 10 Mar 2019 15:37:52 -0700 (PDT) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([209.51.188.92]:33851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3DrS-0008Py-61 for emacs-orgmode@gnu.org; Mon, 11 Mar 2019 01:52:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3DrR-0001zK-JL for emacs-orgmode@gnu.org; Mon, 11 Mar 2019 01:52:30 -0400 Received: from colo.shuman.org ([204.238.213.178]:60010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3DrR-0001wi-CV for emacs-orgmode@gnu.org; Mon, 11 Mar 2019 01:52:29 -0400 Received: from localhost (localhost [127.0.0.1]) by colo.shuman.org (Postfix) with ESMTP id DB4BB6030588 for ; Sun, 10 Mar 2019 15:37:52 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi, I am new to emacs and orgmode. I spent the last couple days reading most of the docs before diving in, 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" Thanks! Josh