Generally, most scripts are written in Script Editor documents. Scripts can also be written in Xcode, but this is typically for scripts that require advanced user interfaces.
Macos Bash Script
Launch Script Editor in
/Applications/Utilities/.If the script isn’t configured for the correct language, choose the language in the navigation bar.
Tip
If you always use the same language, set it as the default language in the General pane of Script Editor preferences. See General Preferences.
Write your script code in the editing area. Newly written code is uncompiled and formatted as new text.
Click the Compile button () to compile the script and check for syntax errors.
If a syntax error occurs, an alert is displayed.
If the script compiles, code formatting is applied at this time.
Script Center 1.0 For Macos 10.13
Script Editor includes a number of built-in templates for creating common types of AppleScripts, including droplets, Mail rule scripts, and Messages handler scripts. Note Script Editor does not include JavaScript templates at this time. The sample scripts are provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. .NET Core 1.0 downloads for Linux, macOS, and Windows.NET Core is a cross-platform version of.NET, for building apps that run on Linux, macOS, and Windows.
Tip
Script Center 1.0 For Macos High Sierra

You can change the formatting attributes, such as font and color, of uncompiled and compiled text in the Formatting pane of Script Editor preferences. See Formatting Preferences.