Macintosh Question

Cliff Wells logiplexsoftware at earthlink.net
Wed May 1 16:59:30 EDT 2002


On Tue, 30 Apr 2002 15:59:10 -0700
Bryce C. Mason wrote:

> I developed a script in windows which opens a file, does "stuff" to it, and
> writes a few files back to the disk.
> 
> How do I do the "drag and drop" Macintosh version?  I want the user to have
> my python script on his desktop and all he has to do is drag the file over
> the script, let go, and out pop the files the script generates right on his
> desktop.

Not a Mac user, but perhaps dropping a file on the icon will call the script
with the name of the dropped file as an argument?  If so then you can use
either sys.argv or getopt.getopt to access the filename.

-- 
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308  (800) 735-0555 x308





More information about the Python-list mailing list