Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Some more...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Some more...
Authored by: Loren on Dec 03, '02 12:22:35PM

\0\05{\0\0\0\0\0\0\0\0ix...


<dict>
<key>name</key>
<string>IMDB</string>
<key>types</key>
<array>
<dict>
<key>type</key>
<string>Web</string>
<key>url</key>
<string>http://www.IMDB.com/Find?</string>
</dict>
</array>
</dict>
<dict>
<key>name</key>
<string>Netflix</string>
<key>types</key>
<array>
<dict>
<key>type</key>
<string>Web</string>
<key>url</key>
<string>http://www.netflix.com/Search?v1=</string>
</dict>
</array>
</dict>



[ Reply to This | # ]
Some more...
Authored by: bluehz on Dec 03, '02 01:09:11PM

Great one Loren! Thx!

I am not too familiar with XML - is there a list of items that need to be escaped somewhere.

For example - how would one go about doing something like this:

http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&as_qdr=all&q=apropos+site%3Aosxfaq.com

Also - since this is using Google to search OSXFAQ you will notice that the query string at the end has "+site=site%3Aosxfaq.com" appended to it. How can you create the proper string for Searchling with the query string as the last element in that format (as opposed to the site...)?



[ Reply to This | # ]
Some more...
Authored by: bluehz on Dec 03, '02 01:29:48PM

Answering my own qeury...

Google does not care whether the site-specific name or the query tem is listed first. So the actually OSXFAQ search item for Searchling would be:

<!-- //////////////////// OSXFAQ //////////////////// -->
<dict>
<key>name</key>
<string>OSXFAQ</string>
<key>types</key>
<array>
<dict>
<key>type</key>
<string>MacOS X</string>
<key>url</key> <string>http://www.google.com/search?hl=en&amp;lr=&amp;ie=ISO-8859-1&amp;as_qdr=all&amp;q=site%3Aosxfaq.com+</string>
</dict>
</array>
</dict>

Note the use of the comments in XML - helps a lot with my sites.xml list getting so long.

What about creating dividers in the Searchling menus? I tried several failed attempts at creating empty <dict> entities for example with the name of "----------" or similar - but Searchling didn't like it - went all wonky and display several G icons across the menu bar. With long lists - some pseudo-menu item seperators would be nice.



[ Reply to This | # ]
Some more...
Authored by: tophu on Dec 03, '02 05:52:17PM

A key for a the space would be the right way to go. And really, this needs an editor. Perhaps I'll look into creating an interface for editing the XML list...



[ Reply to This | # ]