{"id":42118,"date":"2024-02-14T14:18:55","date_gmt":"2024-02-14T19:18:55","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=42118"},"modified":"2024-04-08T11:06:46","modified_gmt":"2024-04-08T15:06:46","slug":"mail-and-preview-working-together","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2024\/02\/14\/mail-and-preview-working-together\/","title":{"rendered":"Mail and Preview Working Together"},"content":{"rendered":"<p><a href=\"https:\/\/wadetregaskis.com\/mail-preview-working-together\/\">Wade Tregaskis<\/a>:<\/p>\n<blockquote cite=\"https:\/\/wadetregaskis.com\/mail-preview-working-together\/\">\n<p>&#8230;after I&rsquo;d filled out a form PDF that was emailed to me. It had exactly the option I wanted first and foremost, to send the completed PDF back to the sender.<\/p>\n<p>Sure, manually digging up the completed PDF from disk and dragging it into a Mail Compose [Reply] window isn&rsquo;t <em>hard<\/em>, but it just feels so <em>thoughtful<\/em> when the system saves me the effort. Knowing that someone, somewhere, actually thought through how Mail &amp; Preview might be used, and thought enough of their users to go to the trouble of implementing this.<\/p>\n<\/blockquote>\n<p>This does not happen when editing an image file. Is it only for PDF forms?<\/p>\n\n<p>Unlike with <a href=\"https:\/\/developer.apple.com\/documentation\/coreservices\/kmditemwherefroms?language=objc\">kMDItemWhereFroms<\/a>, there does not seem to be a public API, e.g. so that a third-party mail client could make the same information available to Preview or a third-party document editor could access the information from Mail.<\/p>\n\n<p>The metadata seems to be stored in the <code>com.apple.metadata:kMDLabel_6wu35kendfqeclnscacnwxtp5a<\/code> extended attribute, which seems to be encrypted. I guess this is to prevent accidentally sharing it with other Macs because on the same Mac it&rsquo;s accessible using <code>mdls<\/code>. Finder also displays an envelope badge on files with this attribute and displays some of the e-mail information.<\/p>\n\n<p id=\"mail-and-preview-working-together-update-2024-04-08\">Update (2024-04-08): <a href=\"https:\/\/talk.tidbits.com\/t\/bad-finder-gui-change-in-sonoma\/27396\">Simon<\/a>:<\/p>\n<blockquote cite=\"https:\/\/talk.tidbits.com\/t\/bad-finder-gui-change-in-sonoma\/27396\">\n<p>So far so good I guess. But did you know that when you select such a file in column view it now displays that email icon and a link (to Mail, and in my case non-functional) INSTEAD of the file size in the location where the file size used to be? So in order to see the size of a file that came as an email attachment I&rsquo;m now having to open a Get Info window.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Wade Tregaskis: &#8230;after I&rsquo;d filled out a form PDF that was emailed to me. It had exactly the option I wanted first and foremost, to send the completed PDF back to the sender. Sure, manually digging up the completed PDF from disk and dragging it into a Mail Compose [Reply] window isn&rsquo;t hard, but it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2024-02-14T19:18:57Z","apple_news_api_id":"dbfab8ef-5527-4774-bd09-c0da0848506b","apple_news_api_modified_at":"2024-04-08T15:06:50Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/A2_q471UnR3S9CcDaCEhQaw","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,1902,30,2385,608,102,1042],"class_list":["post-42118","post","type-post","status-publish","format-standard","hentry","category-technology","tag-applemail","tag-extended-attributes","tag-mac","tag-macos-14-sonoma","tag-metadata","tag-preview","tag-spotlight"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42118","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=42118"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42118\/revisions"}],"predecessor-version":[{"id":42777,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42118\/revisions\/42777"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=42118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=42118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=42118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}