Jalankan AppleScript atau JavaScript for Automation (JXA) dari command-line. Informasi lebih lanjut: https://keith.github.io/xcode-man-pages/osascript.1.html.
osascript -e "{{say 'Halo dunia'}}"
osascript -e "{{say 'Halo'}}" -e "{{say 'dunia'}}"
*.scpt
), terbundel (*.scptd
), atau secara plaintext (*.applescript
):osascript {{jalan/menuju/apple.scpt}}
open -b
):osascript -e 'id of app "{{Aplikasi}}"'
osascript -l JavaScript -e "{{console.log('Halo dunia');}}"
osascript -l JavaScript {{jalan/menuju/javascript.js}}