A tumblelog named XD had a post on adding nice half-icon overlays to Leopard stacks (the below image is from that post).
The log does not allow comments, so I’m blogging some minor improvements to this technique:
Handle any sorting
I want my
Downloads stack to be sorted by date added, not date modified as in that post. Just change the
m to an
Note that I’ve named the icon ” Icon” with an initial space. This is so that I can use the same naming scheme with stacks that I sort by name (in my case, my home folder). The reason for using a consistent naming scheme is revealed below.
Hide the overlay icon in Finder
A necessary evil to the overlay trick is that you need to keep an icon file sorted at the top of the stack. To my knowledge, you can’t hide it from the expanded stack – well, you can (by renaming it to something starting with a
.Icon) but then it’s not overlayed…
You can, however, hide it from the Finder by toggling the file’s invisible bit. It will still display in the expanded stack (alas) and as an icon overlay (w00t). You can do
If you want to unhide it, do
However, it turns out that the next time the stack refreshes – that is, the next time a file is added, renamed or removed – it will notice that the file is hidden, and you lose the overlay.
Now, this is a bit too kludgy even for me, but I couldn’t resist. I made a folder action that is triggered when a file is added, renamed or removed, and that will show the icon, force a stack refresh, and then hide the action again. What this amounts to is that when the stack changes, you’ll only see a short flash of non-overlayness, and then the overlay is re-applied, and does not appear in Finder.
I didn’t particularly mind seeing the overlay icon my
Downloads folder, but the ” Icon” file next to the folders in my home directory was quite annoying.
The folder action is here: Peekaboo Stack Overlay.scpt
See this post for how to apply it.
This folder action explains why I used the ” Icons” (with an initial space) name in the
Downloads stack as well – the same folder action, with a hard-coded icon name, can be used for multiple stacks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28