jay wrote:Interesting - we're just using the standard "webbrowser" package in Python. Do the following:
- Select "Open Scripting Shell" from the "Plugins" menu
- Type (or copy/paste) in the following script
- Code: Select all
import webbrowser
webbrowser.open_new("http://www.weather.gov/xml/current_obs/")
Does it work? Try opening the URL above in your default web browser (which is what the command above is supposed to do) - does that work?
It opened the web page as expected.
This was displayed on the console:
2011-11-22 06:59:18.190 osascript[6090:613] Error loading /Library/ScriptingAdditions/XSLT Tools.osax/Contents/MacOS/XSLT Tools: dlopen(/Library/ScriptingAdditions/XSLT Tools.osax/Contents/MacOS/XSLT Tools, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/XSLT Tools.osax/Contents/MacOS/XSLT Tools: mach-o, but wrong architecture
osascript: OpenScripting.framework - scripting addition /Library/ScriptingAdditions/XSLT Tools.osax declares no loadable handlers.
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/webbrowser.py", line 65, in open_new
return open(url, 1)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/webbrowser.py", line 60, in open
if browser.open(url, new, autoraise):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/webbrowser.py", line 589, in open
rc = osapipe.close()
IOError: [Errno 10] No child processes