I hope I’ve posted in the right place; if not feel free to remove. I have a batch script for the “unsharp mask” filter. It was working well in an older version of Gimp. However, once I installed v. 2.8.22 it refuses to appear in Script-fu. I have tried everything commonly posted in the chats/forums and am out of ideas. I am not a coder, so hopefully it is a simple fix that I am just not seeing. Any advice is appreciated. Thanks!
(define (batch-unsharp-mask pattern
radius
amount
threshold)
(let* ((filelist (cadr (file-glob pattern 1))))
(while (not (null? filelist))
(let* ((filename (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE
filename filename)))
(drawable (car (gimp-image-get-active-layer image))))
(plug-in-unsharp-mask RUN-NONINTERACTIVE
image drawable radius amount threshold)
(gimp-file-save RUN-NONINTERACTIVE
image drawable filename filename)
(gimp-image-delete image))
(set! filelist (cdr filelist)))))