Hi Myles,
I counter your tip with my own on capturing pdfs.
Maybe you'll find some of this stuff useful for your case.
My capture template captures a pdf file that I have to read.
It works for:
1. A pdf file in doc-view mode.
2. Any dired buffer with point on a pdf file.
What it does:
2. The item title is "Read blah-blah by Foo", if the pdf name has
proper format, otherwise it's just "Read blah-blah".
3. The pdf is attached to the TODO item.
4. A note is added with the capture time.
Here's the code:
(setq org.d "~/Dropbox/org/")
(require 'org-attach)
(require 'org-capture)
(defun org-process-current-pdf ()
(let* ((buffer (org-capture-get :buffer))
(buffer-mode (with-current-buffer buffer major-mode))
(filename (org-capture-get :original-file)))
(when (file-directory-p filename)
(with-current-buffer (org-capture-get :original-buffer)
(setq filename (dired-get-filename))))
(when (string= (file-name-extension filename) "pdf")
(let ((org-attach-directory (concat org.d "data/"))
(name (file-name-sans-extension
(file-name-nondirectory filename))))
(org-attach-attach filename nil 'cp)
(if (string-match "\\[\\(.*\\)\\] \\(.*\\)(\\(.*\\))" name)
(format "\"%s\" by %s"
(match-string 2 name)
(match-string 1 name))
name)))))
(add-to-list 'org-capture-templates
'("p" "Pdf article" entry (file+olp (concat org.d "
gtd.org") "Projects" "Scientific Articles")
"* TODO Read %(org-process-current-pdf)\nAdded: %U %i\n %?\n"))
regards,
Oleh