GIMP:test.scm在运行时出现“未绑定变量”错误

时间:2019-08-05 12:01:24

标签: scheme gimp

当我运行此C:\ Users \ dev \ .gimp-2.8 \ scripts \ test.scm脚本时:

(define (test pattern))

在Windows PowerShell中使用以下命令:

gimp-2.8 -i -b '(test "*.png")' -b '(gimp-quit 0)'

我收到此错误:

batch command experienced an execution error:
Error: ( : 1) eval: unbound variable: *.png

(Type any character to close this window)

我在做什么错了?

1 个答案:

答案 0 :(得分:2)

在@ souser12345的提示下,问题出在命令行。在*.png周围加上诸如此类的重音:

gimp-2.8 -i -b '(test `*.png`)' -b '(gimp-quit 0)'

将获得以下输出:

batch command executed successfully
(Type any character to close this window)