commit 6c99870701d4a71d429a26f357859416c875b2fb from: Russ Cox date: Wed Oct 08 21:58:14 2008 UTC web: add camino as a $BROWSER commit - 362264eb516483d6e2f45ba1e0ab6bcaf2d4f0ee commit + 6c99870701d4a71d429a26f357859416c875b2fb blob - 0f24e08e34a1a13f62aed08e30fd8cb2ea219521 blob + 10f59dd713ed4b1e40cbd8484af4545a2d6821bd --- bin/web +++ bin/web @@ -30,6 +30,21 @@ plumbsafari() ' | osascript } +plumbcamino() +{ + echo ' + tell application "Camino" + activate + tell application "System Events" + tell process "camino" + keystroke "t" using {command down} + end tell + end tell + Get URL "'$1'" + end tell + ' | osascript +} + plumbapple() { case ${BROWSER:-none} in @@ -39,9 +54,15 @@ plumbapple() safari) plumbsafari "$@" ;; + camino) + plumbcamino "$@" + ;; none) - if [ -d /Applications/Firefox.app ] + if [ -d /Applications/Camino.app ] then + plumbcamino "$@" + elif [ -d /Applications/Firefox.app ] + then plumbfirefox "$@" else plumbsafari "$@" blob - 0910747e415f6da40c6321436c6e3440701155c7 blob + 06d304df1132416c78cbdcfa49e5c8750e8e8dcf --- man/man1/web.1 +++ man/man1/web.1 @@ -45,10 +45,11 @@ opens each URL in a new tab rather than a new window. .PP When run under Mac OS X, .B $BROWSER -should be set to the string -.B safari +should be set to +.B camino , +.B firefox , or -.BR firefox . +.BR safari . .I Web uses AppleScript to talk to the browser. If