This script is based on my Pinboard mirroring script that I use to keep Spotlight-searchable, OpenMeta-tagged copies of my Pinboard bookmarks locally. It’s a good system, but I was thinking that a direct bookmark file search in Launchbar would be exponentially faster than Spotlight on the occasions that I remembered any part of the title.
I dumped my entire Pinboard bookmark collection to a simple bookmark file and indexed it as a subgroup in Launchbar. I’m sure this would work fine with some other launchers as well, but it’s a 5-minute script… any porting will have to be up to those who need it.
Any description on the bookmark gets stripped of newlines and put into the “title” attribute, but this isn’t indexed by Launchbar. I just figured, since it’s there… Tags are included in the text of the bookmark as @tags to make it possible search by tag groups in Launchbar. It works reasonably well. If you know what you’re looking for, this is the fastest way I’ve found to get there.
You can edit the config in the script below and run it once to build the bookmark file. Open up Launchbar and hit I to get to the Index window. Hit the plus sign at the bottom to add a new Bookmark group and select Custom Bookmark file. Then point it to the file that the script created and you should have a fully searchable index in a few seconds. Then you can just run the script occasionally to overwrite the file with changes and additions. It’s not advanced; no delta checking or throttling, so use with loving care.
Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff on Twitter, GitHub, and Mastodon. Keep up with this blog by subscribing in your favorite news reader.