Re: [Gimp-user] Script-fu in GIMP - and batch processing.



On 2021-05-15 11:45 a.m., ludo0565 dbmail com wrote:
Then I tried with this:
[snip]
                  (filenamenew (+ "(car filelist)" "-new"))
[snip]
But that didn't work either, because the argument to " + " (sum) must be a number.

The problem with that line is that you are passing two strings to + instead of passing numbers to it. The + symbol means add two numbers together. What you want is string concatenation.

Try the following:
    (filenamenew (string-append (car filelist) "-new"))

--
Cheers!

Kevin.

http://www.ve3syb.ca/               | "Nerds make the shiny things that
https://www.patreon.com/KevinCozens | distract the mouth-breathers, and
                                    | that's why we're powerful"
Owner of Elecraft K2 #2172          |
#include <disclaimer/favourite>     |             --Chris Hardwick


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]