It is currently Wed Jun 10, 2026 6:04 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Scheme - How to get the filename?
PostPosted: Sat Jul 22, 2017 7:21 pm  (#1) 
Offline
GimpChat Member

Joined: Jul 22, 2017
Posts: 5
GIMP Version: 2.8.14
Operating System: Mac OS
OS Version: 10.11.6
GIMP Experience: Basic Level



gimp-image-get-filename is not returning a string:

(define (script-fu-magic-scans image drawable)
   (let*
      (
         (fileName (gimp-image-get-filename image))
      )

      ...

      (gimp-message (string-append "filename: " fileName))
   )
)


Image


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Scheme - How to get the filename?
PostPosted: Sat Jul 22, 2017 7:23 pm  (#2) 
Offline
GimpChat Member

Joined: Jul 22, 2017
Posts: 5
Ah, of course it's returning a list.

(fileName (car (gimp-image-get-filename image)))

fixes it.


Top
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group