[Tutor] droplet like behaviour in Python
Wayne
srilyk at gmail.com
Mon Aug 10 14:54:30 CEST 2009
On Mon, Aug 10, 2009 at 2:52 AM, Alan Gauld <alan.gauld at btinternet.com>wrote:
> "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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090810/e7f75693/attachment.htm>
More information about the Tutor
mailing list