当我运行此 C:\Users\dev\.gimp-2.8\scripts est.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)
我做错了什么?
根据@souser12345的提示,问题出在命令行上。围绕
*.png
,用这样的严肃口音:
gimp-2.8 -i -b '(test `*.png`)' -b '(gimp-quit 0)'
将得到这个输出:
batch command executed successfully
(Type any character to close this window)
MacOS:使用双引号正确工作。
gimp -i -b '(test "input.jpeg")' -b '(gimp-quit 0)'