Hi Steve,

> I've been using Google desktop search a lot and it's got
> some very nice points. Is there any way to incorporate
> it's local computer search features into DQSD?

Yes. I've attached a search that hits Google Desktop on your local
PC (ggd.xml).

I only just installed it, though, so I don't know for sure that the
URL's that it generates are truly consistent across every PC. For
example, your PC may have a different target than mine. Apparently
Desktop Search uses a key of some sort in the query URL. IOW, it may
not work for you without modification. Let me know if it doesn't
work and I'll tell you how to fix it.

To set it as your default search open up localprefs.js and add this
line:

defaultsearch="ggd";

Regards,

Shawn K. Hall
http://ReliableAnswers.com/

'// ========================================================
    Hold it! Hold it! Grandpa, you read that wrong.  She 
    doesn't marry Humperdinck, she marries Westley.  I'm
    just sure of it...after all that Westley did for her,
    if she didn't marry him, it wouldn't be fair.
        -- 'Kid', The Princess Bride
'// ========================================================

<search function="ggd">
  <name>Google Desktop Search</name>
  <category>Search the Web</category>
  <contributor>Shawn K. Hall</contributor>
  <email>[EMAIL PROTECTED]</email>
  <link>http://desktop.google.com/</link>
  <description>
    Search Google Desktop Search from DQSD
    <div class="helpboxDescLabels">Switches:</div>
    <table class="helpboxDescTable">
      <tr><td> /about </td><td> About Google Desktop </td></tr>
    </table>
    <div class="helpboxDescLabels">Examples:</div>
    <table class="helpboxDescTable">
      <tr><td>ggd [term]</td></tr>
      <tr><td>ggd </td></tr>
    </table>
  </description>
  <comment>
    This is pretty spiffy, eh?
  </comment>

  <form name="ggdf" method="get" 
        action="http://127.0.0.1:4664/search&amp;s=286122300";>
    <input type="hidden" name="q" value="" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="hidden" value="Search Desktop" name="btnG" />
  </form>
  <script><![CDATA[
    function ggd(q){
      if( nullArgs( "ggd", q ) ){
        return false;
      }
      var args = parseArgs(q, "about");
      for (var i = 0; i < args.switches.length; i++){
        sw = args.switches[i];
        switch(sw.name){
          case "about":
            openSearchWindow("http://desktop.google.com/";);
            return;
          default:
            document.ggdf.q.value = sw.value;
            submitForm(ggdf);
        }
      }
      if ((document.ggdf.q.value == "") && (q != "")){
        document.ggdf.q.value = args.q;
      }
      submitForm(ggdf);
    }
  ]]></script>
</search>

'// ========================================================
<search function="ggd">
  <name>Google Desktop Search</name>
  <category>Search the Web</category>
  <contributor>Shawn K. Hall</contributor>
  <email>[EMAIL PROTECTED]</email>
  <link>http://desktop.google.com/</link>
  <description>
    Search Google Desktop Search from DQSD
    <div class="helpboxDescLabels">Switches:</div>
    <table class="helpboxDescTable">
      <tr><td> /about </td><td> About Google Desktop </td></tr>
    </table>
    <div class="helpboxDescLabels">Examples:</div>
    <table class="helpboxDescTable">
      <tr><td>ggd [term]</td></tr>
      <tr><td>ggd </td></tr>
    </table>
  </description>
  <comment>
    This is pretty spiffy, eh?
  </comment>

  <form name="ggdf" method="get" 
        action="http://127.0.0.1:4664/search&amp;s=286122300";>
    <input type="hidden" name="q" value="" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="hidden" value="Search Desktop" name="btnG" />
  </form>
  <script><![CDATA[
    function ggd(q){
      if( nullArgs( "ggd", q ) ){
        return false;
      }
      var args = parseArgs(q, "about");
      for (var i = 0; i < args.switches.length; i++){
        sw = args.switches[i];
        switch(sw.name){
          case "about":
            openSearchWindow("http://desktop.google.com/";);
            return;
          default:
            document.ggdf.q.value = sw.value;
            submitForm(ggdf);
        }
      }
      if ((document.ggdf.q.value == "") && (q != "")){
        document.ggdf.q.value = args.q;
      }
      submitForm(ggdf);
    }
  ]]></script>
</search>

Reply via email to