Is that really a "must" ?  It turns out I was missing variable declarations,
but I have never provided initial values when declaring variables in a let
block, and that doesn't seem to cause issues.

I'll experiment.

On Sat, Jul 24, 2010 at 9:39 AM,
<gimp-user-requ...@lists.xcf.berkeley.edu>wrote:

Message: 2
> Date: Sat, 24 Jul 2010 11:45:24 -0400
> From: Kevin Cozens <ke...@ve3syb.ca>
> Subject: Re: [Gimp-user] Script-Fu for batch image conversion
> To: gimp-user <gimp-user@lists.xcf.berkeley.edu>
> Message-ID: <4c4b0a94.7010...@ve3syb.ca>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Dillon wrote:
> > (set! num-layers (car (gimp-image-get-layers newimage)))
> > (set! layerIDs (cadr (gimp-image-get-layers newimage)))
>
> What error messages do you get when the above lines are included?
>
> > (define (batch-save-as-xcf pattern)
> >   (let* (
> >       (filelist (cadr (file-glob pattern 1)))
> >       (fileparts)
> >   (xcfname)
> >       (filename)
> >       (image)
> >   (newimage)
> >       (drawable)
> >       )
>
> The declarations for variables "fileparts" through to "drawable" are wrong.
> You must provide an initial value when defining a variable in a let block.
>
> The simple solution is to add a 0 or -1 to the declarations for numeric
> variables and "" string variables. Any value will work but it helps to
> stick to the a value similar to the type of value the variable could
> typically hold.
>
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to