Gimp/plug-ins/script-fu/scripts/test/test7/test7.scm
lloyd konneker d5a83429b4 ScriptFu: Add script-fu-interpreter akin to other interpreters
Why:
1) users can install .scm scripts to plug-ins dir
2) Crashing scripts do not crash extension-script-fu

Scripts (.scm files) have a shebang and are executable
and in a same-named subdir of plugin dir.

Interpreter/scripts create PDB procs of type PLUGIN unlike extension-script-fu
which creates PDB procs of type TEMPORARY, owned by extension-script-fu.

Unlike other interpreters, the interpreter is-a plugin outright,
not by virtue of the script subclassing GimpPlugin and using GI.

More details in /plug-ins/script-fu/interpreter/README
2022-06-30 13:39:45 +00:00

28 lines
691 B
Scheme

#!/usr/bin/env gimp-script-fu-interpreter-3.0
; Test non-canonical name for PDB procedure
; gimp-script-fu-interpreter does not enforce canonical name.
; Other parts of GIMP (PDB) does not enforce canonical name
; for PDB procedures defined by .scm scripts.
; Canonical means starts with "script-fu-"
; Here the name doesn't, its just "test7"
; Expect "Test>Test SF interpreter 7" in the menus
; Expect when chosen, message on GIMP message bar.
(define (test7)
(gimp-message "Hello test7")
)
(script-fu-register "test7"
"Test SF interpreter 7"
_"Just gives a message from Gimp"
"lkk"
"lkk"
"2022"
"" ; all image types
)
(script-fu-menu-register "test7" "<Image>/Test")