goode-save-all-images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



script below was created by Saul Goode
I think I had it working in GIMP 2.4 but it fails in GIMP 2.6.3 with error:
Error: eval: unbound variable: goode-save-all-images

 From working on another of his scripts I thought it was because no 
value was being assigned to image in the *let construct:
let* ((i (car (gimp-image-list)))
         (image))
so I changed it to:
let* ((i (car (gimp-image-list)))
         (image -1))

but still get the same error - can anyone figure out what the "correct" 
fix is?

Original script:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.

(define (script-fu-save-all-images)
  (let* ((i (car (gimp-image-list)))
         (image))
    (while (> i 0)
      (set! image (vector-ref (cadr (gimp-image-list)) (- i 1)))
      (gimp-file-save RUN-NONINTERACTIVE
                      image
                      (car (gimp-image-get-active-layer image))
                      (car (gimp-image-get-filename image))
                      (car (gimp-image-get-filename image)))
      (gimp-image-clean-all image)
      (set! i (- i 1)))))

(script-fu-register "goode-save-all-images"
 "<Image>/File/Save/Save ALL"
 "Save all opened images"
 "Saul Goode"
 "Saul Goode"
 "11/21/2006"
 ""
 )

-- 
Regards ... Alec   (buralex@gmail & WinLiveMess - alec.m.burgess@skype)


[Index of Archives]     [Gimp Developers]     [Gimp Users]     [Yosemite News]     [Epson Inkjet Printers]     [Scanners]     [Gimp's Home]     [Steve's Art]

&hbsp; Powered by Linux