1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00
Files
til/mac/run-applescript-commands-inline-in-the-terminal.md

598 B

Run AppleScript Commands Inline In The Terminal

AppleScript is often invoked as a series of commands from a file. It is also possible to execute individual commands inline in the terminal. Use the -e flag to specify the command.

For example, if you'd like to mute your Mac:

$ osascript -e 'set volume 0'

Run that and your Mac's volume will now be at zero.

source