I have been slowly developing an add-on Scripter toolkit which provides some helper functions, classes and objects which can make some tasks easier to deal with in Scripter. There is still lots more to do and the project can change at any time, but I offer public access to it now in order to get more suggestions and ideas from anyone brave enough to try it.
You can read the wiki about it here: https://gitlab.com/dewdman42/lpxscripte ... wikis/home
Basically this will be a supplemental API that provides higher level functionality then what is provided by Apple, and also works around some of the annoyances we all know about.
The main file of interest in this repo is the file called mods.js. This file can be copy and pasted into Logic's MIDIClass.js file, and then instantly your scripts will have access to the enhanced API.
I will be adding more features as I go and if you make good suggestions I will take them into consideration in order to make this helpful for all.
In the future I intend to also create an external program which can be used to automatically install or remove this enhancement from LogicPro and also to provide a way to copy and paste the toolkit directly into a script in compact form so that if you make a script using this higher API, the script can be shared with other users who don't have the toolkit installed on their system.
Please let me know if you have any questions or suggestions.