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


Click here to return to the 'The modified script for Mozilla' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
The modified script for Mozilla
Authored by: Anonymous on Jul 30, '02 06:27:24AM

#!/usr/bin/perl -w
#######
# This is a spiffy script written by Robert Daeley to
# search VersionTracker sans loading their frickin' big
# honkin' homepage. With the encouragement of cohort Hans Hickman.
# 27 7 2002 version 0.9.9
#######
# User-specified variables are below.
# To use, simply type ./vtsearch.pl (or whatever you name the script).
# A blank line will appear. Type keyword you want to search by and hit return.
# $browser can be any webbrowser's full name

$browser = "Mozilla";

#### LEAVE EVERYTHING BELOW AS IS ####

$filter = "MacOSX";
print "Search string: ";
$keyword = <STDIN>;
chomp($keyword);
$url = "http://www.versiontracker.com/mp/new_search.m?productDB=mac&mode=Quick&OS_Filter=".$filter."&search=".$keyword."&x=0&y=0";
$todo = "\'Tell application \"$browser\" to OpenURL \"$url\"\'";
system("osascript -l AppleScript -e $todo");



[ Reply to This | # ]
The modified script for Mozilla
Authored by: bluehz on Jul 30, '02 07:48:54AM

Mozilla offers a great method of using keywords to do this same thing: Create a new bookmark with this url:

http://www.versiontracker.com/mp/new_search.m?productDB=mac&mode=Quick&OS_Filter=MacOSX&search=%s&x=0&y=0

Open the bookmark manager and look at the properties of your new bookmark. Give it a short, easy to type keyword name and close the window. Say for example we give it the name "vts". Now whenever I want to search Version "Molasses" Tracker for a name I just enter my keyword + search string:

vts what_i'm_looking_for

The %s in the url acts as the variable replaced at runtime in the URL string. Great feature than can be used most anywhere. Here's another example - the url for MacOSXHints is:

http://www.macosxhints.com/search.php?query=%s&mode=search&datestart=0&dateend=0&topic=0&type=stories&author=0

You can get more info here:

http://www.mozilla.org/docs/end-user/keywords.html



[ Reply to This | # ]