{"id":805,"date":"2012-02-11T14:29:53","date_gmt":"2012-02-11T13:29:53","guid":{"rendered":"http:\/\/www.nimbling.com\/blog\/?p=805"},"modified":"2012-02-14T11:01:20","modified_gmt":"2012-02-14T10:01:20","slug":"automatic-flight-check-for-ios-retina-files","status":"publish","type":"post","link":"https:\/\/nimbling.com\/blog\/2012\/02\/automatic-flight-check-for-ios-retina-files\/","title":{"rendered":"Automatic Flight Check for iOS Retina Files"},"content":{"rendered":"<p>In iOS development it&#8217;s important to keep your image assets <em>exactly<\/em> double each others size.<\/p>\n<p>This Applescript will color your files according to their presence and size relative to their &#8220;twin&#8221;. You can stick it to a folder using a folder action, or, better yet, using the included <a href=\"http:\/\/www.noodlesoft.com\/hazel.php\">Hazel<\/a> action, since that will also pick up on changes to files (regular folder actions only trigger on adding or deleting).<\/p>\n<p><a rel=\"attachment wp-att-806\" href=\"https:\/\/nimbling.com\/blog\/2012\/02\/automatic-flight-check-for-ios-retina-files\/screen-shot-2012-02-11-at-14-06-04\/\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-806\" title=\"Screen Shot 2012-02-11 at 14.06.04\" src=\"https:\/\/nimbling.com\/blog\/wp-content\/uploads\/Screen-Shot-2012-02-11-at-14.06.04.png\" alt=\"\" width=\"541\" height=\"518\" srcset=\"https:\/\/nimbling.com\/blog\/wp-content\/uploads\/Screen-Shot-2012-02-11-at-14.06.04.png 541w, https:\/\/nimbling.com\/blog\/wp-content\/uploads\/Screen-Shot-2012-02-11-at-14.06.04-150x143.png 150w, https:\/\/nimbling.com\/blog\/wp-content\/uploads\/Screen-Shot-2012-02-11-at-14.06.04-300x287.png 300w, https:\/\/nimbling.com\/blog\/wp-content\/uploads\/Screen-Shot-2012-02-11-at-14.06.04-313x300.png 313w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/a><\/p>\n<p>\u2022 GREEN = OK<br \/>\n\u2022 RED = Missing standard resolution<br \/>\n\u2022 ORANGE = Missing retina resolution<br \/>\n\u2022 PURPLE = Twin present, but wrong size<\/p>\n<p>You can easily modify the script to remove the green labelling for files that are OK, I&#8217;m keeping it in for now to get feedback on if the script has run at all :)<\/p>\n<p>Set it up in hazel like this:<br \/>\n<a href=\"https:\/\/nimbling.com\/blog\/2012\/02\/automatic-flight-check-for-ios-retina-files\/screen-shot-2012-02-11-at-14-05-49\/\" rel=\"attachment wp-att-813\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/nimbling.com\/blog\/wp-content\/uploads\/Screen-Shot-2012-02-11-at-14.05.49.png\" alt=\"\" title=\"Screen Shot 2012-02-11 at 14.05.49\" width=\"782\" height=\"641\" class=\"aligncenter size-full wp-image-813\" srcset=\"https:\/\/nimbling.com\/blog\/wp-content\/uploads\/Screen-Shot-2012-02-11-at-14.05.49.png 782w, https:\/\/nimbling.com\/blog\/wp-content\/uploads\/Screen-Shot-2012-02-11-at-14.05.49-150x122.png 150w, https:\/\/nimbling.com\/blog\/wp-content\/uploads\/Screen-Shot-2012-02-11-at-14.05.49-300x245.png 300w, https:\/\/nimbling.com\/blog\/wp-content\/uploads\/Screen-Shot-2012-02-11-at-14.05.49-365x300.png 365w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/a><\/p>\n<p><strong>Grab the script <a href=\"http:\/\/www.nimbling.com\/Downloads\/Flight%20Check.zip\">HERE<\/a>!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In iOS development it&#8217;s important to keep your image assets exactly double each others size. This Applescript will color your files according to their presence and size relative to their &#8220;twin&#8221;. You can stick it to a folder using a &hellip; <a href=\"https:\/\/nimbling.com\/blog\/2012\/02\/automatic-flight-check-for-ios-retina-files\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[120,122,124],"class_list":["post-805","post","type-post","status-publish","format-standard","hentry","category-ui-customization","tag-applescript","tag-hazel","tag-ios"],"_links":{"self":[{"href":"https:\/\/nimbling.com\/blog\/wp-json\/wp\/v2\/posts\/805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nimbling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nimbling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nimbling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nimbling.com\/blog\/wp-json\/wp\/v2\/comments?post=805"}],"version-history":[{"count":27,"href":"https:\/\/nimbling.com\/blog\/wp-json\/wp\/v2\/posts\/805\/revisions"}],"predecessor-version":[{"id":838,"href":"https:\/\/nimbling.com\/blog\/wp-json\/wp\/v2\/posts\/805\/revisions\/838"}],"wp:attachment":[{"href":"https:\/\/nimbling.com\/blog\/wp-json\/wp\/v2\/media?parent=805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nimbling.com\/blog\/wp-json\/wp\/v2\/categories?post=805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nimbling.com\/blog\/wp-json\/wp\/v2\/tags?post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}