{"id":2847,"date":"2013-01-03T13:08:56","date_gmt":"2013-01-03T18:08:56","guid":{"rendered":"http:\/\/www.red-sweater.com\/blog\/?p=2847"},"modified":"2013-01-03T13:10:53","modified_gmt":"2013-01-03T18:10:53","slug":"paste-safari-link-in-marsedit","status":"publish","type":"post","link":"https:\/\/redsweater.com\/blog\/2847\/paste-safari-link-in-marsedit","title":{"rendered":"Paste Safari Link In MarsEdit"},"content":{"rendered":"<p>One of the <a href=\"http:\/\/www.red-sweater.com\/marsedit\/\">MarsEdit<\/a> features that <a href=\"http:\/\/finerthings.in\/mac\/marsedit-takes-the-pain-out-of-pasting-links\/\">people really like<\/a> is the simplicity of pasting a URL link into a post. Just copy a URL from anywhere, then press <span style=\"white-space:nowrap;\">Cmd-Shift-A<\/span> to transform the selected text in MarsEdit into a link.<\/p>\n<p>Today a MarsEdit customer wrote with a more specific request: he would like to easily insert links to whatever page he happens to have open in Safari, <em>while also using the title of the page as the link text.<\/em>\u00a0This is the kind of specialized feature that is less likely to show up as a built-in feature of MarsEdit, because if I added all the specialized features that might be handy here and there, it would quickly become overwhelming. But it&#8217;s the kind of thing where I&#8217;m very grateful for MarsEdit&#8217;s scriptability. Within a few minutes, I was able to share with this customer a script that does just what he wanted.<\/p>\n<p>Click to download:\u00a0<a href=\"http:\/\/red-sweater.com\/AppleScript\/PasteSafariLink.zip\">Paste Safari Link<\/a>\u00a0script.<\/p>\n<p>If you want to attach a keyboard shortcut to the script, you could use <a href=\"http:\/\/www.red-sweater.com\/fastscripts\/\">FastScripts<\/a>, or you can add the script to MarsEdit&#8217;s Scripts folder, and then assign a keyboard shortcut using System Preferences:<\/p>\n<ol>\n<li>From MarsEdit&#8217;s script menu, select &#8220;Open Scripts Folder&#8221;.<\/li>\n<li>Drag the &#8220;Paste Safari Link&#8221; script into the folder.<\/li>\n<li>Open System Preferences<\/li>\n<li>Navigate to Keyboard, Keyboard Shortcuts, and select Application Shortcuts.<\/li>\n<li>Add a new shortcut for MarsEdit, specifying &#8220;Paste Safari Link&#8221; as the menu title.<\/li>\n<\/ol>\n<p>When invoked, the script will insert a link to the active Safari page&#8217;s URL, using the page&#8217;s title as the text of the link. If you want to use different text as the title of the link, the just type and select it in MarsEdit before invoking the script.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the MarsEdit features that people really like is the simplicity of pasting a URL link into a post. Just copy a URL from anywhere, then press Cmd-Shift-A to transform the selected text in MarsEdit into a link. Today a MarsEdit customer wrote with a more specific request: he would like to easily insert [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,40],"tags":[],"class_list":["post-2847","post","type-post","status-publish","format-standard","hentry","category-applescript","category-marsedit"],"_links":{"self":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/2847","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=2847"}],"version-history":[{"count":1,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/2847\/revisions"}],"predecessor-version":[{"id":2848,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/2847\/revisions\/2848"}],"wp:attachment":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/media?parent=2847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/categories?post=2847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/tags?post=2847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}