View the supplied Tutorial scripts in the Script Editor to see how they are constructed. You can modify and re-use the code to change functions or to create new processors. See Use the Logic Pro Scripter MIDI plug-in Script Editor.
Note: The supplied Tutorial scripts may vary slightly from the code examples shown in this documentation, due to post-publication changes in the JavaScriptCore framework or the Scripter plug-in. Please always use and refer to comments shown in the most recent Tutorial scripts and JavaScriptCore framework.