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.
On Sat, Jul 24, 2010 at 9:39 AM,
> 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 <firstname.lastname@example.org>
> 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