From mboxrd@z Thu Jan 1 00:00:00 1970 From: sergio ruiz Subject: Accessing properties in code blocks Date: Thu, 9 Jan 2020 15:23:49 -0500 Message-ID: <0B9BEF62-CCEB-4E1A-9FE6-487B797881C2@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: multipart/signed; boundary="Apple-Mail=_4A46A0D8-D060-44FF-A481-625330BC4DA1"; protocol="application/pgp-signature"; micalg=pgp-sha256 Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39572) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipeLT-0005Oz-I6 for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 15:23:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipeLS-0003Hd-0A for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 15:23:55 -0500 Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]:38656) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipeLR-00039o-Gw for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 15:23:53 -0500 Received: by mail-il1-x12d.google.com with SMTP id f5so6763871ilq.5 for ; Thu, 09 Jan 2020 12:23:53 -0800 (PST) Received: from [192.168.20.139] (rrcs-24-106-142-62.central.biz.rr.com. [24.106.142.62]) by smtp.googlemail.com with ESMTPSA id r17sm2377994ill.27.2020.01.09.12.23.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jan 2020 12:23:50 -0800 (PST) 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 --Apple-Mail=_4A46A0D8-D060-44FF-A481-625330BC4DA1 Content-Type: multipart/alternative; boundary="Apple-Mail=_AD80C4F0-962F-4C56-A09C-B1C9EBDEE0DF" --Apple-Mail=_AD80C4F0-962F-4C56-A09C-B1C9EBDEE0DF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I realized this is related to my previous post, but if i could do this, = it would save alot of work. I would like to access the values of the properties inside the (shell) = code block. Thanks! * 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 where the result of that call woudl be whatever i get from that running = curl on that url. ---- peace, sergio photographer, journalist, visionary Public Key: = https://pgp.key-server.io/pks/lookup?op=3Dget&search=3D0x69B08F58923AB3A2 #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV @sergio_101@mastodon.social https://sergio101.com http://www.codeandmusic.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101 --Apple-Mail=_AD80C4F0-962F-4C56-A09C-B1C9EBDEE0DF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii I = realized this is related to my previous post, but if i could do this, it = would save alot of work.

I would like to access the values of the properties inside = the (shell) code block.

Thanks!



* 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 = <url_property_here>
#+END_SRC

where the result of that = call woudl be whatever i get from that running curl on that = url.



----
peace,
sergio
photographer, journalist, visionary

Public Key: https://pgp.key-server.io/pks/lookup?op=3Dget&search=3D0x69= B08F58923AB3A2
#BitMessage = BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
https://sergio101.com
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
=

= --Apple-Mail=_AD80C4F0-962F-4C56-A09C-B1C9EBDEE0DF-- --Apple-Mail=_4A46A0D8-D060-44FF-A481-625330BC4DA1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE3eGd4191mOC5vqPaabCPWJI6s6IFAl4Xi9UACgkQabCPWJI6 s6IM3g//RaEnrBdVehHk2X5uM/qO5uSCyHTosaYAKD7g0YaXpvruSu07h2daJkrr /2YNm3PgfWWx0j8H8IhgcmA7e0/KfZ0uJZtwzviIg6brLyIMrm4vrJuE25pVKB+S tZm+1/yfCUSVm72qHwUuhlFpjkukqBmA9DUxjIKPeufQK+OkaS3Skc72j6HGzqHn dTqdXiqjtDHWvrKvv5dQVVT3dg4+jPZcSLGjWDrTf16R9yIaL7pTcts6skTTqMyX cp4ZImtsQfmig4QIeZRit2g36mbRmzvCPmoRNGMtIc2YMXhaknme7nfqjHajtAov SiVDgy0PSMNUmA5PwSeOkfazXdwXFGo/xsAmvU4aQJsSDNM/COddYj0BIOMZQuQN QZYcpmu5ehB7suTGILwJH7z+yeEJuQqyiNIGHj2s6H+XODeZQ7SR0+vc6K2hgL1N y3UGyqcDtNMxsw/ZQfO210CcIeXQ0W1uHSI6YG/44Nq7JgdacrHfViXYtcDCEHre yGprYZ+/9yFrDgbAaYdQeqPaWjaf2oQpZnHpQUcnltGzPKjIJVV9MRsIv7yyP3CY SWocKD/QKUBlx5rqlmZbcF/Wz7YTmvNQtMkclLQTo2cqzadzQN5x48Yn80MJ0J7R bpilahMynLASXAMs4lRTAqIHRhuleKPhX2P5QVKWa0k3WhPiCFU= =RK0v -----END PGP SIGNATURE----- --Apple-Mail=_4A46A0D8-D060-44FF-A481-625330BC4DA1--