#!/bin/sh #save this as minimonitor.sh somewhere in your path unreadmail=`/usr/bin/osascript -e "tell application \"Mail\" to set unreadCount to unread count of inbox as string"`; echo "M: $unreadmail"; echo "-----"; unreadnews=`/usr/bin/osascript -e "tell application \"NetNewsWire\" to set unreadNewsCount to total unread count as string"`; echo "N: $unreadnews";