#!/bin/sh
#
# http://www.macosxhints.com/article.php?story=200412080923108
#
/usr/bin/osascript -e 'tell application "Safari" to activate'
/usr/bin/osascript -e 'tell application "System Events" to tell application process "Safari" to click menu item "New Tab" of menu "File" of menu bar item "File" of menu bar 1'
/usr/bin/open 'man:'$(/usr/bin/man -w $1 | /usr/bin/sed 's/\/.*\///')

