{"id":164,"date":"2006-07-24T12:19:46","date_gmt":"2006-07-24T19:19:46","guid":{"rendered":"http:\/\/www.red-sweater.com\/blog\/164\/a-gentle-touch"},"modified":"2006-07-24T14:38:22","modified_gmt":"2006-07-24T21:38:22","slug":"a-gentle-touch","status":"publish","type":"post","link":"https:\/\/redsweater.com\/blog\/164\/a-gentle-touch","title":{"rendered":"A Gentle Touch"},"content":{"rendered":"<p>Anybody who packages software (or other files) for distribution on the Mac is probably familiar with the tedious process of setting up the icons &#8220;just right&#8221; in the Finder so that when your customer opens the folder for your app, they see things neatly organized the way you left them.<\/p>\n<p>\nI don&#8217;t know how many times I&#8217;ve longed for a &#8220;nudge&#8221; keyboard shortcut in the Finder. If I could just move that icon one pixel to the left, it would be perfect. Inevitably I click and drag just a little bit too far. It&#8217;s hard to get right on the first try!\n<\/p>\n<p>\nBut today my worries came to an end. My <a href=\"http:\/\/www.red-sweater.com\/AppleScript\/NudgeFinderSelection.zip\">NudgeFinderSelection<\/a> scripts simply ask the Finder to move all the selected icons in a given direction. Since the behavior is is 99% identical for whichever direction the nudge should be, I just wrote a single script and copied it 3 times. The script examines its own name and determines its functionality accordingly.\n<\/p>\n<p>\nNote: Because of this &#8220;self-determination,&#8221; you can customize your own version to go above and beyond the current behavior. Try making a copy and naming it &#8220;NudgeDownRight&#8221; for instance, and you&#8217;ve got yourself a nice little diagonal nudger.\n<\/p>\n<p>\nI hooked up all four of these as Finder-specific shortcuts with <a href=\"http:\/\/www.red-sweater.com\/fastscripts\/\">FastScripts<\/a>. Now when I&#8217;m tweaking icon layout in the Finder, a nudge is just a short cmd-opt-arrow-key away.\n<\/p>\n<p>\nNote: my &#8220;clever hack&#8221; here begs the question, why doesn&#8217;t FastScripts respect symbolic links? It would be much cleaner to have a single copy of the file with multiple references to it. Yes, it&#8217;s a grievous shortcoming, and hopefully situations like this will inspire me to remedy it soon.\n<\/p>\n<p>\nAnd since you&#8217;ve read this far, I think you deserve a little treat. Ever thought that the icons in a window would look best arranged in sine wave formation? Well, you were probably wrong, but <a href=\"http:\/\/www.red-sweater.com\/AppleScript\/SinusInfection.zip\">SinusInfection<\/a> will guide you to forming a permanent opinion. Unfortunately, there&#8217;s no undo, so don&#8217;t run this with an important Finder window front-most!\n<\/p>\n<p>\n<img decoding=\"async\" src=\"http:\/\/www.red-sweater.com\/blog\/images\/DesktopSinus.jpg\" width=\"500\"\/>\n<\/p>\n<p>\nIt&#8217;s not a very polished script, and may take some tweaking to work right on your system. C&#8217;est la vie! In particular make sure you have an open window with a substantial number of items in it. And turn off any automatic &#8220;keep organized&#8221; settings in the Finder view options. I&#8217;ve also noticed that Finder can sort of freak out while you&#8217;re doing this, apparently because so much is changing out from under it. The sine wave tends to get broken and re-originates at a slightly different window offset.\n<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Anybody who packages software (or other files) for distribution on the Mac is probably familiar with the tedious process of setting up the icons &#8220;just right&#8221; in the Finder so that when your customer opens the folder for your app, they see things neatly organized the way you left them. I don&#8217;t know how many [&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,6,12],"tags":[],"class_list":["post-164","post","type-post","status-publish","format-standard","hentry","category-applescript","category-fastscripts","category-usability"],"_links":{"self":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/164","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=164"}],"version-history":[{"count":0,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/164\/revisions"}],"wp:attachment":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/media?parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/categories?post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/tags?post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}