<?xml version="1.0" encoding="euc-jp" ?>
<!--
## (c)2007 Takuya NISHIMOTO (nishi@hil.t.u-tokyo.ac.jp)
##
##  See about JavaScript Shell:
##  http://www.mozilla-japan.org/rhino/shell.html
##
-->
<vxml version="2.0" xml:lang="ja">
<form id="form1">

<block>
  <script>
  var o = Shell.readUrl("http://www.yahoo.com/");
  var msg = "全部で" + o.split("\n").length + "行です。";
  </script>

  <log><value expr="msg"/></log>
  <prompt><value expr="msg"/><break time="10s"/></prompt>

  <script>
  var opt = { input: "", output: "", 
    args:["-remote", "openurl(http://www.yahoo.co.jp/)"] 
  };
  Shell.runCommand("/usr/bin/firefox", opt);
  </script>

  <log><value expr="opt.toSource()"/></log>
  <prompt><value expr="opt.output"/><break time="10s"/></prompt>

  
</block>

</form>
</vxml>
