{"id":47,"date":"2005-10-22T17:45:37","date_gmt":"2005-10-23T00:45:37","guid":{"rendered":"http:\/\/www.red-sweater.com\/blog\/?p=47"},"modified":"2005-10-22T22:02:35","modified_gmt":"2005-10-23T05:02:35","slug":"save-html-from-mail-message","status":"publish","type":"post","link":"https:\/\/redsweater.com\/blog\/47\/save-html-from-mail-message","title":{"rendered":"Save HTML from Mail Message"},"content":{"rendered":"<p>Usually when I get an email message with HTML content, I reach for the delete key faster than you can say &#8220;spam!&#8221; But there are some messages I receive which contain important HTML content. For instance, the invoicing system one of my large corporate clients uses (why, I don&#8217;t know), is completely unusable in most regards. The only way I have found to get a personal copy for my records of invoices I issue through it is to have it email me a copy. When the copy arrives, of course it is in a table-heavy HTML format, which is unreadable even if I attempt to save it as plain text. It looks terrible as HTML too, but at least it&#8217;s readable!<\/p>\n<p>\nSo, I get this HTML email regularly, and I need to save it to my &#8220;Unpaid Invoices&#8221; folder. Unfortunately, Apple Mail has no obviously easy way to do this. I have before today resorted to various steps including showing the raw source and manually copy\/pasting the HTML portion out and into another file. Today I decided the B.S. stops and I get an easy solution.\n<\/p>\n<p>\nI didn&#8217;t even bother looking around for an existing script. I knew what I wanted so I wrote it. The result is a script that should do a reasonably good job of grabbing the HTML out of a selected message and saving it to disk for you.  I don&#8217;t think of this as something that most people want to do often, but if you find you do need it, now you don&#8217;t have to write it yourself:\n<\/p>\n<p>Click here to download: <a href=\"http:\/\/www.red-sweater.com\/AppleScript\/SaveHTMLContent.zip\">Save HTML Content<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Usually when I get an email message with HTML content, I reach for the delete key faster than you can say &#8220;spam!&#8221; But there are some messages I receive which contain important HTML content. For instance, the invoicing system one of my large corporate clients uses (why, I don&#8217;t know), is completely unusable in most [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,12],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-applescript","category-usability"],"_links":{"self":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/47","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=47"}],"version-history":[{"count":0,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"wp:attachment":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}