Well, you could make a wrapper app in Project Builder and give yourself applescriptable wget or something, but you can also call unix commands directly from an applescript, so that might be kinda silly.
Scripting an XWindows app like GIMP? Ooh. That's a good one. Even if it's technically possible, I sure wouldn't want to take on a project like that!
-Rob