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


Click here to return to the 'Fix for omniweb' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Fix for omniweb
Authored by: FlyBoy on Aug 01, '02 02:59:04PM
This hint doesn't work for omniweb since the OpenURL command is not part of its Applescript suite; however, changing OpenURL to GetURL fixes it:
#!/usr/bin/perl -w $browser = "Omniweb"; print "Search string: "; $keyword = ; chomp($keyword); $url = "http://www.macosxhints.com/search.php?query=".$keyword."&mode=search&datestart=0&dateend=0&topic=0&type=stories&author=0"; $todo = "'Tell application "$browser" to GetURL "$url"'"; system("osascript -l AppleScript -e $todo");


[ Reply to This | # ]
Backslashes...
Authored by: robg on Aug 01, '02 06:48:40PM

Check the original code for the proper formatting of the line with backslashes; Geeklog ate the ones in the original comment (argh ... I really want the new engine!!)

-rob.



[ Reply to This | # ]
Fix for omniweb
Authored by: RudeDawg on Aug 05, '02 04:20:41PM

Not to nitpick, but this can be done easily in the "Shortcut Preferences" pane in OmniWeb.

One is already set up for searching Google in the address line.
This works for Mac OSX Hints...

Shortcut - hint@
Destination URL - http://www.macosxhints.com/search.php?query=%@"&
mode=search&datestart=0&dateend=0&topic=0&type=stories&author=0"

Again, type the URL in one line. Type "hint (space) (search term)" in the address bar, and presto!



[ Reply to This | # ]