Notetab Clip to Search Google For Term

Okay, I often search Google to find Notetab’s great Yahoogroups messages. I find the search utility in YahooGroups to be fairly limiting. Tonight RP Dooling — the author — suggested that a clip might be in order … and that got me to thinking. Here is the first in what could easily be a series of clips to search.

This one will limit its search to Yahoogroups that contain the word notetab, either the term you have highlighted when you select the clip, or in the alternative, it will prompt you for a search term to add. It then fires up Google an it is off to the races.

So here it is …
;*** Effort by Don Passenger
;*** don a-t htmlfixit d-o-t com
;*** discuss things live in chat at http://htmlfixit.com
;*** donations welcome at http://htmlfixit.com
;*** Search Google for Notetab Messages
;*** based on Utilities Library + RP Doolings Idea

;START
; Clear variables
^!ClearVariables
^!If ^$GetSelSize$ > 0 HaveSelection ELSE NoSelection

:HaveSelection
^!Set %SearchTerm%=^$GetSelection$
^!Goto TheSearch

:NoSelection
^!Set %SearchTerm%=^?{Type in All Search Terms Separated by a Space}
^!Goto TheSearch

:TheSearch
;replace all spaces in search term with +
^!Set %SearchTerm%=^$StrReplace(" ";"+";"^%SearchTerm%";0;0)$
;replace all quotes in search term with %22
^!Set %SearchTerm%=^$StrReplace(""";"%22";"^%SearchTerm%";0;0)$
^!URL http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fgroups.yahoo.com+notetab+^%SearchTerm%
;line 25 if no lines are wrapped

Leave a Reply

Recent Posts

Archives

Topics