Am 25.10.2014 10:41, schrieb Peter Bjuhr:

On 2014-10-24 15:01, Noeck wrote:
Hi,

I have a question concerning Frescobaldi: Is it possible to run a custom
script (bash/python) from Frescobaldi.

This would be my use case:
I have a script that runs lilypond and then timidity and other tools to
get ogg rehearsal files which are then packed in zip files.
If I could run it from within Frescobaldi that would be cool.

Wouldn't it be possible to even run this from within LilyPond itself? It should be possible to run external code from a Scheme function, isn't it? Then it should also be possible to make that run upon compilation. No idea how to approach that, though.

If I had a button or menu entry in Frescobaldi that runs it, and
displays the output in the protocol area and the progress with the
progress bar, that would be even better.

Does anyone know if something like this is possible?

Cheers,
Joram

Hi Joram,

you can run a python script as a Snippet (Tools -> Snippets). If it's possible to implement in detail is hard for me to say (without seeing your code), but I think that is what you could try if you want to do it within Frescobaldi.

Yes, I also think you should be able to access the outer world of shell processes through Python that way. This wouldn't give you a menu entry (although you *could* even do that for your own copy if you run Frescobaldi from its Git repository) but you can assign a keyboard shortcut to a snippet.

Best
Urs

Best
Peter

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to