//============================================================================= // // " R E W I N D _ E N D _ S E L " plugin for MuseScore ver 2.0 // // Just reqinds a cursor to the end of selection. // // By Maurizio M. Gavioli, 2012. //----------------------------------------------------------------------------- // MuseScore // Music Composition & Notation // // Copyright (C) 2012 Werner Schweer // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 // as published by the Free Software Foundation and appearing in // the file LICENCE.GPL //============================================================================= import QtQuick 1.0 import MuseScore 1.0 MuseScore { menuPath: "Plugins.Rewind to selection end" onRun: { var curs; // check some score is open if(typeof curScore === 'undefined') { alert("Plugin: no score open!"); Qt.quit(); } // create a curosr and rewind it to the selection end curs = curScore.newCursor(); curs.rewind(2); Qt.quit(); } } // plugin end