10-10-2024, 09:44 AM
(10-09-2024, 04:28 PM)teapot Wrote: Well you could reverse the list. Or getting the last element of the list without reversing it:
Code:
(let* ((l '(3 45 4 "abc" "def"))
(n (length l)))
(list-ref l (- n 1)))
Thanks, ok I understood how it works in the Script-fu console, not sure how to adapt it to the gimp-image-get-filename, nor understand what's the ' in front of the parenthesis
(10-09-2024, 04:28 PM)teapot Wrote: There's some ideas here but they aren't very robust:
https://stackoverflow.com/questions/1386...-script-fu
not a lot about script-fu on internet, or things are from 20 years ago ➤ we all go by the same different results in google

I was not able to make one of them works, but it's my extremely limited knowledge (if I can call "knowledge") about it.
In all case thank you very much teapot

Patrice