drag and drop filters

C. Keith Ray nospamkjray at ix.netcom.com.nospam.org
Sat Sep 4 13:39:23 EDT 1999


Is is possible to use Python on the Mac to create an "applet" that, when
you drop files or folders on its icon in the Finder, opens and processes
those files or folders.

In applescript you'd create save the following as "an application":

on open theSelectedItems
        repeat with thisItem in theSelectedItems
          -- process thisItem
        end repeat
end open

What would the equivalent be with Python on MacOS?

Has anyone hooked Python into MacOS Open Scripting Architecture?

k j r a y @ i x . n e t c o m . c o m
<http://pw2.netcom.com/~kjray/index.html>




More information about the Python-list mailing list