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

问题描述 投票:0回答:2

当我运行此 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)

我做错了什么?

scheme gimp
2个回答
3
投票

根据@souser12345的提示,问题出在命令行上。围绕

*.png
,用这样的严肃口音:

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

将得到这个输出:

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

0
投票

MacOS:使用双引号正确工作。

gimp -i -b '(test "input.jpeg")' -b '(gimp-quit 0)'

© www.soinside.com 2019 - 2024. All rights reserved.