I was recently reading a blog about Do-nothing scripting which is about encoding the instructions for a task as a step towards automating it. It occurred to me that this would be very nice paired with org mode todo entries.
What I want is to do be able to run code contained in a task when I change the task's state from TODO -> ACTIVE.
* TODO Provision new user #+BEGIN_SRC shell python3 /path/to/myscript.py #+END_SRC * ACTIVE Some other heading #+BEGIN_SRC emacs-lisp (message "TEST") #+END_SRC I guess this can be achieved using org-after-todo-state-change-hook, but I'm unsure where to start. Could anybody offer some advice on how to go about this?