Run multiple AppleScript commands

osascript

  • Run AppleScript or JavaScript for Automation (JXA) from the command-line.
    More information: <https://ss64.com/osx/osascript.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

osascript -e "{{say 'Hello'}}" -e "{{say 'world'}}"

click the source code to copy