Hello, I have posted this already but I hadn't been able to figure it out, What I need is to make the Dialog example to work when I say "read a news paper" and then I say which newspaper to go to. In the example info they tell me to make a script with the following
!/bin/sh
export FF_HOME="/usr/share/firefox
url="$1"
if [ "x$url" = "x" ]; then
url="about:blank"
fi
if $FF_HOME/mozilla-xremote-client openURL("$url"); then
exit 0
fi
exec $FF_HOME/firefox "$url"
So what I did is to make echo $PATH to see which one was my path then it says its
/usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin
now:
I went to /usr/bin and made a file with vi editor and pasted the script. But I dunno what else to do, ot even worst I dunno if what i did was ok, becuase when I run the Example it doesnt do anything
Any help please?>
Im running under Mac os X
Thanks a Lot
Gus
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I have posted this already but I hadn't been able to figure it out, What I need is to make the Dialog example to work when I say "read a news paper" and then I say which newspaper to go to. In the example info they tell me to make a script with the following
!/bin/sh
export FF_HOME="/usr/share/firefox
url="$1"
if [ "x$url" = "x" ]; then
url="about:blank"
fi
if $FF_HOME/mozilla-xremote-client openURL("$url"); then
exit 0
fi
exec $FF_HOME/firefox "$url"
So what I did is to make echo $PATH to see which one was my path then it says its
/usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin
now:
I went to /usr/bin and made a file with vi editor and pasted the script. But I dunno what else to do, ot even worst I dunno if what i did was ok, becuase when I run the Example it doesnt do anything
Any help please?>
Im running under Mac os X
Thanks a Lot
Gus
Dear Gustavo.
I suspect you have a deep problems with understanding what is the shell script, how does it work and so on. Read this article first:
http://www.macdevcenter.com/pub/a/mac/2003/11/07/scripting_osx.html?page=last&x-showcontent=text
Then try to understand what this script is trying to do. Only then ask for the help again.