To add a script to the shortcut menu
Place your script in the /Library/Scripts/Script Editor Scripts folder.
The script should now appear in the Scripts menu and in the shortcut menu in Script Editor.
The Scripts folder contains a collection of scripts that come with Script Editor and that can be accessed using the Scripts menu. All the scripts in the default collection are fully editable and can be altered to address your needs.
Scripts placed in the Scripts folder also appear in Script Editor’s shortcut menu (also known as the contextual menu.)
Place your script in the /Library/Scripts/Script Editor Scripts folder.
The script should now appear in the Scripts menu and in the shortcut menu in Script Editor.