Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create keyboard shortcuts for Safari bookmarks Web Browsers
If you have bookmarked a site, for instance macosxhints.com, and visit it frequently, you can save time creating a custom keyboard shortcut to that bookmark. Here is how. First quit Safari, then launch Terminal and type...
defaults write com.apple.Safari NSUserKeyEquivalents \
'{"bookmarkName"="keys";}'
...where bookmarkname is the name you've given the bookmark, and keys is one or more of the following...
  • @ = Command
  • $ = Shift
  • ~ = Option
  • ^ = Control
...followed by the desired key combination. For example, to set up a bookmark called MacOSXhints with the shortcut Command-Option-X, you should type this in Terminal:

defaults write com.apple.Safari NSUserKeyEquivalents '{"MacOSXhints"="@~x";}'

You can create as many shortcuts as you want at one time just by duplicating the code within the braces. The example below will create two shortcuts, one to Apple site's bookmark (Command-Shift-A) and one to macosxhints' bookmark (Command-Option-X):

defaults write com.apple.Safari NSUserKeyEquivalents '{"MacOSXhints"="@~x";"Macworld"="@$a";}'

[robg adds: This is a nice timesaver over trekking through the Keyboard Shortcuts panel in the Keyboard & Mouse System Preferences panel. I'm pretty sure this should work in both 10.3 and 10.4, but I haven't tested it in 10.3.]
    •    
  • Currently 1.60 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[25,426 views]  

Create keyboard shortcuts for Safari bookmarks | 11 comments | Create New Account
Click here to return to the 'Create keyboard shortcuts for Safari bookmarks' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create keyboard shortcuts for Safari bookmarks
Authored by: callefjant on Aug 24, '06 08:36:18AM

Also remember that cmd 1-9 works for the first 9 (non-folder) bookmarks in the bookmarks bar, no matter if it is hidden or not.



[ Reply to This | # ]
Create keyboard shortcuts for Safari bookmarks
Authored by: JadeNB on Aug 24, '06 08:54:45AM

This kind of writing-keyboard-shortcuts-directly-to-defaults approach leads me to wonder if a longtime dream of mine can be realised without add-on software. That dream is this -- that I can assign keyboard shortcuts in Finder to folders other than Home, Applications, Utilities, &c. Is this possible? I even tried mucking around with the menu in a backed-up copy of Finer, but I still couldn't seem to do it.



[ Reply to This | # ]
Create keyboard shortcuts for Safari bookmarks
Authored by: judielaine on Aug 24, '06 10:15:47AM

I've another wish -- what about opening whole folders of bookmarks in tabs?

Most of my "oft opened" URLS i do as sets with "Open in tabs."



[ Reply to This | # ]
Create keyboard shortcuts for Safari bookmarks
Authored by: jda on Aug 24, '06 10:54:41AM

Get Quicksilver and set a trigger to open a folder of URLs in tabs.



[ Reply to This | # ]
Create keyboard shortcuts for Safari bookmarks
Authored by: rjbailey on Aug 24, '06 04:00:30PM

Please provide instructions. Given the state of QS's (non)documentation and beta status, deciphering the scant user tips and enduring successive QS crashes is not my idea of fun. I've never been rewarded by putting any time into QS configuration other than the most basic.



[ Reply to This | # ]
Create keyboard shortcuts for Safari bookmarks
Authored by: jda on Aug 25, '06 10:40:46AM

You're lucky: this is basic.
Go QS prefs. Select Triggers. Click the plus key at the bottom to make a new trigger and select Hotkey. Type the name of your folder, tab to action and type open url. Click save. In the trigger column, double click None and set your hot key. QS is definately worth a little bit of time. Check you don't need to update, as I've never suffered crashes.



[ Reply to This | # ]
Camino?
Authored by: googoo on Aug 24, '06 11:08:19AM

This hint is really cool. Is there a way to set bookmark keys in Camino?

-Mark



[ Reply to This | # ]
Re: Camino?
Authored by: Uncle Asad on Aug 24, '06 10:29:42PM

This hint should work in any Mac browser; as robg's comment indicated, the hint is just a command-line alternative to the Keyboard Shortcuts section of the Keyboard & Mouse System Preferences.

Note, however, that this will break the Cmd-click/Cmd-Shift-click toggles (for new tab/new background tab) for that bookmark in Camino.



[ Reply to This | # ]
Create keyboard shortcuts for Safari bookmarks
Authored by: boredzo on Aug 24, '06 03:04:54PM

Or you could just use Keyboard and Mouse prefs. Same thing, but with a GUI.



[ Reply to This | # ]
Create keyboard shortcuts for Safari bookmarks
Authored by: dcottle on Sep 02, '06 06:49:03AM

How about Firefox?



[ Reply to This | # ]
Create keyboard shortcuts for Safari bookmarks
Authored by: stevegray on Sep 15, '06 01:00:19PM

I've tried to follow these instructions for QS but after selecting my folder I do not have the option to use "Open URL" as an action. I can only "Open".

I'm on the latest version of QS so I don't know why I can't see that action. Anyone?



[ Reply to This | # ]