From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Gauland Subject: Re: Accessing properties in code blocks Date: Fri, 10 Jan 2020 09:40:26 +1300 Message-ID: References: <0B9BEF62-CCEB-4E1A-9FE6-487B797881C2@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38916) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipea6-0004NC-GP for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 15:39:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipea5-0003az-Ei for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 15:39:02 -0500 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:37298) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipea5-0003Vu-52 for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 15:39:01 -0500 Received: by mail-pg1-x534.google.com with SMTP id q127so3768476pga.4 for ; Thu, 09 Jan 2020 12:39:01 -0800 (PST) Received: from [192.168.15.83] ([202.49.20.57]) by smtp.gmail.com with ESMTPSA id b8sm9138773pfr.64.2020.01.09.12.38.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jan 2020 12:38:59 -0800 (PST) In-Reply-To: <0B9BEF62-CCEB-4E1A-9FE6-487B797881C2@gmail.com> Content-Language: en-US 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org On 10/01/2020 9:23 am, sergio ruiz wrote: > * Report section > :PROPERTIES: > :url: http://www.googole.com > :END: > > I'd like to have several sections like this. Each section woudl have > different values for the same property. They would make different > calls to respective url. something like > > #+BEGIN_SRC shell > curl > #+END_SRC > You can use elisp code to look up the property you want to pass as a variable: #+BEGIN_SRC shell :var url=(org-macro--get-property "url" "") curl $url #+END_SRC