Safe an org-mode buffer when I clock in/out of a task

5 days ago

I'm using the clocking functionality quite extensively, and I built a number of tools (outside of emacs) that will look for clocked in tasks. The problem is that these tools will parse the file on disk, and therefore only pick up the clock entries if the buffer was saved in the meantime. I could just save the buffer manually, but I'm also using org-mru-clock, so it might not always be evident which buffer to save.

So I wanted to ask whether there is an easy way to hook into the clock-in/-out events to determine the buffer the task is in, and just save it.