Run Plugin On Folder of Scores

Version 02.51.00
Added 20 Nov 2015 (last updated 24 Jan 2020)

For use with Sibelius 6, Sibelius 7.1, Sibelius 7.5, Sibelius 8.x, Sibelius 18.x, Sibelius 19.x and Sibelius 20.x

This plugin allows one to run a plugin, chosen from an alphabetized list of plugins, against the current score, all open scores, or a folder of scores.

By default, it will not save any scores processed; if you wish to modify and save scores, especially when processing a folder of scores, you should choose "Save scores after plugin is run". If a folder is processed, all previously unopened scores will be closed and optionally saved. Previously open files will be left open, and may be saved.

Most plugins, especially those that bring up a dialog every time, will not be well suited for being run in this manner. Some, such as Find and Replace Text, have an option to hide a dialog after the first time it is run, and these can make good use of this plugin. Scores opened in a folder will always be fully selected with a system passage selection when passed to the called plugin; previously opened scores can be made to be fully selected.

The plugin can be used by plugin developers to write a simple plugin, taking advantage of the framework this plugin provides to have it process a folder of scores.

Updated 17 December 2015. Added additional plugin Run Plugin on Score And Parts which lets you choose a plugin to be run on the full score and all the parts of the current score. This plugin is suitable for being run from Run Plugin On Folder Of Scores.

Updated 19 December 2015 to allow better interaction for the plugins. You can now turn off the progress bar in Run Plugin On Score and Parts so the progress bar in Run Plugin on Folder of Scores will be retained, among other tweaks.

Updated 19 March 2016. Updated Run Plugin On Score And Parts to process parts in same order as the Sib parts list, which is different from the order they are given to a plugin

Updated 16 December 2017. Updated Run Plugin On Score And Parts to include a Find Plugin edit and buttons. Also changed order of processing so the full score, if processed, is processed after the parts so that changes to the score do not affect the parts.

Updated March 13, 2018. Fixed problem in the Open Scores option where running a plugin that generated new scores would cause those scores to also be processed. Thanks to Dick Jackson for pointing this out.

Updated 29 November 2018. Version 02.20.00. Updated Run Plugin on Folder of Scores to have a Find Plugin button, making it easier to pick the desired plugin. No changes made to Run Plugin On Score and Parts.

Updated 22 January 2020. Version 02.50.00 for Run Plugin on Folder of Scores, and 02.10.00 for Run Plugin on Score and Parts. Added routine CloseQuietly, which is a substitute for the disfunctional Close(False) command. This will close scores that the plugin opens without saving changes or asking you to save changes, which makes running a batch process much nicer.

For plugin developers: Run Plugin on Folder of Scores is in the plugin domain. Code can be reused or modified without need of attribution or permission. There is no support for any modified code, so its use is entirely at your own risk.

Updated 24 January 2020. Version 02.51.00 for Run Plugin on Folder of Scores, and 02.10.00 for Run Plugin on Score and Parts. Modified the CloseQuietly routines to attempt to prevent backup scores being written for scores processed in a folder. If the Backup Scores folder is in the default location with the English name, the plugin will remove unwanted backup scores, otherwise they can either be ignored or manually removed as needed.

Plug-in written by Bob Zawalich.