Choose a script language in Script Editor on Mac
Choose your scripting language
In the Script Editor app on your Mac, click the Script Language pop-up menu in the toolbar, then choose a language.
Choose your default scripting language
In the Script Editor app on your Mac, choose Script Editor > Settings, then click General.
Click the Default Language pop-up menu, then choose a scripting language.