Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

10.5: Change the Dock's treatment of Stacks System 10.5
The major problems I have with the Leopard Dock are its inability to display custom icons for folders, and its inability to disable tiling (dynamic icon modification where content icons are superimposed on the original icon, and actual tiling when you click on it). To revert to Tiger way of doing things (far better in my opinion), use the following hack (admittedly techie).

Copy the following script to a text file (untile.sh or untile.command, for instance), make it executable (chmod -x untile.sh), make it a login item (add it to the list in your user's Login Items list on the Accounts System Preferences panel), and you are ready to go -- at your own risk, of course. If you run this script, you will disable Stacks completely. Note that you can also use this script by simply pasting each executable line in a Terminal window.

This script converts Dock preference file com.apple.dock .plist to text format so we can edit it, then changes all "directory-tile" to "directory", and finally restarts the Dock so the changes will take effect immediately. This has to be done on every re-boot as Leopard insists on regenerating Dock pref file each time the system boots.

To change folder icons from those horrible Leopard icons (which is what this hack enables, in addition to disabling tiling and superimposing), do a Get Info on the item with the icon you want to use. Select and copy its icon in the upper left corner. Paste it in the same place (Get info window) for the folder whose icon you want to change.

Caveat: Leopard will sometimes revert to default Dock icons and mode of operation apparently for no reason whatsoever. No need to reboot; just run the script again. You will also have to run it after you drag a new folder to the Dock if you want Tiger behavior for that folder take hold immediately.

[robg adds: I tested this one, and it works. However, be aware that the point of the hint is to disable Stacks -- with this script, clicking a docked folder opens its Finder window, and that's all.

Also, I had to change the if...then section of the script (with help from a Unix-using friend) to make it work. The lines from PIDS='... on down do one thing: kill the Dock process. I'm more of a brutalist, so I'd probably replace all of that with killall Dock, which is much less elegant but a lot simpler to understand (and also perhaps more dangerous if you have other Dock-named processes). If you run this and want things back to normal, you can either delete the Dock preferences file, or just edit the perl -0777... line and swap the order of directory-tile and directory, then run the script again.]
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[18,772 views]  

10.5: Change the Dock's treatment of Stacks | 17 comments | Create New Account
Click here to return to the '10.5: Change the Dock's treatment of Stacks' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: Change the Dock's treatment of Stacks
Authored by: plattapuss on Wed, Nov 28 2007 at 8:04AM PST
A nice simple little script. Here is a modified version that will allow someone to easily enable and disable the stacks. Hope it helps someone.

!/bin/sh
#disable tiling and enable custom icons for folders in Leopard dock
if [ ! $1 ]; then
        echo "Usage: ./stacks.sh on|off"
        exit
fi
plutil -convert xml1 ~/Library/Preferences/com.apple.dock.plist
if [ $1 = "off" ]; then
    echo "De-Activating stacks"
    perl -0777 -i -pe 's/directory-tile/directory/g' ~/Library/Preferences/com.apple.dock.plist
else
    echo "Activating stacks"
    perl -0777 -i -pe 's/directory</directory-tile</g' ~/Library/Preferences/com.apple.dock.plist
fi
PIDS=`ps ax | grep 'Dock\|find' | grep -v grep | sort | awk '{print $1}' | perl -ne 'chomp;print "$_ "'`
if [ '$PIDS' != '' ]; then
        kill $PIDS
fi
plutil -convert binary1 ~/Library/Preferences/com.apple.dock.plist


Seamus

---
Find Mac Stuff - Your Mac product homepage finder

[ Reply to This | # ]

Use an alias instead
Authored by: escowles on Wed, Nov 28 2007 at 8:11AM PST
When stacks are disabled, right-clicking on a folder doesn't get you a menu of the contents like in Tiger. It just gets you the Remove/Open at Login/Show in Finder/Open menu.

A much easier way to get this behavior is to just make an alias to the folder, and put the alias in the Dock instead of the folder itself. You get the same behavior, without having to use this script.

-Esme

[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: plattapuss on Wed, Nov 28 2007 at 8:37AM PST
Even when Stacks are working, right clicking won't give a list of contents. At least, not here.

---
Find Mac Stuff - Your Mac product homepage finder

[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: garneaum on Wed, Nov 28 2007 at 10:58AM PST
I made aliases for downloads and documents and applications, placed them within their respective folders, put a space before each alias name so it would sort alphabetically as the first item in the stack, and then set the stacks to list alphabetically. This makes the icon in the dock always the same (either Applications icon, Documents icon, or Downloads icon) to help me identify which stack is which.

An added plus: It keeps the stacks working as they're intended to work. I like stacks, but I didn't like that the icon was always changing on me.

[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: Power Factor on Thu, Nov 29 2007 at 3:10AM PST
Here is a great icon set and instructions on how to ensure it stays in front

http://www.tuaw.com/2007/11/16/tuaw-tutorial-custom-stack-drawer-icons/

[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: redarm69 on Thu, Nov 29 2007 at 2:24AM PST
Should it not be chmod +x untile.sh instead of chmod -x untile.sh?

[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: ahancock on Thu, Nov 29 2007 at 8:41AM PST
This hint would be a lot cooler with a link to an image of the changes you made to the dock...

[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: MSW on Thu, Nov 29 2007 at 7:28PM PST
The problem has been solved by Rainer Brockerhoff who has written Quay ( http://www.macnn.com/articles/07/11/29/quay.10.released/ ). This little app returns the dock to delivering hierarchical pop-up folders and custom icons which appear in the Finder now also appear in the dock. I think Stacks and Fan no longer work but who cares? Mr. Brockerhoff is asking for a donation of $10. Certainly money well spent.

[ Reply to This | # ]
Drawer Overlay icons
Authored by: GanjaManja on Sun, Dec 9 2007 at 9:11PM PST
May have been stated somewhere already, but just in case:

These guys mention a very nice temporary solution to the problem (until it's actually fixed).
http://t.ecksdee.org/post/19001860
Download here:
http://www.geocities.jp/chy065/
[from Optica-Optima on Blogspot]

It's essentially the oft-mentioned solution of putting a folder/icon that sorts to the top of the list with an Icon of what that stack should look like.

What's nice is that the icon pack is a Drawer with the Applications/Documents/Downloads etc. etc. icon on the front. Thus your stack looks like an application drawer, with Automator sitting inside it. Works quite nicely. Of course, you now have an extra item in your stack, named "application icon.app" or whatever... (can't wait for Apple to give us a real method to change the icon)

i personally had to Quit the Dock to make the icons show up correctly (got the crossed-out icon to start), which I did thru Activity Monitor/Click "Dock"/Quit (tho if you like to be aggressive, you can Terminal/"kill -9 Dock"

[ Reply to This | # ]
Simpler way to do this
Authored by: avramd on Fri, May 30 2008 at 6:09PM PDT
There is a much simpler way to get the custom icon behavior, at least as of 10.2 - just ctrl-click on the stack, and select Display As Folder. Then it uses the folder's actual icon, custom or otherwise.

[ Reply to This | # ]
Sorry...
Authored by: avramd on Fri, May 30 2008 at 6:18PM PDT
I meant 10.5.2

[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: siracusa on Wed, Sep 17 2008 at 5:31AM PDT
This hint restores the Tiger (and earlier) behavior of Docked folders. No feature of the 10.5 UI accomplishes this, including those added in 10.5.2 and later. Docked aliases to folders come close, but you cannot drag items into them (Radar 5775786).

[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: siracusa on Sat, Sep 20 2008 at 9:12PM PDT
Looks like you can't log into docked folders using this technique either. Blah.

[ Reply to This | # ]
A much easier solution
Authored by: mustang_dvs on Wed, Sep 17 2008 at 5:59AM PDT

There's a much easier solution, that provides one-click opening of the Finder window, while maintaining the normal Stack behavior:

  1. Left-click the icon in the dock while holding the Command key.
  2. There is no step 2.


[ Reply to This | # ]
A much easier solution
Authored by: siracusa on Sat, Sep 20 2008 at 9:15PM PDT
Command-click opens the enclosing folder, not the docked folder itself.

[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: gimmeslack12 on Thu, Oct 2 2008 at 8:11AM PDT
Finally, finally, finally I have removed Leopards 1 feature that I just could not stand.
(the alias solution would work ok too, but I know I'll never want this feature back)

---
[RIGHT][COLOR="Blue"][SIZE="5"][FONT="Century Gothic"]I Have An iBook[/FONT][/SIZE][/COLOR][/RIGHT]
[right][FONT="Arial Black"][size="1"]First Gen. iPod 5Gigab

[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: robleach on Wed, Oct 22 2008 at 8:08AM PDT
*sigh* None of these (this hint or the suggestions in the comments) bring back all the original dock behavior. I tried them all. 10.5's new dock behavior breaks my folder action scripts. I need clicking on a docked folder to open the folder and I need control-click to list the contents of the folder in a pop-up menu. Will anything do both of these?

[ Reply to This | # ]