#!/bin/sh
# http://www.macosxhints.com/article.php?story=20040623231530448
if [ "$1" != "s" -a "$1" != "silent" ]
	then
#h <s>ilent does w/out echo
echo "hide $*"
else
shift
fi
echo | osascript <<EOF
tell application "System Events"
	set visible of process "$*" to false
end tell
EOF
