> -----Original Message-----
> From: Walter Francis [mailto:[EMAIL PROTECTED] 
> Sent: 31 August 2003 07:17
> To: Guillermo S. Romero / Familia Romero
> Subject: Re: [Gimp-user] Re: RGB to BGR script works, but how 
> to run auto levels?
> I have it down to the following (although I'd still love an 
> autolevels ;-), 
> is there any way to pass a list to gimp-image-delete, because 
> I've tried 
> several things and I always get invalid argument.  I tried:
> (g-i-d new-image-rgb)
> (g-i-d (new-image-rgb))
> (g-i-d '(new-image-rgb))

Try this: (mapcar gimp-image-delete (butlast new-image-rgb))
Note that it need the butlast to get rid of the -1 at the end of the list
otherwise gimp-image-delete chokes on it.
mapcar returns the result of applying the one (call mapcar1) or two (call
mapcar2) operand function to each element or the one or two following list.

Gimp-user mailing list

Reply via email to