I'd like to display event counts in a conky window. Things like tasks scheduled for today, within the next 3 days, 15 days, count of pending todo items, etc. Since conky doesn't "talk" org-mode, the next best way is to call a shell script and use its output.
Can I call emacs in batch mode for this? Is there an org-agenda function that prints event counts? Should I do my own parsing instead?
org-agenda-list
function. The example creates a buffer for displaying purposes, but that step can be eliminated and the parsing/counting can be done with just the list -- without actually creating a display buffer. The org-agenda-files are opened/accessed/queried during this process. emacs.stackexchange.com/a/12563/2287 This process could be done in batch mode, though I've never tried it.BEGIN modification
through toEND modification
.