Basic Selection Functionality Via Scripting – A Lua Library for ConsoleTools

Concluding the release of five scripting libraries for the ConsoleTools Lua framework, I today publish the Selection Tool Library (the four other releases are: Tuplets, Casting-off, Window Menu Commands and Cueing). Compared with its siblings, the library is rather anticlimactic, merely making the various commands for selecting from Dorico’s Edit menu available. Still, being able to dynamically assign them to ConsoleTools slots might prove useful when setting up scripting-aided solutions for certain tasks.

You can download the library below. The zip file contains the actual Lua script, and a PDF with the complete documentation:

ConsoleTools Tool Library - Selecting 1.0.zip (415.5 KB)

Note: Do not try to run the lua file directly in Dorico (via the Script menu). You will need the ConsoleTools framework in order to use the library. However, the free limited version will suffice to try it out. You can find more information about ConsoleTools in this thread.

Feel free to ask any questions about the library here. (Any questions specifically about ConsoleTools should be posted in the thread about the framework itself, though.)

As with previous releases, it should be noted that this library is somewhat of a “public beta”. If you find that something does not work as should be expected from the documentation, please feel free to get in touch with me. Further down the road, I plan to re-include the library (with any bug fixes) in a larger one, which will offer a variety of other script-enhanced Dorico tasks.

4 Likes