Execute Commands

Version 01.81.20
Added 25 Feb 2021 (last updated 07 Aug 2023)

For use with Sibelius 21.x, Sibelius 22.x and Sibelius 23.x

Original version 01.14.00 added 25 February 2021. From lists of available commands- add commands to a Command List, then choose Execute to run them after the dialog comes down. You can also Export or Import a list of commands. The exported files will be stored in a subfolder of your default Scores folder called Execute_Commands, and will have the extension .dat. These files can be shared with other users. You can also generate a new plugin that contains the commands in the Command List using New Plugin. These actions can be accomplished without directly writing any ManuScript plugin code. Updated 26 February 2021.Version 01.15.00. Added routines to be called by other plugins: API_AddLineObjectSelection, API_AddSymbolObjectAtSelection, API_AddTextObjectAtSelection, to enable plugins to simulate what the Add Text, Lines and Symbols commands do without bringing up the dialog. Updated 27 February 2021.Version 01.16.00. Added warning when executing command list if there is no selection in the active score. Updated 28 February 2021.Version 01.16.01. Some internal code changes to make calling from other plugins easier. Updated 3 March 2021.Version 01.16.03. More internal code changes to make calling from other plugins easier. Updated 8 March 2021. Version 01.17.00. Updated 9 March 2021.Version 01.17.02. Mostly internal fixes to recent changes. Updated 15 March 2021.Version 01.18.00. Added button to execute the currently selected command only- in addition to being able to execute all the commands in the Command List. Made some improvements to the New Plugin dialog as well. Changed the way that commands that run plugins work in generated plugins and Command Macro Files. They now use the plugin file name as a Command Id so they will work in any language. If you use the plugin Run Command Macros- you should update it as well- so it will work with the output of this plugin. Updated 15 March 2021.Version 01.18.02. Bug fix for New Plugin. Updated 27 April 2021.Version 01.27.00. Major update. Cmdutils files support. New ability to Add Comments and Edit commands. Ability to execute current command only. Restructuring of generated plugins with New Plugin. Updated 01 May 2021. Version 01.28.00. Fixed bug that caused Mac users to crash when using New Plugin Several bug fixes and features- including the ability to clear the Command List with a button press. You will need to update cmdutils as well to use its features. Updating Run Command Macro is suggested but not required. After installing or updating this plugin you must close and restart Sibelius before you can use it. Updated 02 May 2021. Fixed bug when importing data files that include plugins. Updated 5 May 2021. Numerous tweaks. Please update cmdutils.plg as well. Updated 7 May 2021. Even more tweaks. Please update cmdutils.plg as well. Updated 11 June 2021. Version 01.51.00. Mostly support for new cmdutils features. Update cmdutils.plg and RunCommandMacros.plg as well. Close and restart Sibelius after installing and before using this plugin. Updated 26 June 2021. Version 01.52.00. Added button to run the Run Command plugin directly. Updated 29 June 2021. Version 01.53.00. Using the Run Command Macro button now takes down the Execute Command dialog before calling Run Command Macro. I was hoping to be able to leave the dialog up- but Sibelius Commands will not run under a dialog- so this was the only real option. Updated 24 July 2021. Version 01.55.00. Improved handling of edited command strings with trailing spaces or line feeds. Updated 25 July 2021. Version 01.56.00. Removed trailing space change due to possible bugs. Updated 01 August 2021. Added new dialog button Add new command. Updated 05 August 2021. Version 01.60.00. Significant structural changes to the ways tables of commands are built and used both here and in Run Command Macros. The tables are now built once per Sibelius session and reused for the rest of the session rather than rebuilding each time the plugin is run. Updated 12 August 2021. Version 01.71.00. Improved performance for generated plugins. Updated 25 August 2021. Version 01.72.00. Renaming for generated plugins to avoid duplicate names. Updated 22 September 2021. Version 01.73.00. Some error handling enhancements. Updated 14 November 2021. Version 01.74.00. Now will generate code to create plugins that call plugins whose file names contain spaces. Updated 15 December 2021. Version 01.75.00. Made it possible to save commands to a macro dat file from another plugin. Updated 19 March 2022. Version 01.77.00. Support for Text, Line, and Clef style commands, except for those with names that duplicate other commands. Updated 9 September 2022. Version 01.78.00. Cleaned up API_GeneratePlugin code. Updated 10 September 2022. Version 01.79.00. Added API call to get list of all command names. ___Updated 3 October 2022. Version 01.80.00. Internal restructuring and some new API calls to let other plugins access this code. You should always install or update all the plugins Execute Commands, cmdutils, and Run Command Macro whenever you install or update any of them. Updated 12 October 2022. Version 01.80.10. More internal restructuring and anew API call to let other plugins access this code. Updated 22 October 2022. Version 01.81.01. When generating a plugin, the text in the message box at completion is also written to the plugin trace window. Updated 28 October 2022. Version 01.81.02. Changed message when generating a new plugin to show the full path of the file being created. Updated 21 January 2023. Version 01.81.10. Reworked Find button to return a list of all matching commands at once. Updated 6 August 2023. Version 01.81.20.Simplified file name handling in New Plugin dialog.

Plug-in written by Bob Zawalich.