Run your own scripts in CotEditor to modify documents or launch external tools. Your scripts appear in the Script menu, represented by the .
In CotEditor, you can write scripts in two main ways:
Choose the scripting type that suits your needs. For details about how to write your scripts, see Automate tasks using AppleScript or Automate tasks using UNIX scripts.
Go to the CotEditor app
on your Mac.
Choose Script menu > Open Scripts Folder.
The Finder opens the folder for CotEditor scripts at:
~/Library/Application Scripts/com.coteditor.CotEditor/
Add your script files to this folder, or remove any you no longer need.
CotEditor automatically applies changes in this folder to the Script menu.
You can also change the order of scripts or assign keyboard shortcuts by modifying the names of your script files. See Customize the Script menu for the details.
The CotEditor project provides sample scripts. You can download them from:
coteditor/SampleScripts -GitHub
Some users also distribute their own scripts for CotEditor. A selection of these scripts is listed at:
CotEditor Scripts -CotEditor Wiki