Create arbitrary keyboard shortcuts for bookmarklets

Nov 19, '08 07:30:00AM

Contributed by: GaelicWizard

One of the things that makes Delicious (formerly del.icio.us) so useful it that it can integrate, to varying degrees, with all broswers via its JavaScript bookmarklets. Many other sites also use these -- for example, I have bookmarklets for Digg, FaceBook, and more. Wouldn't it be nice to be able to activate these from a keyboard shortcut? You can!

  1. Add a bookmarklet to your Bookmarks menu, not to your favorites bar.
  2. In System Preferences, go to the Keyboard Shortcuts tab of the Keyboard & Mouse System Preferences panel, and add a keyboard shortcut with the exact name of your bookmarklet. You can specify the application as either your chosen browser, or for All Applications if you use multiple browsers. If you choose All Applications, just make sure the bookmarklet has the same name in all browsers.
Now I can post to Delicious by pressing the same keyboard shortcut everywhere. Yay!

[robg adds: This works, of course, and can be extended to create keyboard shortcuts for any site in your Bookmarks menu, not just bookmarklets. It was mentioned in a footnote to this older hint, which covered a possibly quicker (but definitely not GUI-based) method of creating keyboard shortcuts in Safari (and any other program).]

Comments (3)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20081113142814877