Sat Jun 05, 2021 1:18 pm
(define (script-fu-test)
(gimp-message "no variable TEST!")
)
gimp-2.10.exe -i -b "(script-fu-test)" -b "(gimp-quit 0)"
(define (script-fu-test strpass)
(gimp-message "no variable TEST!")
(gimp-message (string-append "TEST! with" strpass))
)
gimp-2.10.exe -i -b "(script-fu-test "stringy thingy TEST")" -b "(gimp-quit 0)"
gimp-2.10.exe -i -b '(script-fu-test "stringy thingy TEST")' -b "(gimp-quit 0)"
gimp-2.10.exe -i -b "(script-fu-test \"stringy thingy\")" -b "(gimp-quit 0)"
Sat Jun 05, 2021 3:44 pm
Sat Jun 05, 2021 4:57 pm
Sat Jun 05, 2021 6:38 pm
ofnuts wrote:Did you try python instead?
Sun Jun 06, 2021 1:46 am
(define (script-fu-test strpass)
(begin
(gimp-message "no variable TEST!")
(gimp-message (string-append "TEST! with" strpass))
)
)
Sun Jun 06, 2021 1:11 pm
paynekj wrote:Give this a try:
- Code:
(define (script-fu-test strpass)
(begin
(gimp-message "no variable TEST!")
(gimp-message (string-append "TEST! with" strpass))
)
)
and use the escaped double-quotes version of the command line.
Mon Jun 07, 2021 3:56 am
C:\temp>"\Program Files\GIMP 2.10\bin\gimp-console-2.10.exe" -i -b "(script-fu-test \"stringy thingy\")" -b "(gimp-quit 0)"
script-fu.exe-Warning: no variable TEST!
script-fu.exe-Warning: TEST! withstringy thingy
batch command executed successfully
Tue Jun 08, 2021 5:40 am
TestUserName wrote:ofnuts wrote:Did you try python instead?
I must be honest: I've spent hours on this already to the point where I've realized Python would be more efficient (went ahead and re-installed Python on my machine even before making this thread), but I'm also so frustrated by script-fu/scheme that I really want to "beat" this issue, efficiency be damned. I was hoping there was a simple fix that more experienced folks would be able to help me with, but if this is a really arcane problem I will just give up on the script-fu side of things and jump to Python.