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