[Pythonmac-SIG] Drag and Drop Launch of whatever.py?

Bob Ippolito bob at redivi.com
Fri Jul 21 01:10:15 CEST 2006


On Jul 20, 2006, at 3:53 PM, Jerry LeVan wrote:

> Hi,
>
> I can start gui python apps by the command line
>
> $: python whatever.py
>
> or if I chmod u+x whatever.py then a simple
>
> $: whatever.py
>
> will do the job.
>
> I am running python 2.4.3 on a mac ppc box with the lastest OS  
> version.
>
> I would like a quick way to start the app by either double-click a
> *.py file or drag it
> onto a "launcher". ( CD'ing to the app folder or navigating a folder
> hierarchy gets
> aggravating...
>
> If I try to drag onto the python launcher I get a "Can't open foo.py"
> message.
> (or nothing happens)
>
> If I drag onto the IDLE Icon the file opens the editor, choosing run
> module
> will sometimes "do nothing"/Complain that the app needs pythonw"/
> launch a
> window that that can't become frontmost...
>
> Is there a way to config PythonLauncher to launch python apps? what  
> have
> I screwed up....

That's kinda strange, maybe PythonLauncher is broken. I don't think  
anyone has paid attention to it in a few years.

You might want to try using py2app to create actual application  
bundles from your scripts, though.

-bob



More information about the Pythonmac-SIG mailing list