On Thu, Apr 7, 2011 at 1:12 AM, Jambunathan K <kjambunat...@gmail.com> wrote: > Sean Davis <sdav...@mail.nih.gov> writes: > >> I would like to have a way to export a file to html from the >> command-line > > ,----[ C-h f org-export-as-html-batch RET ] > | org-export-as-html-batch is a compiled Lisp function in `org-html.el'. > | > | (org-export-as-html-batch) > | > | Call the function `org-export-as-html'. > | This function can be used in batch processing as: > | emacs --batch > | --load=$HOME/lib/emacs/org.el > | --eval "(setq org-export-headline-levels 2)" > | --visit=MyFile --funcall org-export-as-html-batch > | > | [back] > `----
Here what I ended up doing: /Applications/Aquamacs.app/Contents/MacOS/Aquamacs -nw --batch --eval "(setq aquamacs-version 2)" --visit=biowulf-2011.org --funcall=org-export-as-html It also works fine with other exports. Both "org-export-as-html" and "org-export-as-pdf" work just fine. Finally, I need to sort out the details, but aquamacs needed to have aquamacs-version set in order to run this in batch mode (hence, the (setq aquamacs-version 2) eval). Thanks for the pointer to get things started. Sean