Hello Jacques,
A slightly more idiomatic Scheme-like way to get the current file name being
processed might be something like this:
#(define (file-name)
(let* ((args (program-arguments))
(args-len (length args)))
(list-ref args (- args-len 1))))
This follows on from David’s comment, and uses list operations rather than
string functions, which seems more natural to me. This could be written more
compactly, but it gets the idea over I hope.
Andrew
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user