You might find a function like this one:
https://github.com/jkitchin/techela-emacs/blob/master/techela-grade.el#L149
helpful. There are some variations that do similar things.
John
---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Hello,
Nik Clayton writes:
> Is there an API for manipulating properties that are set in #+PROPERTY
> lines before the first headline of a file (i.e., not in a property
> drawer)?
There is no API for keywords.
> Using org-entry-put when point is before the first headline throws a
> "Before