{"id":4842,"date":"2012-05-17T10:11:04","date_gmt":"2012-05-17T15:11:04","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=4842"},"modified":"2017-11-22T14:29:40","modified_gmt":"2017-11-22T19:29:40","slug":"restoring-mail-keyboard-shortcuts","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/05\/17\/restoring-mail-keyboard-shortcuts\/","title":{"rendered":"Restoring Mail Keyboard Shortcuts"},"content":{"rendered":"<p>I&rsquo;ve long used the Keyboard pane in System Preferences to assign shortcuts for the items in &ldquo;From&rdquo; pop-up menu in Mail&rsquo;s &ldquo;New Message&rdquo; window. This lets me send the message from a different account just by pressing a key.<\/p>\r\n<p>(Interestingly, this same technique works for the standard &ldquo;<a href=\"http:\/\/www.macsparky.com\/blog\/2008\/3\/19\/keyboard-shortcut-for-save-as-pdf-in-os-x.html\">Save as PDF&#8230;<\/a>&rdquo; menu item when printing, but <a href=\"http:\/\/c-command.com\/forums\/showthread.php\/3505-Shortcut-for-Print-to-EagleFiler\">not for user-supplied PDF services<\/a>.)<\/p>\r\n<p>Mac OS X 10.7 Lion introduced <a href=\"rdar:\/\/9915045\">a bug<\/a> whereby editing a keyboard shortcut for <em>any<\/em> application would render the Mail keyboard shortcuts inoperable. If you examine Mail&rsquo;s preferences file, you can see that a non-printable character is inserted on either side of the menu item title. Preferences for other applications are unaffected; I think some part of the OS doesn&rsquo;t like that the titles of these menu items contain angle brackets.<\/p>\r\n<p>Before editing a shortcut in System Preferences, you can use this Terminal command to save your Mail keyboard shortcuts:<\/p>\r\n<pre>defaults read com.apple.mail NSUserKeyEquivalents<\/pre>\r\n<p>Copy everything in curly braces, which for me is:<\/p>\r\n<pre>{\r\n    \"<a href=\"http:\/\/mjtsai.com\/blog\/2012\/03\/09\/apple-mail-tip-of-the-day\/\">Add Sender to Address Book<\/a>\" = \"@~^$y\";\r\n    \"Michael Tsai &lt;dropdmg@c-command.com&gt;\" = \"@^$d\";\r\n    \"Michael Tsai &lt;eaglefiler@c-command.com&gt;\" = \"@^$e\";\r\n    \"Michael Tsai &lt;mjt@c-command.com&gt;\" = \"@^$c\";\r\n    \"Michael Tsai &lt;mjt@mjtsai.com&gt;\" = \"@^$m\";\r\n    \"Michael Tsai &lt;mtsai@atpm.com&gt;\" = \"@^$a\";\r\n    \"Michael Tsai &lt;spamsieve@c-command.com&gt;\" = \"@^$s\";\r\n}\r\n<\/pre>\r\n<p>To restore the Mail keyboard shortcuts, type:<\/p>\r\n<pre>defaults write com.apple.mail NSUserKeyEquivalents '<\/pre>\r\n<p>Then paste, enter the closing <code>'<\/code>, and press Return.<\/p>\r\n<p>Update (2012-07-31): This bug seems to be fixed in Mountain Lion.<\/p>","protected":false},"excerpt":{"rendered":"<p>I&rsquo;ve long used the Keyboard pane in System Preferences to assign shortcuts for the items in &ldquo;From&rdquo; pop-up menu in Mail&rsquo;s &ldquo;New Message&rdquo; window. This lets me send the message from a different account just by pressing a key. (Interestingly, this same technique works for the standard &ldquo;Save as PDF&#8230;&rdquo; menu item when printing, but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[126,131,150,14,649,125,30,211],"class_list":["post-4842","post","type-post","status-publish","format-standard","hentry","category-technology","tag-applemail","tag-bug","tag-email","tag-emailclient","tag-esoteric-preferences","tag-keyboardshortcuts","tag-mac","tag-lion"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/4842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=4842"}],"version-history":[{"count":8,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/4842\/revisions"}],"predecessor-version":[{"id":8078,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/4842\/revisions\/8078"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=4842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=4842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=4842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}