Plugin to add date to filename automatically on save as
Hello,
I would like to make a plugin for musescore 3 that will automatically add the date to the end of the filename on save as. I have no experience with Qt. Could anybody give me any tips or refer me to any resources to get started?
Comments
Or Format/StyleHeader/Footer->add date
add a "Version $M" to my footers
https://musescore.org/en/node/271261#comment-829680
In reply to Or Format/StyleHeader/Footer… by Shoichi
I tried that, $M, in my header.
And it doesn't work.
At least I cannot see it in the header or in the filename (SaveAs).
Nor can I find Format/StyleHeader/Footer ->add date anywhere in MuseScore V3...
What am I doing wrong?
In reply to I tried that, $M, in my… by skrontle@hotmail.com
Select the format menu then style the header/footer and put $M in the header to put the last saved date into the score. I would use $D to show the date the file was actually created though. The operating system normally allows you to see the created and modified dates.
In reply to Select the format menu then… by mike320
I'm using "Version $M" in all my scores' footesr. When a score initially got created is pretty irrelevant for versioning... and alway available in the score properties.
In reply to Or Format/StyleHeader/Footer… by Shoichi
I don't want the date shown on the score, I want it to automatically add the date to the filename when I choose File->Save as.
In reply to I don't want the date shown… by pianocomposer321
Not possible with MuseScore.
In reply to Not possible with MuseScore. by Jojo-Schmitz
But you could via Plugin → Save As using https://github.com/jeetee/MuseScore_SaveAsWithTimestamp
Never say never ;-)
In reply to But you could via Plugin →… by jeetee
Thank you! This looks like it will be exactly what I am looking for.
How exactly do I use the plugin? Do I just download the code and save it to the plugins folder?
Also, I'm still interested in learning to develop my own plugins. As I said, I have no experience with Qt, however, I have experience with a few other programming languages, Including Python and a little bit of JS and C++, So I don't think learning a new one would be a big deal.
Thanks again for your help!
In reply to Thank you! This looks like… by pianocomposer321
You'll want to download the qml file and place it into your plugin folder, then activate it within musescore using the plugin manager (eventually, you could assign a shortcut to it).
See https://musescore.org/en/handbook/3/plugins
See https://dmitrio95.github.io/plugins/html/index.html for some basic information on writing plugins.
In reply to You'll want to download the… by jeetee
Ok, Thanks.
In reply to But you could via Plugin →… by jeetee
I didn't say 'never', but indeed forgot to say 'currently' ;-)
In reply to But you could via Plugin →… by jeetee
I wonder why you don't need/use MuseScore's FileIO module in that plugin?
In reply to I wonder why you don't need… by Jojo-Schmitz
FiloIO is required when reading/writing files other than a score.
Scores are so much a part of MuseScore that readScore/writeScore are conveniently attached straight into the PluginAPI itself.
In reply to FiloIO is required when… by jeetee
Hmm, now I wonder why the Batch Export plugin does use FileIO ...
Ah, I see, to obtain the last modification timestamp