make score's path and directory available to plugins
Type
Plugins
Frequency
Few
Severity
S5 - Suggestion
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project
In MuseScore 1 a score's path and filename have been available to the plugin language. This is not true anymore in MuseScore v2.3.2 (haven't tested older versions of MuseScore 2).
Please make them available again as Score object properties.
Fix version
3.6.0
Comments
See #17942: pluginPath and notice the existence of filePath
In reply to See #17942: pluginPath by Jojo-Schmitz
I don't think so. The duplicate you pointed to wanted the plugin path while this is asking for the score's path.
I'm thinking of something like the fileName and path properties of the Score object as shown here: https://musescore.org/de/plugin-development/score-object - but those are not (yet) exposed to QML.
That is the 1.x documentation
In reply to That is the 1.x documentation by Jojo-Schmitz
Yeah, I know. But it's not available in MuseScore v2.3.2 anymore - that's why I opened this feature request / "bug report".
Came up again in https://musescore.org/de/node/303217
I support this request very much. Especially because the functionality was already there. I think that this is also a quick win for the developers because the effort cannot be so great imho. Instead of the property filePath, I would also recommend a file object (read only).
Also looking for a way to retrieve the path to curScore. Did anything concerning that topic change / improve in 3.5?
Not that's Id know of. Guess that's why this issue is still active ;-)
Came up again in https://musescore.org/en/node/318373, as per that the score's path is available, once a score got saved, and reopened?
Edit: for that see #320658: Plugin Bug curScore.path; after FIRST save
It did change though, score has a path property since 3.6: https://github.com/musescore/MuseScore/pull/7083
the documentation hasn't been updated though...
And https://musescore.org/en/node/314074
Automatically closed -- issue fixed for 2 weeks with no activity.