[trunk] filename and filepath undefined in plugin framework

• Mar 16, 2012 - 04:36
Type
Wording/Translation
Severity
S4 - Minor
Status
closed
Project

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

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

Status (old) active fixed

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...