On Mon, Aug 10, 2009 at 2:52 AM, Alan Gauld <alan.ga...@btinternet.com>wrote:
> "pedro" <pedrooconn...@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. I'm not sure if this will be of any help: http://docs.python.org/library/carbon.html http://sourceforge.net/projects/appscript/ But that's all I could come up with, without a mac or a whole lot of experience with a mac. HTH, Wayne
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor