Hi,
I hope this is not too much off topic. I have now progressed to running emacs -l ~/.emacs -eval '(org-export-icalendar-all-agenda-files)' --batch which is working mostly fine. However I want to try and sync with another calendar, and so I have put the following in my .emacs file:
(setq org-icalendar-include-todo t)
(setq org-icalendar-store-UID t)
(setq org-icalendar-use-scheduled '(todo-start event-if-todo event-if-not-todo))
(setq org-icalendar-use-deadline '(todo-due event-if-todo event-if-not-todo))
(setq org-combined-agenda-icalendar-file "~/gtd/combined.ics")
When I do a C-c C-e I (Export all files to ical) from within emacs it effectively adds the UID property to the todo items in the '
agenda.org' files. if however I run emacs --batch -l ~/.emacs as above from the command line, it respects all the setting above from .emacs, but not org-icalendar-store-UID. Not knowing emacs (and preferring VIM!!), I have tried to add some things like (require calendar) in my init, but with no results.
Any ideas? Or any pointers to debug what might be happening?
bk