{"id":3070,"date":"2015-07-09T14:49:46","date_gmt":"2015-07-09T18:49:46","guid":{"rendered":"https:\/\/www.red-sweater.com\/blog\/?p=3070"},"modified":"2015-07-09T14:58:21","modified_gmt":"2015-07-09T18:58:21","slug":"cmd-number-shortcuts-for-safari-9","status":"publish","type":"post","link":"https:\/\/redsweater.com\/blog\/3070\/cmd-number-shortcuts-for-safari-9","title":{"rendered":"Cmd-Number Shortcuts For Safari 9"},"content":{"rendered":"<p>If you&#8217;re a Safari user and you&#8217;ve updated to the Safari 9 or <a href=\"https:\/\/beta.apple.com\/sp\/betaprogram\/welcome\">OS X 10.11 beta<\/a>, you may have noticed a minor change in the default keyboard shortcuts for the app.<\/p>\n<p>In Safari 8 and earlier, keyboard shortcuts combining the Command key and a number, e.g. Cmd-1, Cmd-2, Cmd-3, would open the corresponding bookmark bar item. So if you arranged your most-frequently-visited sites in the first few bookmark bar slots, you could easily jump to those pages by muscle memory thanks to these shortcuts.<\/p>\n<p>In Safari 9, these shortcuts now switch to any <em>open tabs<\/em> you have in a Safari window. This will come as a surprise to folks who have gotten used to e.g. using Cmd-1 to quickly jump to e.g. Google News, or Yahoo Stocks.<\/p>\n<p>The implicit shortcuts for bookmark bar items are still available, but you have to add the option key into the mix. So where you used to press Cmd-1, you must now press Cmd-Opt-1.<\/p>\n<p>This may not be a big deal to you, and you may choose to simply adapt, but for those who got used to the old behavior and want to preserve a similar functionality, <a href=\"http:\/\/red-sweater.com\/fastscripts\/\">FastScripts<\/a> can do the job of putting things back into order for you.<\/p>\n<p>Safari&#8217;s scripting interface doesn&#8217;t support selecting a specific bookmark bar item by number, so FastScripts can&#8217;t <em>exactly<\/em> replicate the old behavior. What it can do though is bind (just about) any keystroke to a script that opens a specific URL in Safari. You might find after getting used to doing things &#8220;the FastScripts way&#8221; that you prefer it to the old Safari way, because you won&#8217;t be limited to using numeric shortcuts, and will instead be able to choose whatever shortcuts you like. For example, I use Ctrl-N as my shortcut to quickly jump to Google News.<\/p>\n<p>Here&#8217;s a step-by-step procedure for adding shortcuts to Safari to open a specific URL:<\/p>\n<ol>\n<li>Download <a href=\"http:\/\/red-sweater.com\/fastscripts\/\">FastScripts<\/a>. It&#8217;s free for up to 10 shortcuts.<\/li>\n<li>Launch FastScripts and find its icon in the upper-right corner of your Mac&#8217;s screen. It looks like this: <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.red-sweater.com\/blog\/wp-content\/downloads\/2015\/07\/MenuIconGray@2x.png\" alt=\"MenuIconGray 2x\" title=\"MenuIconGray@2x.png\" border=\"0\" width=\"20\" height=\"19\" \/>\n<\/li>\n<li>Launch or activate Safari so it&#8217;s the front-most app.<\/li>\n<li>Click the FastScripts icon and select FastScripts -> Create Safari Scripts Folder.<\/li>\n<li>Download <a href=\"https:\/\/www.red-sweater.com\/blog\/wp-content\/downloads\/2015\/07\/OpenRedSweater.zip\" title=\"OpenRedSweater.zip\" alt=\"OpenRedSweater\">this script<\/a> and copy it to the Safari scripts folder.<\/li>\n<li>Double-click the script to open in Script Editor.<\/li>\n<li>Change the URL in the script from &#8220;http:\/\/www.red-sweater.com&#8221; to whatever URL you like, e.g. &#8220;http:\/\/news.google.com\/&#8221;<\/li>\n<li>Save the script and rename it to e.g. &#8220;Open Google News&#8221;.<\/li>\n<li>Back in Safari, hold the Command down and select &#8220;Open Google News&#8221; from the FastScripts menu. This is a shortcut to quickly change a script&#8217;s keyboard shortcut.<\/li>\n<li>Set the desired keyboard shortcut in FastScripts&#8217;s preferences.<\/li>\n<li>There&#8217;s no step 11! From now on, whenever you&#8217;re in Safari and want to jump to that URL, just press the keyboard shortcut, and you&#8217;re done.<\/li>\n<\/ol>\n<p>This sounds a bit more complicated to set up than it is in practice. Once you get the hang of it you&#8217;ll be able to quickly replace however many Cmd-Number shortcuts as you like in Safari, and it might even open the door to overriding behaviors of other apps. This is an area where FastScripts really shines. Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re a Safari user and you&#8217;ve updated to the Safari 9 or OS X 10.11 beta, you may have noticed a minor change in the default keyboard shortcuts for the app. In Safari 8 and earlier, keyboard shortcuts combining the Command key and a number, e.g. Cmd-1, Cmd-2, Cmd-3, would open the corresponding bookmark [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,12],"tags":[],"class_list":["post-3070","post","type-post","status-publish","format-standard","hentry","category-fastscripts","category-usability"],"_links":{"self":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/3070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/comments?post=3070"}],"version-history":[{"count":3,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/3070\/revisions"}],"predecessor-version":[{"id":3073,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/3070\/revisions\/3073"}],"wp:attachment":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/media?parent=3070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/categories?post=3070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/tags?post=3070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}