Below is an AppleScript that will open images in The GIMP (an X Windows graphical editing program). You can drag images onto it from the Finder, or from iPhoto. You can also use this script to edit from iPhoto directly, by changing the "Double-clicking photos opens them in:" option to "other", and pointing it at this script.
Note: This script requires the GIMP to be up and running. Also, the script assumes you are using the Fink installation of the GIMP (i.e., that your GIMP binaries live in /sw/bin. If you are using Gnu-Darwin or another installation, you will need to change the path.
Read the rest of the article for the script...
Note: This script requires the GIMP to be up and running. Also, the script assumes you are using the Fink installation of the GIMP (i.e., that your GIMP binaries live in /sw/bin. If you are using Gnu-Darwin or another installation, you will need to change the path.
Read the rest of the article for the script...
on run
display dialog "Open File in the GIMP" & return & return & ¬
"Drag a single image onto this droplet to open it within the GIMP." & ¬
return & return & ¬
"Note: The GIMP must already be running." buttons {"OK"} default button 1
end run
on open these_items
repeat with i from 1 to the count of these_items
set this_item to (item i of these_items)
do shell script "/usr/bin/perl -e " & ¬
"\"my \\$fp = \\$ARGV[0]; \\$fp =~ s/[^:]+:/\\//;\\$fp =~ s/:/\\//g;" & ¬
"\\$ENV{DISPLAY} = \\\":0.0\\\"; \\`/sw/bin/gimp-remote \\\"\\$fp\\\" \\`;\" \"" & ¬
this_item & "\" "
end repeat
end open
•
[10,700 views]

