{"id":23218,"date":"2018-10-26T16:27:14","date_gmt":"2018-10-26T20:27:14","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=23218"},"modified":"2018-10-26T16:29:39","modified_gmt":"2018-10-26T20:29:39","slug":"custom-icons-for-quick-actions","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2018\/10\/26\/custom-icons-for-quick-actions\/","title":{"rendered":"Custom Icons for Quick Actions"},"content":{"rendered":"<p><a href=\"https:\/\/blog.eternalstorms.at\/2018\/10\/19\/developer-tip-custom-icons-for-quick-actions\/\">Matthias Gansrigler<\/a>:<\/p>\n<blockquote cite=\"https:\/\/blog.eternalstorms.at\/2018\/10\/19\/developer-tip-custom-icons-for-quick-actions\/\">\n<p>The trick is to have the file end in &lsquo;Template&rsquo;, like &lsquo;MyWorkflowIconTemplate.tiff&rsquo;. But that&rsquo;s not all there is to it. When you add a custom icon through Automator, it automatically gets renamed into &lsquo;workflowCustomImage.png&rsquo;. So no matter what you name your file, it won&rsquo;t matter.<\/p>\n<p>To fix this, add a custom icon to your Quick Action in Automator, save, switch to Finder and navigate to \/Users\/yourname\/Library\/Services\/, where your newly saved Quick Action will end up.\nThere, right-click your Quick Action, select &lsquo;Show Package Contents&rsquo;, and navigate into Resources, where your icon file will be. Rename it to &lsquo;workflowCustomImageTemplate.png&rsquo;.\nNow, navigate into Contents and open Info.plist. Look for &lt;key&gt;NSIconName&lt;\/key&gt; and change &lsquo;workflowCustomImage&rsquo; to &lsquo;workflowCustomImageTemplate&rsquo;. Save.<\/p>\n<\/blockquote>\n\n<p>You can use Quick Actions with both <a href=\"https:\/\/c-command.com\/dropdmg\/help\/creating-a-dropdmg-quic\">DropDMG<\/a> and <a href=\"https:\/\/c-command.com\/eaglefiler\/help\/importing-via-a-quick-a\">EagleFiler<\/a>. The main catch, from my perspective, is that Finder accepts click-through for them. So if you have a habit of bringing Finder windows to the front by clicking near the bottom-right, be aware that you may accidentally invoke a Quick Action.<\/p>\n\n<p>Gansrigler also has a tip for making the right kind of TIFF file for the Touch Bar. However, you don&rsquo;t have to write code to do this. You can make a multi-representation TIFF using <tt>tiffutil<\/tt>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Matthias Gansrigler: The trick is to have the file end in &lsquo;Template&rsquo;, like &lsquo;MyWorkflowIconTemplate.tiff&rsquo;. But that&rsquo;s not all there is to it. When you add a custom icon through Automator, it automatically gets renamed into &lsquo;workflowCustomImage.png&rsquo;. So no matter what you name your file, it won&rsquo;t matter. To fix this, add a custom icon to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2018-10-26T20:27:15Z","apple_news_api_id":"b9e5a956-725c-429d-92a0-1d34de939b4b","apple_news_api_modified_at":"2018-10-26T20:29:43Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AueWpVnJcQp2SoB003pObSw","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":[],"tags":[1040,371,595,458,619,545,30,1609,1434],"class_list":["post-23218","post","type-post","status-publish","format-standard","hentry","tag-automator","tag-dropdmg","tag-eaglefiler","tag-finder","tag-graphics","tag-icons","tag-mac","tag-macos-10-14","tag-touch-bar"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/23218","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=23218"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/23218\/revisions"}],"predecessor-version":[{"id":23228,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/23218\/revisions\/23228"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=23218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=23218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=23218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}