Gimp plugin for macro processing

I am very new to scripting and programing but am doing my best to make a plugin that will complete multiple steps in succession for GIMP using script-fu.

The script I have written so far is as follows:

(define (script-fu-macro-pmc-ack image layer)
(gimp-image-undo-group-start image)
(gimp-image-duplicate layer)
(gimp-fuzzy-select drawable x y threshold operation antialias feather feather-radius sample-merged)
(gimp-edit-cut drawable)
(gimp-context-set-sample-transparent sample-transparent)
(gimp-flip drawable flip-type)
(gimp-drawable-transform-rotate drawable angle auto-center center-x center-y transform-direction interpolation supersample recursion- level clip-result)
(gimp-image-undo-group-end image)
(gimp-display-flush)
)

(script-fu-register
“script-fu-macro-pmc-ack”
“/Tool/PMC Macro”
“Protocol for PMC”
“ACK”
“ACK”
“July 2019”
“RGB*, GRAY*”
SF-Image “Image” 0
SF-DRAWABLE “Layer” 0
)

I have a few questions:

  1. I want an image to duplicate itself as a layer and then apply these changes to just ONE of the layers. Is this possible?
  2. I also am unsure what my values should be for a few of my independent functions above. If someone could help me define those or understand those that would be greatly appreciated.
  3. When I try to run this script or a smaller version of this script it gives me this error message:

“Error while loading /Applications/GIMP-2.10.app/Contents/Resources/share/gimp/2.0/scripts/Practice 2.scm: Error: (/Applications/GIMP-2.10.app/Contents/Resources/share/gimp/2.0/scripts/Practice 2.scm : 23) eval: unbound variable: SF-Image”

Why is it giving me this message an how should I go about fixing that?

Thanks in advance!

This is the wrong forum for Gimp related questions. Please aks a Gimp question, e.g., here:

http://gimpforums.com/

https://www.gimp-forum.net/

While the community on this forum may not have expertise related to the Gimp, I believe this post belongs to the forum as per the welcome post declaration:

This forum’s focus is software-oriented aspects of scientific imaging… Discussion of any software packages in the imaging ecosystem is equally welcome…

I think the experts on the Gimp forums are better qualified to answer the questions regarding Gimp scripting.

I agree, it’s just that writing that it’s the wrong forum is not true.