- Created by iandol
- π Last Updated: 30/03/22 04:23:12
- π Stars on GitHub: 96
- Please consider supporting the creator by Starring or Sponsoring them on GitHub!
- Get Workflow
- Get Latest Release
- Get Source Code
From their README
Bookends Tools
Bookends is an excellent bibliographic/research manager for macOS. This Alfred workflow curates around 11 tools together in one interface to integrate between Bookends and other apps. You can use Alfred keywords (beβ¦) and/or your preferred key binding to trigger them (edit the Hotkey trigger). The workflow is designed for Alfred 3 and 4, and should keep itself up-to-date using OneUpdater.
Note: the tools denoted by π utilise Applescript System Events
to trigger keyboard bindings with delays; the delays work fine for me but may need to be adjusted for you. If the tools seems to not work try to manually type βV and enter.
key: π: select some text in another app then trigger tool
β π: select reference(s) within Bookends then trigger tool
β β¨: trigger tool and enter some text
Β
beidsearch
π β Find a selected uniqueID in Bookends. For example, if you have a temporary citation like {Koffka, 1922, #6475} in your word-processor, double-click select the Bookends ID6475
, then trigger this workflow and it will find the reference in Bookends for you.bebrowser
π β Search selected text in Bookends browser. For the Pubmed interface you should select this manually in the bookends browser before triggering this tool. If the automatic paste into the search field fails, press βV and ENTER to trigger the search.berefsearch
π β Take selected text like "(Doe et al., 2005)" citation, clean it up to become "Doe 2005" and send it to Bookend's quick search. This is great because you can take a formatted ref in a text document and search for the first author/year, then quickly paste back (βY for Scrivener) the Bookends style temporary citation in its place!bequickadd
π β Take a selectedDOI
/PMID
/ISBN
/JSTOR
in any application and send it to Bookend's Quick Add (added in Bookends 13.0.3+) to quickly add this reference to your database.betobibtex
β¨ β You enter the name of a Bookends static/smart group name and this will create a BibTeX bibliography file for those particular groups. Very useful for Pandoc and/or LaTeX workflows -- though note that recent Bookends versions can auto-sync the database to a BibTeX file (see tips here). You can optionally generate JSON. You can configure the export path in the workflow variables (default Desktop/).betoopml
π β Select multiple references within Bookends, then run this to create an OPML file which you can import into Scrivener or other OPML-aware tool. This will contain the abstract and notes which is very useful for research. It contains links back to the Bookends reference. You can configure the export path in the workflow variables (default Desktop/).bescopus
π β Select a reference with a DOI in Bookends, then trigger this to search Scopus with that DOI. It will return an inline results list for the Scopus entry AND the Cited-by page if available. Select an entry to open that page. Environment variables:appendScopusNotes
[true/false] β copy the URLs into the Notes field |scopusKey
[value] if you have registered for your own key enter it here |scopusBaseURL
[url] β If you got through a proxy, enter the URL base to replace https://www.scopus.com/.becite
β¨ β Activatebecite
in any application to search your bookends database with one or more author/editor names and an optional year (for example:friston hobson 2014
), and get a floating inline results list. You can then select a result and paste the selected ref as a temporary citation (β pastes Pandoc style, β₯ pastes MMD style, β pastes formatted ref, β§ open ref in Bookends, ββ₯ open PDF directly, [fn] opens attachment in Bookends, β§β copies thebookends://
link as text). For becite, betitle. and beall there is also a workflow environment variable (citeUsesRTF & commentText) to copy the Pandoc/MMD temporary citation using RTF; this puts the link back to bookends into an RTF comment (and/or annotation in Scrivener).betitle
β¨ β Enter one or more words contained in the title or keywords and an optional year, and get a floating inline results list. You can then paste this as a temporary citation (β pastes Pandoc style, β₯ pastes MMD style, β pastes formatted ref, β§ open ref in Bookends, ββ₯ open PDF directly, [fn] opens attachment in Bookends, β§β copies thebookends://
link as text).beall
β¨ β You enter one or more words contained in any field and an optional year, and get an inline results list. You can then paste this as a temporary citation (β pastes Pandoc style, β₯ pastes MMD style, β pastes formatted ref, β§ open ref in Bookends, ββ₯ open PDF directly, [fn] opens attachment in Bookends, β§β copies thebookends://
link as text).bebib
β¨ β You enter one or more author/editor names and an optional year, and get an inline results list. You can then paste the selected ref as a formatted reference (see workflow variablecitationStyle
; β pastes Pandoc style, β₯ pastes MMD style).beconvert
π β This has a very specific use, say you have an author-date formatted intext citation(Barlow et al., 1963)
, select it and run this to get a temporary citation using the most likely BibTeX key[barlow1963]
. It allows me to take an author-date formatted manuscript from someone else and as long as I have regular BibTeX keys[authoryear]
, manually converts the intext citations to a form Bookends or Pandoc can then scan, saving some time.
Workflow variables
There are several workflow variables which let you modify the functionality of the tools:
tempCitationStyle
: for becite / betitle / beall the default temporary citation style is Bookends (with key modifiers allowing Pandoc and MMD formats). However if you will never use the Bookends format, you can settempCitationStyle
toPandoc
/MMD
/LaTeX
and the default temp citation will be set accordingly.attachmentsFolder
: relative or absolute path to where your Bookends attachments are stored. This is used so that you can Quicklook results with PDF attachments from becite / betitle / beall tools (press [shift] or βY)BibTeXtoJSON
(default = FALSE): allows you to convert the BIB file to a JSON file, which at least for Pandoc-citeproc is much faster (~3X) to then process for the bibliography. Requires pandoc-citeproc for the conversion...citeUsesRTF
(default = FALSE) &commentText
: for thebecite
andbetitle
tools for Pandoc/MMD temporary citations, if you enable this then the temp citation is copied as RTF with a comment-enclosed link back to Bookends. In Scrivener if you enable PreferencesβΈSharingβΈImport comments as inline annotations, then the comment becomes an inline annotation.commentText
is the text that is linked back to Bookends (default is @). Forbebib
tool it will toggle whether the formatted ref is plain or RTF.customExportFormat
(default = EMPTY) : forbetobibtex
the default is to use the standard BibTeX.fmt export format. This includes abstract and addresses which are not always needed for bibliography generation. You can therefore specify a custom format, for example like this BibTeX-Minimal format, which omits these fields and results in a faster BibTeX generation and smaller resultant file.protectBibTitles
(default = FALSE): makes titles in the BIB file {{ wrapped }} so the case is not changed in subsequent processing.citationStyle
(default = APA 6th Edition): is the Bookends bibliographic style used bybebib
when outputting the formatted reference.exportPath
(default = Desktop): used bybetoopml
andbetobibtex
appendScopusNotes
(default = FALSE): allows you to toggle the behaviour whereby the Scopus URLs are appended back into the Bookends reference note stream.scopusKey
: your personal Scopus API key (see below).scopusBaseURL
: If you use a proxy that changes the base URL, enter it here to replace the default https://www.scopus.com/.
Scopus Info
For the Scopus search tool, ideally you should register for your own Scopus API key (without it it will use the demo key which may or may not work) and enter it in the workflow variables. The Scopus URLs also benefit from an institutional subscription, otherwise you will see a Scopus preview (which still contains useful information). If your institution offers a proxy, then you can enter the scopusBaseURL
variable to use that.
Sources
Several of these very useful tools have been modified from the following sources:
betoopml
Thanks to Dave Glogowski (dave83); Bookends forum thread
betobibtex
Thanks and MIT copyright to Naupaka Zimmerman; Bookends forum thread | Original Gist
becite & bebib
Thanks to kseggleton for the original applescript version; Bookends forum thread
OneUpdater
Thanks to Vitor for his excellent update system for Alfred workflows: OneUpdater