First, thank you for Hook!! I have wanted precisely this utility for years, and still can’t grasp how it’s not a built-in part of Mac OS.
One small shortcoming for me is being able to select text in a PDF, and have that text be the name of the markdown link that I paste into some other document. The quote feature within hook is nice, but if I’m taking many notes on a single paper I don’t really want the title of the paper appearing over and over in my notes. It’s better to have only the quoted text appear. So, I wrote this tiny applescript that copies the text in the clipboard and invokes hook to create a proper markdown link.
- Select text in a pdf reader that supports hook markdown links. Skim, for example.
- Press cmd-c to copy your selected text to the clipboard
- Invoke the script (I use an alfred hotkey to launch it)
- Paste the markdown link, which is now in your clipboard, into whatever doc you like.
Here’s the script:
tell application “Hook”
set b to bookmark from active window
set the clipboard to “[” & the clipboard & “](” & address of b & “)”