Hi John, On Mon, Aug 8, 2011 at 8:53 PM, John Hendy <jw.he...@gmail.com> wrote: >> If you can use wildcards to specify your files, it might be possible by >> just one extra call to --eval. Something like this might work: >> >> emacs --batch -l ~/.emacs --eval '(find-file-read-only "<wildcard>" t)' \ >> --eval '(org-batch-agenda "w")' > ~/org/aux/agenda-export.txt >> > > Hmm. That might work. Everything I pull from is in ~/org... could the > wildcard simply be "~/*.org"? Forgive my emacs wildcard ignorance.
As far as I know, emacs accepts any wildcard that is valid in the shell. Since all your files are in ~/org, I would say try "~/org/*.org". The '~/org/' limits it to files within your org directory and the '*.org'[1] limits it to all files with a .org extension. I hope this helps. :) Footnotes: [1] The asterisk (*) stands for zero or more characters. You can find more details in `man bash` under the heading "Pattern Matching". -- Suvayu Open source is the future. It sets us free.