[Tutor] Why is startfile unavailable on my mac?

2006-12-04 Thread Nathan Cain

When I type the following in macpython IDLE,:

 import os
 os.startfile()

I get the following error:

Traceback (most recent call last):
  File pyshell#10, line 1, in module
os.startfile()
AttributeError: 'module' object has no attribute 'startfile'

Why is this unavailable to me?

I am trying to open a url in a browser window.

If startfile is just not available on the mac, can someone please  
give me some simple example code that will open http://www.python.org  
in a safari window?


Thank you.

***
Nathan Cain
http://www.Web-Magnets.com

Refrigerator Magnets  Promotional Products

Office: 1-877-WEB-MAGNETS (932-6246)
Cell Phone: 1-501-276-0817
Fax: 1-267-295-8776

Click here if you want me to email you
when we run sales or specials.
***



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] clicking a javascript link in a browser

2006-12-04 Thread Nathan Cain
There is a link on a pop-up window from a page that I opened with  
webbrowser.open()


the link is:  javascript:Events.clearList();

is there a way for python to click that link?

Thank you.

***
Nathan Cain
http://www.Web-Magnets.com

Refrigerator Magnets  Promotional Products

Office: 1-877-WEB-MAGNETS (932-6246)
Cell Phone: 1-501-276-0817
Fax: 1-267-295-8776

Click here if you want me to email you
when we run sales or specials.
***



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor