Am 29.03.2013 16:56, schrieb Richard Shann: >> Unfortunately I have to insert the full path of the filename I want to >> include. Is there a possibility to get the path where the current >> document is located and use it? > Sorry, this is a bit unfinished. The intended line of development is > that it should look first in the user's local files > (~/.denemo-1.0.0/actions/lilypond I think that would be) and only then > in the system place ($PREFIX/share/denemo/actions/lilypond). But that's > not yet done. Is there a command to get the .denemo filename the script is working at, i.e. the score you're currently editing? I would like to include the file from the same folder where the score is.
>> Also, it would be nice to create a >> button where the user can edit the contents easily (i.e. not using edit >> score directives). > This sort of stuff is quite common. The simplest is you test if there is > already a score directive with the tag and if so get its current value > and then get the path from the user giving the old value as suggested > value. > And you can also cause the directive you have created to display itself > as a button, when clicking the button will re-run the command, where you > do the above test. > If you cannot easily locate an example of this behavior let me know and > I will dig one out. I took some time browsing through the commands and some corresponding scripts, particularly looking at the titles, but I couldn't locate the script that creates the button (is it built-in?). Andreas _______________________________________________ Denemo-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/denemo-devel
