[Tutor] droplet like behaviour in Python
Alan Gauld
alan.gauld at btinternet.com
Mon Aug 10 09:52:37 CEST 2009
"pedro" <pedrooconnell at gmail.com> wrote
> Well I made a script called droplet.py which looks like this:
>
> #!/usr/bin/env python
> # encoding: utf-8
> import sys
> theFilePath = sys.argv[1]
> print theFilePath
>
>
> But when I try to drop something on it nothing happens. Sorry I guess
> there is something fundamental that I am missing.
Sorry, obviously I was wrong.
FWIW in XP I get python to start up but there is no filename in argv.
I'll go and have a hunt in my MacOS books but sadly I don't have
my iBook available just now to try anything.
Alan G.
More information about the Tutor
mailing list