[wxPython-mac] Re: [Pythonmac-SIG] Wanted: working example of CFBundleTypeRole Shell

Kevin Altis altis@semi-retired.com
Fri, 8 Mar 2002 08:27:23 -0800


> From: Jack Jansen
>
> I'm going to think about the problem a bit more: it's solved for the
> command line case already, and for the finder case (doubleclicking a .py
> file) I'm not so sure anymore that what you want if you double click a
> .py file is running it, a case could be made that you really want to
> open it in the IDE.

In that case, how do you envision users of scripts running them? In the case
of a script with a GUI the user is going to want to treat the script like an
application, or at least that is what we're already doing on Windows and
Linux with wxPython scripts/apps. The user will want the option of a console
window for stdout and stderr (basically debugging). We already have the .pyw
extension for suppressing the console, what does that do on the Mac?
Double-clicking a .py or .pyw file on Windows (Linux too?) runs the script.

If we have to have a separate extension or some other wrapper mechanism for
the Mac, that is going to make doing cross-platform scripts more tedious, so
it would be nice to avoid if possible.

ka