06/07/2016 alfredbibdeskacademic tools
If you use Alfred (see here) and BibDesk (see here), you might find the following useful. The script below uses Alfred’s “Workflow” feature. It provides a set of commands to search bibliographical entries directly from Alfred, and execute a variety of actions related to citing, opening PDFs, narrowing searches, etc. Download it on GitHub. The basic options are:
bb X = search all bibligraphic fields within BibDesk for X
bt X = search titles within BibDesk for X
ba X = search authors/editors within BibDesk for X
This is what the first option looks like, after I typed in “Cohen”:
!
Several actions are possible, depending on which modifier keys you press:
The citation option is the most complicated and the most useful. After selecting it, you are prompted to enter a page range for the citation (you can leave it blank) and a citation format. I use Pandoc and LaTeX, but it is easy to add/remove other formats from within Alfred.
Then, depending on your selection, you’ll get a notification of the item copied into the clipboard. If you are in an active text field — i.e., if you do all this when working in Word, for example — the entry is pasted automatically. It looks like this:
The Workflow is based on BibQuery by Hackademic. I modified it to use JSON (instead of XML), and modified the way it interacts with Alfred. Consequently, there is also a lot of dead code in the python scripts. I left it there with the hopes of one day making more search options (keyword, group, etc.) available. The entire flow looks like this: