tweb: just use "open" on OS X - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f92863adf47cd8426d3c2f62b386f532b5688ca1
 (DIR) parent 36d9b90c56e939244b7081b575dc51c2afddff93
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Wed, 14 Jul 2010 11:12:55 -0700
       
       web: just use "open" on OS X
       
       R=rsc
       http://codereview.appspot.com/1764045
       
       Diffstat:
         M bin/web                             |      68 +------------------------------
       
       1 file changed, 1 insertion(+), 67 deletions(-)
       ---
 (DIR) diff --git a/bin/web b/bin/web
       t@@ -1,74 +1,8 @@
        #!/bin/sh
        
       -plumbfirefox()
       -{
       -        echo '
       -                tell application "Firefox"
       -                activate
       -                tell application "System Events"
       -                tell process "firefox"
       -                keystroke "t" using {command down}
       -                end tell
       -                end tell
       -                Get URL "'$1'"
       -                end tell
       -        ' | osascript
       -}
       -
       -plumbsafari()
       -{
       -        echo '
       -                tell application "Safari"
       -                activate
       -                tell application "System Events"
       -                tell process "safari"
       -                keystroke "t" using {command down}
       -                end tell
       -                end tell
       -                open location "'$1'"
       -                end tell
       -        ' | 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
       -        firefox)
       -                plumbfirefox "$@"
       -                ;;
       -        safari)
       -                plumbsafari "$@"
       -                ;;
       -        camino)
       -                plumbcamino "$@"
       -                ;;
       -        none)
       -                if [ -d /Applications/Camino.app ]
       -                then
       -                        plumbcamino "$@"
       -                elif [ -d /Applications/Firefox.app ]
       -                then
       -                        plumbfirefox "$@"
       -                else
       -                        plumbsafari "$@"
       -                fi
       -                ;;
       -        esac
       +        open "$@"
        }
        
        plumbunix()