[Pythonmac-SIG] Suggestion for PythonMac-tutorial: droplets?

Jack Jansen Jack.Jansen@cwi.nl
Thu, 30 Jul 1998 00:01:27 +0200


Recently, Wolfgang Keller <wolfgang@amadeus.m.eunet.de> said:
> Hello,
> 
> there doesn't seem to be any example available of how to write a droplet in
> Python.

If I understand the term "droplet" correct, an applet on which you can 
drop files, then every Python applet is a droplet. By default every
applet will accept files of any type, and they'll all end up in
sys.argv. If you want to change the former you can supply your own
resource file with a different BNDL resource, if you want to change
the latter, and do your own startup AppleEvent processing (for
instance because you want to catch a GURL startup event) you drop your 
applet on EditPythonPrefs and set the "no argc/argv" and preferrably
"no starup option dialog" options.

Do people feel that this behaviour deserves special mention in the
documentation? 
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@cwi.nl      | ++++ if you agree copy these lines to your sig ++++
http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm