I've stored several links to various shell commands and I would like to update each link description with the output of the correspoding shell command. For example:
View in text-mode: [[shell:echo "hello"][xxx]]
View in org-mode: xxx
after running some post-processing function, I would get:
View in text-mode: [[shell:echo "hello"][hello]]
View in org-mode: hello
I know how to parse the different links and get the underlying shell command:
(org-element-map (org-element-parse-buffer) 'link
(lambda (link)
(when (string= (org-element-property :type link) "shell")
(org-element-property :path link))))
but then I don't know how to modify the description using (org-element-context link)