Command line input
Is there a way to run Musescore from command line with a file name that defaults to play on open.
Is there a way to run Musescore from command line with a file name that defaults to play on open.
Do you still have an unanswered question? Please log in first to post your question.
Comments
Eh, possibly, but you can also set a start-up score from within the program:
Edit >General >Start with score *****.mscz
In reply to Eh, possibly, but you can… by underquark
Yes, but he asked for "that defaults to play on open"
Command line options can be found here: https://musescore.org/en/handbook/3/command-line-options
but I don't see an option that triggers automatic playback.
Since a plugin can be launched by the command line, writing a plugin might be an option.
In reply to Yes, but he asked for "that… by HildeK
I noticed the list of command line commands in the manual but did not see the one to open and play. Not sure about writing plugins and messing with the code if that is possible. I have an Excel spread sheet that I can use to navigate my "library" of scores on the computer and since you can open by clicking on file hyperlink all I can mange is to open the file but was hoping for a way to trigger the RUN. So much for automation.
I have been successful in coding an Excel Spread sheet with VBA to open Musescore with a desired music file and then position the cursor over the Run arrow, Musescore being the active window. Howver the code that is suposed to simulate a mouse click does not apper to trigger playback. If I manually click the mouse at that point it plays back. Any of the code gurus who may be able to shed ligtht on why the programatic method (using VBA and the Windows API library calls) are not picked up by Musescore? Since my code is successful in moving the mouse over the displayed score, I would have expected the mouse click would be picked up.