BUG curScore.path;
var p = curScore.path; will not return the path if you just create and saved the score . you need to
Create
Save
Close
Open again
then it work
var p = curScore.path; will not return the path if you just create and saved the score . you need to
Create
Save
Close
Open again
then it work
Do you still have an unanswered question? Please log in first to post your question.
Comments
It it isn't saved, there is no path, not a bug there.
But if you need to close and reopen to see path, there is a bug, I guess, a plain Save shouzld be sufficient ti get that property filled/updated
In reply to It it isn't saved, there is… by Jojo-Schmitz
Yeah for files already saved it will not find the path, and when you close/open it will return the right path!
See #278102: make score's path and directory available to plugins
In reply to See #278102: make score's… by Jojo-Schmitz
Hey jojo I notice you slashed the link, was it fixed in the release version?
In reply to Hey jojo I notice you… by daniellumertz
I didn't mark it that way, the forum software did this, as the issue is marked as fixed since March.
It should be in 3.6, the PR got merged back in December already
If this doesn't work after a save without a close and reopen this seems to be a different bug.
In reply to It should be in 3.6 by Jojo-Schmitz
hm but the behaviour of needing to reopen, after the first save, a score still there.
consider this Plugin :
Mac:
Win :
In reply to hm but the behaviour of… by daniellumertz
As said: this is a different bug. Before that path was not available to Plugins at all
In reply to As said: this is a different… by Jojo-Schmitz
oh, okay. Maybe I should open a bug thread?
Sorry I am not from the Musescore community so don't really understand how things work here.
In reply to oh, okay. Maybe I should… by daniellumertz
Yes, please open a new issue
In reply to Yes, please open a new issue by Jojo-Schmitz
thanks created https://musescore.org/en/node/320658
In reply to thanks created https:/… by daniellumertz
Or #320658: Plugin Bug curScore.path; after FIRST save ;-) (notated as "[#320658]")