|
From: | Urs Liska |
Subject: | Re: Frescobaldi custom script |
Date: | Sat, 25 Oct 2014 11:06:58 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
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, JoramHi 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 address@hidden https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |