{"id":3101,"date":"2015-11-02T10:00:45","date_gmt":"2015-11-02T15:00:45","guid":{"rendered":"https:\/\/red-sweater.com\/blog\/?p=3101"},"modified":"2015-11-02T13:29:49","modified_gmt":"2015-11-02T18:29:49","slug":"quick-post-with-marsedit","status":"publish","type":"post","link":"https:\/\/redsweater.com\/blog\/3101\/quick-post-with-marsedit","title":{"rendered":"Quick Post With MarsEdit"},"content":{"rendered":"<p>Andy Ihnatko is <a href=\"http:\/\/ihnatko.com\/2015\/11\/01\/life-on-marsedit\/\">giving MarsEdit a spin<\/a>, and had some good feedback for me with respect to a specific blogging workflow he&#8217;s trying to achieve. In short: he wants something more Twitter-like to dash off thoughts and publish them directly to a blog.<\/p>\n<blockquote><p>\nWhat I really want is a system-wide hotkey. No matter where I am or what I\u2019m doing, tapping it causes a little note card window to pop up. I type a few sentences, maybe click a Twitter-style icon button to drop in a photo or paste in a link (which the app automatically grabs from the frontmost browser window), click the \u201cPost\u201d button, and then I\u2019m back to what I was doing before I had this brilliant idea for a quick post.<\/p><\/blockquote>\n<p>This is in line with some other thoughts I&#8217;ve had about using MarsEdit for &#8220;micro-blogging,&#8221; since my friend <a href=\"http:\/\/manton.org\">Manton Reece<\/a> has been playing with the idea for a forthcoming product.<\/p>\n<p>It&#8217;s firmly on my &#8220;to do list&#8221; to support a feature like this, but I thought I&#8217;d put some effort into seeing how closely I can approximate the desired workflow with MarsEdit as it stands today. AppleScript to the rescue?<\/p>\n<p>Click to download: <a href=\"https:\/\/red-sweater.com\/blog\/wp-content\/downloads\/2015\/11\/QuickPost.zip\" title=\"QuickPost.zip\" alt=\"Downloadable AppleScript for quickly invoking MarsEdit to publish a post\">Quick Post.scpt<\/a><\/p>\n<p>This script takes advantage of the fact that MarsEdit&#8217;s scripting support lets you create a new post and populate it with arbitrary default values. It then uses a somewhat crude AppleScript trick of <em>keeping the script running<\/em> until the newly created document is closed. Why? Because as its parting gift, it shuts the door on its way out, so to speak, by re-activating whatever app you were using when you invoked the script.<\/p>\n<p>Paired with <a href=\"http:\/\/red-sweater.com\/fastscripts\/\">FastScripts<\/a> or another keyboard shortcut tool for scripts, you can assign a global hotkey that empowers you to quickly create a new blog post in MarsEdit, send it, and then resume work on whatever it was you were doing previously.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Andy Ihnatko is giving MarsEdit a spin, and had some good feedback for me with respect to a specific blogging workflow he&#8217;s trying to achieve. In short: he wants something more Twitter-like to dash off thoughts and publish them directly to a blog. What I really want is a system-wide hotkey. No matter where I [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[],"class_list":["post-3101","post","type-post","status-publish","format-standard","hentry","category-marsedit"],"_links":{"self":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/3101","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=3101"}],"version-history":[{"count":1,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/3101\/revisions"}],"predecessor-version":[{"id":3102,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/3101\/revisions\/3102"}],"wp:attachment":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/media?parent=3101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/categories?post=3101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/tags?post=3101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}