On Tue, Jun 27, 2000 at 11:42:12AM -0500, Avi Schwartz wrote:
#!/bin/sh # \ exec wish "$0" "$@"
wm withdraw . if { [catch { set word [selection get "STRING"] }] != 0 } { exit 0 } regsub -all "( |\n)+" "$word" "+" googleWord exec kfmclient openURL "http://www.google.com/search?q=$googleWord" exit 0
Now THAT's cool :). Thanks, Avi! -- -=|JP|=- "Why, oh, why didn't I take the blue pill?" Jon Pennington | Atipa Linux Solutions -o) jpennington@atipa.com | http://www.atipa.com /\\ Kansas City, MO, USA | 816-595-3000 x1550 _\_V 6D04 39E0 CAE9 9ADA 2CA3 2EBE 898A 6C37 CA1E A29C -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
#!/bin/sh # \ exec wish "$0" "$@"
wm withdraw . if { [catch { set word [selection get "STRING"] }] != 0 } { exit 0 } regsub -all "( |\n)+" "$word" "+" googleWord exec kfmclient openURL "http://www.google.com/search?q=$googleWord" exit 0
Now THAT's cool :).
That was my original, but someone, either here on on the KDE list tweaked it with: exec kfmclient openURL "http://www.dictionary.com/cgi-bin/dict.pl?term=$dictWord" which causes a dictionary lookup of the meaning of the word selected. I found this more useful. I keep meaning to make this into an application which runs the selection through any one of a number of 'net services (dictionary, search, spellcheck, yellow pages, whois), but I haven't got around to it. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
fountai@hursley.ibm.com
-
jpennington@atipa.com