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


Click here to return to the 'Here's a python translation also ...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Here's a python translation also ...
Authored by: buc40 on Jul 30, '02 09:53:26PM

I threw together this quick python translation for
anyone that is interested:

#!/usr/bin/env python
import os
import sys
browser = "Navigator"
filter = "MacOSX"
keyword = sys.argv[1]
url = "http://www.versiontracker.com/mp/new_search.m?productDB=mac&mode=Quick&OS_Filter=%s&search=%s&x=0&y=0" % (filter, keyword)
todo = ""'Tell application "%s" to Get URL "%s"'"" % (browser, url)
os.system("osascript -l AppleScript -e '%s'" % todo)

Save as vt.py and just change
the permissions "chmod 0755 vt.py" and run as follows:

./vt.py "keyword"

substitute your search term for "keyword" without any quotes. For
example:

./vt.py database


Good Luck.
SA



[ Reply to This | # ]