From c184518d6b625e4bd012ed9c47776ca0e832ce84 Mon Sep 17 00:00:00 2001 From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04> Date: Mon, 26 Feb 2007 15:12:24 +0000 Subject: [PATCH] use open command for MacOSX git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@5506 ee4ac58c-ac51-4696-9907-e4b3aa274f04 --- etc/results_to_netscape | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/etc/results_to_netscape b/etc/results_to_netscape index d170056c6..e15c4d976 100755 --- a/etc/results_to_netscape +++ b/etc/results_to_netscape @@ -17,6 +17,9 @@ then elif [ -f "/usr/bin/mozilla" ] then NETSCAPE=/usr/bin/mozilla +elif [ -f "/usr/bin/open" ] +then + NETSCAPE=/usr/bin/open elif [ -f "/Applications/Safari.app/Contents/MacOS/Safari" ] then NETSCAPE=/Applications/Safari.app/Contents/MacOS/Safari @@ -229,7 +232,11 @@ echo "rm -f $new_file > /dev/null 2>&1" | at now + 12 hours # MAC OS X => Safari browser # The command then is the following -if [ -f "/Applications/Safari.app/Contents/MacOS/Safari" ] +if [ -f "/usr/bin/open" ] +then + /usr/bin/open $new_file + exit 0 +elif [ -f "/Applications/Safari.app/Contents/MacOS/Safari" ] then if $NETSCAPE $new_file then -- GitLab