Emacs wizardry for the non-programmer.
December 30, 2008 9:37 AM
Subscribe
How can I automate emacs to open a file, execute a bunch of macros, then save the file in a new format?
I need to extract bookmarks from large PDFs into text files importable into MS Access. I have been using emacs to open the file, then used 5-6 macros to extract the bookmarks and format it properly to be imported into Access. This gets extremely tedious, I have about 100 files to convert.
Is there a more elegant or convenient way to do this? I would love to be able to automate it in emacs. I am not a programmer, and although I have tried to figure out how to do this with elisp, it just doesn't make sense to me. I'm running emacs 22.2.1 on Windows and Acrobat 6 and 7 standard.
posted by Barry B. Palindromer to technology (5 comments total)
1 user marked this as a favorite
(setq list-of-file-names '("test-file" "test-file-two"....)) (defun do-something-to-file (file-name) (save-excursion (find-file file-name) (goto-char (point-min)) ... (save-buffer))) (mapc 'do-something-to-file list-of-file-names)posted by rdr at 9:52 AM on December 30, 2008