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


Click here to return to the 'Which completes my script!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Which completes my script!
Authored by: thinkyhead on Apr 24, '01 01:52:02AM
Here's a script I call mineffect that lives in my ~/bin folder and can be called up from the Terminal. It makes use of this tip (thank you!!) to change the minimization effect for windows and restarts the Dock to make it happen. Use it to show off the funky effects in MacOS X to your mom!


#!/bin/sh
#
# mineffect - suck, scale, or genie please
#

effect=$1;

if [ "${effect}" = "suck" ] || [ "${effect}" = "genie" ] || [ "${effect}" = "scale" ]; then
defaults write com.apple.dock mineffect $effect
kill `ps -acx | grep Dock$ | awk '{print $1}'`
else
echo "mineffect: illegal option -- ${effect}"
echo "usage: mineffect genie|scale|suck"
fi


(Now if only the Dock would stick to the right side!)

[ Reply to This | # ]