{"id":14971,"date":"2017-11-24T22:31:46","date_gmt":"2017-11-24T22:31:46","guid":{"rendered":"https:\/\/www.bartbusschots.ie\/s\/?p=14971"},"modified":"2017-11-24T22:31:46","modified_gmt":"2017-11-24T22:31:46","slug":"automatically-adding-screenshots-to-yoink-with-hazel-improved","status":"publish","type":"post","link":"https:\/\/www.bartbusschots.ie\/s\/2017\/11\/24\/automatically-adding-screenshots-to-yoink-with-hazel-improved\/","title":{"rendered":"Automatically adding Screenshots to Yoink with Hazel (Improved)"},"content":{"rendered":"<p><strong>Note:<\/strong> This is an improved version of <a href=\"https:\/\/www.bartbusschots.ie\/s\/2017\/11\/24\/automatically-adding-screenshots-to-yoink-with-hazel\/\">my original solution to this problem<\/a>.<\/p>\n<p>As a reminder, the problem to be solved is to have screenshots automatically appear in <a href=\"https:\/\/eternalstorms.at\/yoink\/Yoink_-_Simplify_and_Improve_Drag_and_Drop_on_your_Mac\/Yoink_-_Simplify_drag_and_drop_on_your_Mac.html\" rel=\"noopener\" target=\"_blank\">Yoink<\/a> as they are taken. Again, as a reminder, on macOS, screenshots are saved to the desktop as files with names of the form <code>Screen Shot YYYY-MM-DD at HH.MM.SS.png<\/code>, e.g. <code>Screen Shot 2017-11-22 at 22.30.10.png<\/code>. And one final reminder \u00e2\u20ac\u201d <a href=\"https:\/\/www.noodlesoft.com\" rel=\"noopener\" target=\"_blank\">Hazel<\/a> is an app that watches the filesystem for events, and executes actions in response. Hazel rules are added to folders.<\/p>\n<p>My original solution was to add a Hazel rule to the desktop folder with the condition <em>Name starts with Screen Shot<\/em> and a single <em>Shell script<\/em> action which used the <code>open<\/code> terminal command to send the screenshot to Yoink. The good people at Hazel replied to my tweet about the original post with a suggestion: <em>I think you can do the same thing without a script. Try using the &#8220;Open&#8221; action<\/em>.<\/p>\n<p>Unsurprisingly, the Hazel suggestion proved to be spot on.<\/p>\n<p><!--more--><\/p>\n<p>So, based on the suggestion from Hazel I updated the action in my <em>Screen Shots<\/em> rule on the desktop folder to the following: <em>Open with application Yoink<\/em>:<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bartbusschots.ie\/s\/wp-content\/uploads\/2017\/11\/Screen-Shot-2017-11-24-at-22.27.46-e1511562484910.png\" alt=\"\" width=\"480\" height=\"376\" class=\"alignnone size-full wp-image-14972\" style=\"border-width: 0px;\" \/><\/p>\n<p>As you can see, the resulting Hazel rule is now impressively simple \u00e2\u20ac\u201d one condition, and one action.<\/p>\n<p>You can <a href=\"https:\/\/www.bartbusschots.ie\/s\/wp-content\/uploads\/2017\/11\/ScreenShots.hazelrules.zip\">download an export of the Hazel rule here<\/a> (it needs to be applied to the desktop folder to work).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note: This is an improved version of my original solution to this problem. As a reminder, the problem to be solved is to have screenshots automatically appear in Yoink as they are taken. Again, as a reminder, on macOS, screenshots are saved to the desktop as files with names of the form Screen Shot YYYY-MM-DD [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[543,12],"tags":[569,549,458,570],"series":[],"class_list":["post-14971","post","type-post","status-publish","format-standard","hentry","category-automation","category-computers-tech","tag-hazel","tag-macos","tag-tutorial","tag-yoink"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7t9xK-3Tt","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/14971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/comments?post=14971"}],"version-history":[{"count":1,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/14971\/revisions"}],"predecessor-version":[{"id":14974,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/14971\/revisions\/14974"}],"wp:attachment":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/media?parent=14971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/categories?post=14971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/tags?post=14971"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/series?post=14971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}