web: add camino as a $BROWSER
This commit is contained in:
parent
362264eb51
commit
6c99870701
2 changed files with 26 additions and 4 deletions
23
bin/web
23
bin/web
|
|
@ -30,6 +30,21 @@ plumbsafari()
|
||||||
' | osascript
|
' | 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()
|
plumbapple()
|
||||||
{
|
{
|
||||||
case ${BROWSER:-none} in
|
case ${BROWSER:-none} in
|
||||||
|
|
@ -39,8 +54,14 @@ plumbapple()
|
||||||
safari)
|
safari)
|
||||||
plumbsafari "$@"
|
plumbsafari "$@"
|
||||||
;;
|
;;
|
||||||
|
camino)
|
||||||
|
plumbcamino "$@"
|
||||||
|
;;
|
||||||
none)
|
none)
|
||||||
if [ -d /Applications/Firefox.app ]
|
if [ -d /Applications/Camino.app ]
|
||||||
|
then
|
||||||
|
plumbcamino "$@"
|
||||||
|
elif [ -d /Applications/Firefox.app ]
|
||||||
then
|
then
|
||||||
plumbfirefox "$@"
|
plumbfirefox "$@"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -45,10 +45,11 @@ opens each URL in a new tab rather than a new window.
|
||||||
.PP
|
.PP
|
||||||
When run under Mac OS X,
|
When run under Mac OS X,
|
||||||
.B $BROWSER
|
.B $BROWSER
|
||||||
should be set to the string
|
should be set to
|
||||||
.B safari
|
.B camino ,
|
||||||
|
.B firefox ,
|
||||||
or
|
or
|
||||||
.BR firefox .
|
.BR safari .
|
||||||
.I Web
|
.I Web
|
||||||
uses AppleScript to talk to the browser.
|
uses AppleScript to talk to the browser.
|
||||||
If
|
If
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue