[trunk] filename and filepath undefined in plugin framework
Steps to reproduce bug
1. Install testfilename plugin attached
2. Plugins > Filenames
Expected behavior: curScore.filename and curScore.filepath should display the current score's filename as filepath as described in the plugin handbook: http://musescore.org/en/plugin-development/score-object
Actual behavior: curScore.filename and curScore.filepath are undefined
MuseScore version: r. 5478 nightly
(Operating System: Windows 7)
Attachment | Size |
---|---|
testfilename.zip | 1.03 KB |
Comments
Sorry, I meant to say, "filename and filepath as described in the plugin handbook"
Just for the record:
It was me adding the information that is is available as of r5026 (errnously I wrote 5025, corrected now), as an addition of Soerboe adding these variables to the document (filename had been removed from the doc by lasconic earlier), and lasconing adding a patch by Soerboe to the trunk after I investigated on the SVN: http://mscore.svn.sourceforge.net/viewvc/mscore?view=revision&revision=…
Remains to be seen where in the history that change got lost
Edit: I found it:
http://mscore.svn.sourceforge.net/viewvc/mscore/trunk/mscore/mscore/scs…
So in r5033 filename became fileName and filepath became path.
Edit 2: see this [[http://musescore.org/en/node/11334|discussion]
I'll update the handbook and close this issue
These don't work though either, i.e. too return 'undefined'?
Reading the code (http://mscore.svn.sourceforge.net/viewvc/mscore/trunk/mscore/mscore/scs…) reveals another yet undocumented method, metatag(), and shows the documented pageFormat to be commented out.
Oh, I see now: these are ion trunk only, nit in 1.2. And this is even mentioned in the title...
Documentation fixed, issue closed...
Automatically closed -- issue fixed for 2 weeks with no activity.