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


Click here to return to the 'Add Mac OS X Hints to Searchling' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add Mac OS X Hints to Searchling
Authored by: mshmgi on Dec 02, '02 11:38:25AM

If you want to add the Mac OS X Hints site to the list of searchable sites in Searchling, open the sites.xml file (Contents:Resources:sites.xml) with your favorite text editor and add the following block of text:

<dict>
<key>name</key>
<string>Mac OS X Hints</string>
<key>types</key>
<array>
<dict>
<key>type</key>
<string>Web</string>
<key>url</key>
<string>http://www.macosxhints.com/search.php?mode=search&amp;datestart=0&amp;dateend=0&amp;topic=0&amp;type=stories&amp;author=0&amp;query=</string>
</dict>
</array>
</dict>



[ Reply to This | # ]
Add Mac OS X Hints to Searchling
Authored by: cranfordio on Dec 02, '02 02:50:52PM
Your idea of editing the XML file was great. I always liked Googls for searching the web, but for weather and stocks, I always prefered Yahoo! so I just added the information for searching Yahoo! in the XML file and it worked. Here is what I added: name Yahoo! types type Web url http://search.yahoo.com/bin/search?p= type Weather url http://search.weather.yahoo.com/search/weather2?p= type Stocks url http://finance.yahoo.com/q?s=

[ Reply to This | # ]
Add Mac OS X Hints to Searchling
Authored by: cranfordio on Dec 02, '02 02:53:53PM

Sorry, I had HTML formating on, and it got rid of everything in the brackets. Let me try again.

<dict>
<key>name</key>
<string>Yahoo!</string>
<key>types</key>
<array>
<dict>
<key>type</key>
<string>Web</string>
<key>url</key>
<string>http://search.yahoo.com/bin/search?p=</string>
</dict>
<dict>
<key>type</key>
<string>Weather</string>
<key>url</key>
<string>http://search.weather.yahoo.com/search/weather2?p=</string>
</dict>
<dict>
<key>type</key>
<string>Stocks</string>
<key>url</key>
<string>http://finance.yahoo.com/q?s=</string>
</dict>
</array>
</dict>



[ Reply to This | # ]
Add Mac OS X Hints to Searchling
Authored by: bradsmith74 on Dec 02, '02 03:49:07PM

Two more to play with. May I suggest that we send a copy of these over to Michael Thole (mthole@purdue.edu) who might be interested in compiling a central repository?

<dict>
<key>name</key>
<string>VersionTracker</string>
<key>types</key>
<array>
<dict>
<key>type</key>
<string>MacOSX</string>
<key>url</key>
<string>http://www.versiontracker.com/mp/new_search.m?productDB=mac&amp;mode=Quick&amp;OS_Filter=MacOSX&amp;x=0&amp;y=0&amp;search=</string>
</dict>
<dict>
<key>type</key>
<string>MacOS</string>
<key>url</key>
<string>http://www.versiontracker.com/mp/new_search.m?productDB=mac&amp;mode=Quick&amp;OS_Filter=MacOS&amp;x=0&amp;y=0&amp;search=</string>
</dict>
<dict>
<key>type</key>
<string>Windows</string>
<key>url</key>
<string>http://www.versiontracker.com/mp/new_search.m?productDB=win&amp;mode=Quick&amp;OS_Filter=Windows&amp;x=0&amp;y=0&amp;search=</string>
</dict>
<dict>
<key>type</key>
<string>Palm</string>
<key>url</key>
<string>http://www.versiontracker.com/mp/new_search.m?productDB=palm&amp;mode=Quick&amp;OS_Filter=Palm&amp;x=0&amp;y=0&amp;search=</string>
</dict>
</array>
</dict>

<dict>
<key>name</key>
<string>WHIOS at VeriSign</string>
<key>types</key>
<array>
<dict>
<key>type</key>
<string>Web</string>
<key>url</key>
<string>http://www.netsol.com/cgi-bin/whois/whois/?SearchType=do&amp;STRING2=Search&amp;STRING=</string>
</dict>
</array>
</dict>



[ Reply to This | # ]
Add Mac OS X Hints to Searchling
Authored by: cclauset on Dec 02, '02 08:22:57PM
For more inspiration on editing Searchling's sites.xml file, check out the Bookmarklets Search tools webpage. You'll have to do a little editing of the javascript functions to extract the html queries and you'll have to escape &'s (i.e. &amp;). Bookmarklets were likely the precursor to tools like Searchling.

[ Reply to This | # ]
Add Mac OS X Hints to Searchling
Authored by: boblangdon on Dec 04, '02 10:58:06PM

I can't find a file named sites.xml.
The only file that's generated is:

/users/username/library/preferences/Searchling.plist

which contains:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>dv com.apple.soundmgr._DV Sound Output Settings</key>
<data>
fQAAAA==
</data>
<key>lastSite</key>
<string>Google</string>
<key>lastType</key>
<string>Web</string>
</dict>
</plist>

When I cut and paste the recommended code before the closing </plist> tag, nothing changes at all. When I quit and re-launch Searchling, the changes I made to Searchling.plist disappear and revert to the original state.

Ideas???????



[ Reply to This | # ]
Add Mac OS X Hints to Searchling
Authored by: bluehz on Dec 05, '02 01:04:32AM

Locate the actual Searchling app. Right-click and you should see a contextual menu appear - in that menu one of the selections is "Show package contents" - select that. You should now see a dir/folder called "Contents", double-click that and you will see several dirs and files. Locate the "Resources" dir and open that and you will find your "sites.xml" file to edit.



[ Reply to This | # ]
Add Mac OS X Hints to Searchling
Authored by: boblangdon on Dec 05, '02 11:58:20AM

Ahhh....
Thanks!



[ Reply to This | # ]
not in my searchling
Authored by: teklife on Dec 14, '03 12:56:29AM

i know how to open package contents, but when i open my searchling, there is no sites.xml file anywhere within. the first level contains the following:

Info.plist
MacOS(folder)
pbdeveleopment.plist
PkgInfo
PrivateHeaders(folder), and
Resources(folder).

inside the Resources folder are the following files,

Credits.rtf
defaults.plist
English.lproj (folder)
itemicon.tif
itemiconSel.tif
Japanese.lproj
searchling-app.icns

a search for the file, sites.xml revealed a file in the searchling folder inside the ApplicationSupport folder. how will editing this file help me if it's not in the app itself? do i edit default.plist instead? why is mine different?



[ Reply to This | # ]