osascript - execute AppleScript in macOS — by SS64.com
Reference for osascript with its -e, -i, -l and -s options and a large set of one-liners: activating or quitting apps, emptying the Trash, setting volume, toggling dark mode, and shutting down or restarting without confirmation.
Read the full article on ss64.comSource: osascript - execute AppleScript in macOS by SS64.com. Licence: Link only (©).
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me