[Tool] Improving Bookends Integration with Other software

A place for users to ask each other questions, make suggestions, and discuss Bookends.
Post Reply
iandol
Posts: 465
Joined: Fri Jan 25, 2008 2:31 pm

[Tool] Improving Bookends Integration with Other software

Post by iandol »

I attach a couple of scripts (Jon the developer of Bookends wrote one and I modified it to create the other) to ease interaction between your word processor, browser, or any other app and Bookends.

Live Search Formatted/Unformatted Ref
The first takes a text selection in your word processor, that is a formatted or unformatted ref, removes unnecessary text/characters and searches for it within bookends using the Live-search field.

If I have text like:

Code: Select all

(Hubel and Wiesel, 1962)
it strips [(), and] to leave [Hubel Wiesel 1962], which finds that reference in bookends instantly. A simple ⌘Y and that selected text gets replaced with the proper temporary citation without any further fiddling. It works with existing temporary citations too, so:

Code: Select all

{Shipp et al., 2013, #54808}
gets converted to [Shipp 2013] search to quickly check the source reference in Bookends.

Search selected text in Pubmed
The second takes a text selection, and pastes it into Bookends Pubmed search engine. Again it works in any app not just Scrivener. it means I can select an author, DOI or some words in my browser/word processor and quickly run a Pubmed search with Bookends (i.e. then easy to import into the database). For it to work optimally, it needs Bookends 12.7 beta (introducing the new cloud sync) and later to work, as Jon made a small change to the Pubmed browser to make it more reliable.

How to use them?
Find them attached:
Bookends Scripts.zip
(8.41 KiB) Downloaded 752 times
As they are plain Applescripts they normally live in ~/Library/Scripts, but to quickly access them you need some way to trigger them. I use Quicksilver, which automatically indexes ~/Library/Scripts, so you can easily trigger these scripts wherever you are. Alfred/Launchbar/Keyboard maestro and others also allow you to quickly trigger Applescripts, though each may do so in a slightly different way. OS X also has a built-in scripts menu you can display (Script Editor > Preferences > General to enable it); you then run them from the menu bar.

See the raw code:

https://gist.github.com/iandol/c8fdd7884379adb8c2db
Post Reply