Re: file-glob problem in 2.4.0rc3

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

'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  

(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@xxxxxxxxx>:

> 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.



[Gimp Announce]     [Gimp Images]     [GIMP Development]     [Video For Linux]     [Photo]     [Yosemite News]    [Yosemite Photos]    [gtk]     [KDE]     [Scanner]     [Gimp's Home]     [Gimp Docs]     [Gimp on Windows]     [Steve's Art]     [Webcams]     [Share Your Images]     [Free Online Dating]     [Photo Site]     [Script Fu]     [GIMP Software]     [GIMP Books]


Add to Google Follow Gimp on Twitter