Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Concatenate string and variable in script-fu (TinyScheme)

I am trying to write a simple script-fu function. I want it to take a filename as argument and load this file from a folder (whose path will be hardcoded).

Base code:

(define (myfunction inputfile)
    (let * ( (image (cat (file-png-load 1 inputfile inputfile)
                                          ^^^^^^^^^
...

Here is what I want to achieve in a ecmascript syntax:

"foldername/" + inputfile

I have looked on the Scheme doc, but I see no example of variable+string concatenation...

https://groups.csail.mit.edu/mac/ftpdir/scheme-7.4/doc-html/scheme_7.html#SEC61

Thanks in advance and have a nice day.

like image 775
Yann Pellegrini Avatar asked Dec 01 '25 00:12

Yann Pellegrini


1 Answers

Well it seems that it was simpler than I thought

(string-append "myfolder/" infile")
like image 66
Yann Pellegrini Avatar answered Dec 05 '25 04:12

Yann Pellegrini



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!