An external Script-Fu plug-in that is registered like so:
(script-fu-register
"script-fu-almost-autosave-set-up"
"Set Up"
"Edit the Almost Autosave Settings"
"Mark Sweeney"
"Under GNU GENERAL PUBLIC LICENSE Version 3"
"2025"
""
SF-ADJUSTMENT "Save E_very...(minutes)" (list 15 1 60 1 5 0 SF-SPINNER)
SF-ADJUSTMENT "Nu_mber of Saves" (list 3 1 20 1 10 0 SF-SPINNER)
SF-DIRNAME "Loca_tion of Storage" ""
SF-STRING "Storage _Directory Name" "Autosave")
(script-fu-menu-register
"script-fu-almost-autosave-set-up"
"<Image>/File/Almost Autosave")
Can be called like this from another script registered in the same manner.
Note that I use the GUI input types.
;; Purpose: Sets up autosave settings with a helper plugin
(define (set-up-autosave)
(script-fu-almost-autosave-set-up #:run-mode RUN-NONINTERACTIVE
#:adjustment save-every-minutes
#:adjustment-2 max-saves
#:dirname save-path
#:string dir-name))
I suspect I might expect to use the procedure parameter names:
(define (script-fu-almost-autosave-set-up save-every-minutes max-saves path dir-name)
However
#:save-every-minutes 15
Error: Invalid argument name: save-every-minutes
My concern is that I’m incorrectly using the api, to call the plug-in.
Any insights are welcome, thanks.
Note that I do not use a filter plug-in here, but they do run as plug-ins, not as scripts.