A few AppleScripts
Posted: Sun Mar 20, 2011 7:16 pm
Donated by "Taja".
Online Search with Bookends
Description:
While reading a PDF or using my browser, I often find references I want to add to Bookends. This script will copy highlighted text, switch to Bookends, open online search, paste the text, and press the enter key (after a short delay)
It's an applescript saved as Automator workflow so it can be used directly as a OS X Service. Drop into User/Library/Services (create the folder if it's not there already) and assign a keyboard shortcut to it using System Preferences>Keyboard Shortcut>Services (I use the same one for "Online Search..." in Bookends). If you've changed the shortcut from the default (cmd+shift+w) you'll need to alter the script to reflect that.
https://dl.dropbox.com/u/31064864/SearchOnline.zip
Paste to Word and Insert Citation (MS Word)
This needs altering according to your Word applescript keyboard shortcuts (set in System Preferences>Keyboard>Keyboard Shortcuts>Application Shortcuts). It's set to work with cmd+ctrl+v for the "Insert Bookends Citation" applescript for Word, but you can change the key code/modifier key in the script so it presses any shortcut.
The script pastes highlighted text from an app (e.g. Preview, browser etc) into Word, then taps the cmd+ctrl+v keyboard shortcut to insert a citation via an applescript.
https://dl.dropbox.com/u/31064864/PasteToWord.zip
Insert Citation with Page Number (MS Word)
Description:
This is a niche one. Inserts a temporary citation into Word with "@" and moves the cursor into position to type the page number. Helpful if you find the default script distracting, as it doesn't involve switching to the Bookends dialogue that the default "Insert Citation with Modifiers" does. e.g. if you have a PDF and Word side by side, and want to cite without Bookends coming in front of any windows. Drop into Microsoft User Data>Word Script Menu Items and assign a keyboard shortcut.
https://dl.dropbox.com/u/31064864/InsertCitation.zip
Online Search with Bookends
Description:
While reading a PDF or using my browser, I often find references I want to add to Bookends. This script will copy highlighted text, switch to Bookends, open online search, paste the text, and press the enter key (after a short delay)
It's an applescript saved as Automator workflow so it can be used directly as a OS X Service. Drop into User/Library/Services (create the folder if it's not there already) and assign a keyboard shortcut to it using System Preferences>Keyboard Shortcut>Services (I use the same one for "Online Search..." in Bookends). If you've changed the shortcut from the default (cmd+shift+w) you'll need to alter the script to reflect that.
https://dl.dropbox.com/u/31064864/SearchOnline.zip
Paste to Word and Insert Citation (MS Word)
This needs altering according to your Word applescript keyboard shortcuts (set in System Preferences>Keyboard>Keyboard Shortcuts>Application Shortcuts). It's set to work with cmd+ctrl+v for the "Insert Bookends Citation" applescript for Word, but you can change the key code/modifier key in the script so it presses any shortcut.
The script pastes highlighted text from an app (e.g. Preview, browser etc) into Word, then taps the cmd+ctrl+v keyboard shortcut to insert a citation via an applescript.
https://dl.dropbox.com/u/31064864/PasteToWord.zip
Insert Citation with Page Number (MS Word)
Description:
This is a niche one. Inserts a temporary citation into Word with "@" and moves the cursor into position to type the page number. Helpful if you find the default script distracting, as it doesn't involve switching to the Bookends dialogue that the default "Insert Citation with Modifiers" does. e.g. if you have a PDF and Word side by side, and want to cite without Bookends coming in front of any windows. Drop into Microsoft User Data>Word Script Menu Items and assign a keyboard shortcut.
https://dl.dropbox.com/u/31064864/InsertCitation.zip