Ok, I think I know what's going on.

   Here is my test script:

        #!/bin/sh
        
        echo "Running test script..."
        
        foreach file; do
          echo "${file}"
        done

   And here is the output when I drop the script and a copy of it on the 
droplet:

        Running test script...
        /Volumes/data/Users/wsanchez/test.sh
        Running test script...
        /Volumes/data/Users/wsanchez/test.sh copy

   The potentially surprising event here is that the script is running 
twice.  I was actually aware of this, but had forgotten.  If the Finder 
has been written in Cocoa, I think you'd see the script invoked only 
once, with multiple arguments.  This would almost certainly be the case 
if you build and run DropScript on Rhapsody.

   What's going on is that the Carbon pasteboard is somehow unclever, and 
doesn't accept multiple items or something like that.  The upshot is 
that Finder sends two open: requests to the drop application and not one 
with two file names.

   I think this is what's tripping you up.  Your test ends up overwriting 
the log file on the second invocation, so you only see the last file 
name received.  If you were to append, I think you'll see both.

   This is actually a big problem...  It means that DropShove probably 
doesn't work, because it will only archive one file.  That sucks.

        -Fred

Reply via email to