Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Using The GIMP with iPhoto Apps
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...


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
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[10,595 views]  

Using The GIMP with iPhoto | 1 comments | Create New Account
Click here to return to the 'Using The GIMP with iPhoto' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
GIMP needs to be running first.
Authored by: gdelfino on Apr 06, '02 02:14:11PM

The hint is very useful, but it would be better if it launched the GIMP if it is not running. Does anyone knows how to solve this?

I'll try to create a similar script for XEmacs.

Regards,

Gustavo Delfino



[ Reply to This | # ]