Automation
You can get data in and out of Hook thanks to its AppleScript dictionary. You can get a list of all the bookmarks created by Hook. For any bookmark, you can get all the bookmarks hooked (linked) to it. You can also automatically invoke Hook on a particular file bookmark. There are some other functions.
That means that you can control Hook with launchers (such as Alfred and LaunchBar), Keyboard Maestro, or other scripts and programs.
LaunchBar, Aflred & Trickster
- Free LaunchBar Actions for Controlling Hook – Hook. That page links to a blog post with a screencast.
- Alfred workflows. There’s an associated blog post.
- the Trickster App by Apparent Software Now Shows You Which Files Have Hooks: Click Its New Hook Icon to Invoke Hook, or Use a Shortcut – Hook.
Brett Terpstra has created a great command line interface to control Hook. Check it out.
Hook users, including CogSci Apps, sometimes share their scripts in the Hook scripts topics of the Hook Productivity Forum.
Mesh link Finder items
GitHub – ttscoff/hook_goodies contains:
- Hook To Clipboard: Creates a hook link between the selected file and the link in your clipboard. The Service version of this can be triggered as a Finder Extra or via right click menu. The AppleScript version can be used in any kind of automation (Keyboard Maestro, BetterTouchTool, etc.)
- Mesh Hook: Creates bi-directional links between two or more selected files. The AppleScript is written to work on a Finder selection, but could easily be modified to accept files from any automation that could pass them.
DEVONthink automation
- Scripts to Apply & Sync a DEVONthink “Hook” tag — and More DEVONthink Goodies – Hook
- Zsolt Benke has written a script to Archive Hook bookmarks with DEVONthink.
More…
Given Hook’s API, you can find other Hook-related scripts on the web.
Similarly, please consider sharing your Hook automation scripts on the Hook productivity forum or wherever else there are interested readers, like Zsolt Benke, Brett Terpstra and others have.