You mention a Droplet but you posted what looks like AppleScript code.
What exactly are you doing?
You can save applescript files as a droplet that acts as a standalone application. This means that I select a list of files and drag them onto the droplet, activating the script.
So yes, it's a droplet, and it's also Applescript.
The code is fairly straightforward, which is why I'm confused!
Ah, Photoshop has a Droplet feature of its own, too.
AppleScript is not particularly popular for automating Photoshop tasks in my experience, so the quantity and quality of advice on it may not be great on this Forum.
Under cs3 I had no trouble creating and using droplets, which is necessary if you want to create any export actions to use in Lightroom. ....