I've been using fink's GIMP 2.0 installation for a while, but my old drag-and-drop script was still set up for 1.2. I could have just fixed it by changing the symlinks that point GIMP commands to a specific version so that they refer to 2.0 instead of 1.2 (which I ultimately also did), but I've been bugged for a while by the old script's requirement of launching GIMP in advance, and having to fix another part of the process finally motivated me to do something about it. Poking around a little I found this hint, which improves on the script I'd been using (the one mention at the beginning of the new hint).
The new script has some issues, mentioned in the comments, but unfortunately the fixed version that is alluded to is MIA. The bright side it that it gave me an excuse to play with AppleScript a bit, and now I have a script that uses X11 and handles multiple files correctly in almost all cases. I still need to fix it so it doesn't launch multiple instances of the GIMP if it tries to open several files and finds that the GIMP isn't already running, but that should be easy enough to fix. And if not, it's still worlds better than the old script. Here's to progress! AppleScript is very cool, but I never quite get around to learning more than a tiny bit of it... but I guess that's what Automator is all about: automation without learning/remembering AppleScript.
If any of the other 20 people running GIMP on OS X using fink instead of Gimp.app need good drag-and-drop support, drop me a line :)
[Update: It now handles all drag-and-drop cases correctly, and also launches the GIMP if you run it without dropping a file, so it's now an app for all purposes that matter to me!]

Subscribe