I found this 
with a little hacking it should do. Its not junk in my book. Thanks Alan.
-----Original Message-----
From: Hoomalu
To: gimp-user@lists.xcf.berkeley.edu
Sent: Mon, 12 Sep 2005 18:30:55 -0400
Subject: scm, commandline batch, or console

I want to automate the process of:
opening many files one at a time, adding a layer from file in the multiply mode and saving it back to the original filename. From what I have read this looks possible but id like some feedback.
(let* ((filelist (cadr (file-glob /temp/*.bmp 1))))
    (while filelist
           (let* ((filename (car filelist))
                  (image (car (gimp-file-load RUN-NONINTERACTIVE
                                              filename filename)))
                  (drawable (car (gimp-image-get-active-layer image))))
             (gimp-file-open-as-layer /junk/54.bmp 1)
           &nbs p; (gimp-layer-set-mode 54 3)
             (gimp-file-save RUN-NONINTERACTIVE
                             image drawable filename filename)
             (gimp-image-delete image))
           (set! filelist (cdr filelist)))))
does this look possible? gimp-file-open-as-layer in console returns "ERROR: unbound variable (errobj gimp-file-open-as-layer)"
aloha, Eric

Reply via email to