[Gimp-user] file-glob problem in 2.4.0rc3
saulgoode at flashingtwelve.brickfilms.com
saulgoode at flashingtwelve.brickfilms.com
Thu Oct 18 07:58:11 PDT 2007
'file-glob' used to return a list of strings in GIMP 2.2, now it
returns a vector. You can make your code work by using the following
substitution:
(car (vector->list (cadr (file-glob "*.png" 1))))
However, Script-fu should probably be amended to return lists for PDB
STRINGARRAY values (if possible).
Quoting Christian Anthon <christian.anthon at gmail.com>:
> The following used to work in gimp 2.2:
>
> running under gimp -b -i -
>
> (car (cadr (file-glob "*.png" 1)))
>
> returned
>
> "222.png"
>
> but now I get
>
>> (car (cadr (file-glob "*.png" 1)))
>
> Error: car: argument 1 must be: pair
>
> So obviously something changed, I just don't know enough about
> script-fu to know what.
More information about the Gimp-user
mailing list