How do I invoke IE browser from Python on Mac OS X?

Piet van Oostrum piet at cs.uu.nl
Tue Oct 22 14:26:35 EDT 2002


>>>>> pj at engr.sgi.com (Paul Jackson) (PJ) writes:

PJ> Piet wrote:
>> No such file: /Users/piet/http:/www.python.org

PJ> This suggests you aren't running on the same Mac OS X that I'm
PJ> running on <grin>.

PJ> I specifically recall that doing:

PJ>     open http://www.google.com

PJ> worked for me last night, when I had my iBook running the
PJ> latest OS X at hand.  It opened up Internet Explorer, the
PJ> default browser on that system, on Google.

I still have Mac OSX 10.1.5.
There you can use the following command:

osascript -e 'open location "http:/www.python.org"'

-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl



More information about the Python-list mailing list