To add scripts to or remove scripts from the Script menu, follow the instruction below:
>Choose Script > Open Scripts Folder in CotEditor and Finder opens the folder for CotEditor script at:
~/Library/Application Scripts/com.coteditor.CotEditor/
Put your script files in this folder, or remove from there.
The changes you made inside the scripts folder will be automatically reflected.
CotEditor recognizes scripts only when their file extensions are: .applescript .scpt .scptd .sh .pl .php .rb .py .js
You can change the order of appearance or assign keyboard shortcuts by modifying the names of your script files.
See File naming rules for CotEditor scripts for more details.
You can create subfolders in the scripts folder. They will appear as submenus.