Re: [Tutor] droplet like behaviour in Python

2009-08-11 Thread Wayne
On Tue, Aug 11, 2009 at 4:49 PM, Nick Raptis wrote: > > PS2: I guess I'm starting to deduce that the answer is > platform/installation specific rather than python/script specific. > That turns the question it to a whole new direction for me. It's probably even more than that - my guess is

Re: [Tutor] droplet like behaviour in Python

2009-08-11 Thread Nick Raptis
For the Windows users out there: A google search returned me this: Make Python Scripts Droppable in Windows I checked my registry and the extension was there. That must be why my drop script works.

Re: [Tutor] droplet like behaviour in Python

2009-08-11 Thread Nick Raptis
pedro wrote: #!/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. Pete Pedro, I'll reply to this message instead of the last o

Re: [Tutor] droplet like behaviour in Python

2009-08-10 Thread pedro
On 2009-08-10 22:40:14 -0400, Dave Angel said: bob gailer wrote: Alan Gauld wrote: "pedro" 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 o

Re: [Tutor] droplet like behaviour in Python

2009-08-10 Thread Dave Angel
bob gailer wrote: Alan Gauld wrote: "pedro" 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 some

Re: [Tutor] droplet like behaviour in Python

2009-08-10 Thread bob gailer
Alan Gauld wrote: "pedro" 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 t

Re: [Tutor] droplet like behaviour in Python

2009-08-10 Thread Wayne
On Mon, Aug 10, 2009 at 2:52 AM, Alan Gauld wrote: > "pedro" 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 no

Re: [Tutor] droplet like behaviour in Python

2009-08-10 Thread Alan Gauld
"pedro" 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.

Re: [Tutor] droplet like behaviour in Python

2009-08-09 Thread pedro
On 2009-08-08 19:34:44 -0400, "Alan Gauld" said: "pedro" wrote is one thing I am not really sure how to do. I want to be able to drop a file onto a python script (or app I guess) and have the python script use the path to the file that was dropped on it as sys.argv[1] I may be wrong but

Re: [Tutor] droplet like behaviour in Python

2009-08-08 Thread Alan Gauld
"pedro" wrote is one thing I am not really sure how to do. I want to be able to drop a file onto a python script (or app I guess) and have the python script use the path to the file that was dropped on it as sys.argv[1] I may be wrong but I thought that, provided you had the path and sh

[Tutor] droplet like behaviour in Python

2009-08-08 Thread pedro
Hi I am porting some of my code over from Applescript to Python. There is one thing I am not really sure how to do. I want to be able to drop a file onto a python script (or app I guess) and have the python script use the path to the file that was dropped on it as sys.argv[1] In applescript it