Re: [Pythonmac-SIG] CGI + appscript newbie question/problem

2007-05-29 Thread Christopher Barker
Nicholas Riley wrote: > Since you're using /usr/bin/python and assuming you're using 10.4.x, > that should be the system Python 2.3.5. which shouldn't be able to connect to the Window Server at all -- in that version, you need "pythonw" to do that. The mystery continues... -Chris -- Christo

Re: [Pythonmac-SIG] CGI + appscript newbie question/problem

2007-05-29 Thread Christopher Barker
Brian Wichmann wrote: > What frameworks would people recommend? Pylons is a good bet -- we're moving to it for some of our stuff. Also check out Django and TurboGears. In any case, a Framework is a better bet for all but the very simplest stuff. -Chris -- Christopher Barker, Ph.D. Oceano

Re: [Pythonmac-SIG] CGI + appscript newbie question/problem

2007-05-28 Thread Nicholas Riley
On Sun, May 27, 2007 at 05:04:25PM -0700, Andres Francisco Rojas wrote: > but when I try to import appscript into the script run as cgi I get > an 500 Internal Server Error. Typically you should look in the Web server logs (/var/log/httpd/error_log) in that case to see the details of the error, w

Re: [Pythonmac-SIG] CGI + appscript newbie question/problem

2007-05-28 Thread has
Hamish Allan wrote: > When you run appscript at the command line and the little rocket > appears in the Dock, that's Python connecting to the window server -- > through which Apple events are managed. I'm not sure why Python's command line interpreter upgrades itself to a full GUI process when

Re: [Pythonmac-SIG] CGI + appscript newbie question/problem

2007-05-28 Thread Brian Wichmann
What frameworks would people recommend? Brian. On 28 May 2007, at 10:50, Hamish Allan wrote: > By the way, have you considered looking into one of the web frameworks > for Python? ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.pyt

Re: [Pythonmac-SIG] CGI + appscript newbie question/problem

2007-05-28 Thread Hamish Allan
When you run appscript at the command line and the little rocket appears in the Dock, that's Python connecting to the window server -- through which Apple events are managed. For security purposes, your Apache process can't connect to the window server. You'll probably have to create a daemon runni

[Pythonmac-SIG] CGI + appscript newbie question/problem

2007-05-27 Thread Andres Francisco Rojas
Hey everyone. So I'm more or less new to Python, just wanted to say that right up front so please excuse any silly questions. Generally what I'm trying to do is control a Mac OS X application through a website via Python and appscript. I have successfully got Apache running and configured to run