Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 2.67 / 5
  You rated: 2 / 5 (6 votes cast)
 
[26,474 views]  

10.5: Change the Dock's treatment of Stacks | 19 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 whoever posted them. This site is not responsible for what they say.
10.5: Change the Dock's treatment of Stacks
Authored by: outofcontrol on Nov 28, '07 08:04:58AM
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 Nov 28, '07 08:11:15AM

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: outofcontrol on Nov 28, '07 08:37:52AM

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 Nov 28, '07 10:58:07AM

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 Nov 29, '07 03:10:34AM
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 Nov 29, '07 02:24:48AM
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 Nov 29, '07 08:41:54AM

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 Nov 29, '07 07:28:05PM
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: DeminJanu on Dec 09, '07 09:11:04PM
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 May 30, '08 06:09:03PM

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 May 30, '08 06:18:34PM

I meant 10.5.2



[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: siracusa on Sep 17, '08 05:31:38AM

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 Sep 20, '08 09:12:29PM

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 Sep 17, '08 05:59:35AM

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 Sep 20, '08 09:15:05PM
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 Oct 02, '08 08:11:34AM

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 Oct 22, '08 08:08:15AM

*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 | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: klktrk on May 08, '10 11:17:25AM

If you're on Snow Leopard you can disable all this horribleness by doing the following.

Hold down CTRL+OPTION+CMD and click+hold on the stack icon in the dock you want to modify.

You'll get a popup menu that allows you to set some options.

1. Choose to view the icon as a folder rather than an aggregate of the icons it contains.

2. Choose "view as list" from the "show contents as" area.

Now, you still have "stacks', but they behave the way the did when the worked more like classic Finder items.

---
The Apotek
http://theapotek.com
The Executioner's Summary:
http://www.last.fm/label/Broken+Hill+Music/playlists/6761?autostart



[ Reply to This | # ]
10.5: Change the Dock's treatment of Stacks
Authored by: klktrk on May 08, '10 11:18:11AM

If you're on Snow Leopard you can disable all this horribleness by doing the following.

Hold down CTRL+OPTION+CMD and click+hold on the stack icon in the dock you want to modify.

You'll get a popup menu that allows you to set some options.

1. Choose to view the icon as a folder rather than an aggregate of the icons it contains.

2. Choose "view as list" from the "show contents as" area.

Now, you still have "stacks', but they behave the way the did when the worked more like classic Finder items.

---
The Apotek
http://theapotek.com
The Executioner's Summary:
http://www.last.fm/label/Broken+Hill+Music/playlists/6761?autostart



[ Reply to This | # ]