Post Reply 

Newbie cant find While termination error

Dec 15, 2013, 04:58
Post: #1
Newbie cant find While termination error
[undefined=undefined]Hello - this small snippet of code has me driven to distraction.

It produces a complete enumeration of the entire set of files the pattern specifies BUT AFTER the last file has been displayed it crashes.

Please help me figure out the syntax and or the semantic error(s) I am making.

Console Output - also included below.

Thank You
Gary

CODE

(define (gtest-001 pattern)
(let* ((filelist (cadr (file-glob pattern 1)))
(filename "z")
)
(
(gimp-message-set-handler 1)
(while (not (null? filelist))
(set! filename (car filelist))
(gimp-message filename)
(set! filelist (cdr filelist)))
)
)
)

CONSOLE OUTPUT ( Note : I DO know that the gimp-message function adds the text "warning" as a matter of course. I dont take that seriously since I am the one generating these messages. The actual error is at the very bottom of the console output )

No batch interpreter specified, using the default 'plug-in-script-fu-eval'.
script-fu.exe-Warning: bus363.jpg

script-fu.exe-Warning: Road Trip KSRTC Bus361.jpg

script-fu.exe-Warning: Road Trip KSRTC Bus362.jpg

script-fu.exe-Warning: Road Trip KSRTC Bus363.jpg

script-fu.exe-Warning: Road Trip KSRTC Bus364.jpg

script-fu.exe-Warning: Road Trip KSRTC Bus365.jpg

script-fu.exe-Warning: Road Trip KSRTC Bus366.jpg

script-fu.exe-Warning: Road Trip KSRTC Bus367.jpg

script-fu.exe-Warning: Road Trip KSRTC Bus368.jpg

batch command experienced an execution error:
Error: ( : 1) illegal function

EXIT: gimp_exit
EXIT: gimp_real_exit
Find all posts by this user
Quote this message in a reply
Dec 18, 2013, 04:24
Post: #2
RE: Newbie cant find While termination error
Thank you kindly for your time Kevin.

I am consigning myself to a more detailed study of scheme / tiny-scheme.
Any links to tiny-scheme language reference in particular please anyone ? I am using the MIT-Scheme reference which for the broad strokes works well.
Find all posts by this user
Quote this message in a reply
Dec 19, 2013, 02:18
Post: #3
RE: Newbie cant find While termination error
This is great ! Thanks again for the resolution and the resources.

- G
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Error: .dll's missing but .... lpvmc 1 289 Dec 21, 2017 09:15
Last Post: paynekj
  GIMP - “windows 10” - “command line” - error alvaro562003 4 1,167 Sep 18, 2017 08:13
Last Post: paynekj
  Find Waldo (little pic) in Where is Waldo (large pic) 2083389396 2 405 Jul 28, 2017 12:57
Last Post: 2083389396
  quick newbie question oneshot 1 377 May 29, 2017 18:36
Last Post: blighty
  Where i can find in Gimp the.. sbhgtv 3 523 Oct 4, 2014 17:56
Last Post: rich2005

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS