Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


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 | # ]