File naming rules for CotEditor scripts

This page explains the rules for naming script files.

Order of appearance
By adding “number + closing parenthesis ())” at the head of the name, you can line up the files in numerical order.
The part “number + )” won't be shown in the menu.
example 1.
File name01)Open File.scpt
Appearance in the menuOpen File
Keyboard shortcuts
By adding “dot (.) + modifier-key + shortcut-key” in front of the extension, you can assign a keyboard shortcut to the file.
example 2.
File nameInsert String.@e.scpt
Appearance in the menuInsert String (Command-E)
example 3.
File name03)Insert Date.@~Y.scpt
Appearance in the menuInsert Date (Option-Shift-Command-Y)
Modifier-key notations
NotationEquivalent key
^Control
$Shift
~Option
@Command
Separators
A folder named “-” appears as a separator line in the menu. By adding “number + closing parenthesis ())” at the head of the folder name, you can put a separator between the menu items.

See also