A way to edit instruments.xml
Is there any way for a plug-in to read and edit the instruments.xml file? I'm not a javascript programmer but I see that the XMLDOM isn't allowed when writing plugins for MuseScore.
Is there any way for a plug-in to read and edit the instruments.xml file? I'm not a javascript programmer but I see that the XMLDOM isn't allowed when writing plugins for MuseScore.
Do you still have an unanswered question? Please log in first to post your question.
Comments
Your main problem will not be reading XML but writing the file in "root" or "admin" owned directory. MuseScore on Windows and Mac is installed in admin space and normally you can't write in this directory except if MuseScore got special privileges.
This behavior is not ideal to edit instruments.xml, add templates, install plugins & language files etc...
If you still need to read and write XML, you can use the QtXml module binding.
See http://doc.trolltech.com/4.6/qtxml.html and adapt to QtScript.
In reply to Your main problem will not be by [DELETED] 5
Heading to the library.....
In reply to This is all way over my head. by MDMilford
The operating system protects any files in the Programs Folder. A normal application does not have permission to change any of these files unless a user explicitly gives it permission. Changing this behavior is not usually recommend.
In reply to Explanation by David Bolton
I though this would be a pretty easy thing to do that would make it easier for people to tweek Musescore's output. Maybe not. There's a problem for every solution I guess.
In reply to Your main problem will not be by [DELETED] 5
.. Couldn't you just install Musescore to a different location? The Musescore directory isn't set in stone...
Surely on the Mac the instruments.xml should be in the library? E.g. /Library/Preferences/MuseScore. That ought to be a default file, because the user still couldn't edit it, but the user should have a local editable copy in ~/Library/Preferences/MuseScore so that each user could have their own tweaked version.
--
colin