osascript
Execute AppleScript or JavaScript for Automation on macOS to control applications, run shell commands, and automate system events with built-in safety restrictions.
Instructions
Execute AppleScript or JavaScript for Automation (JXA) on macOS. Full access to system automation including shell commands, app control, and System Events. Only file deletion commands are blocked for safety.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | The script to execute | |
| language | No | Script language: AppleScript (default) or JavaScript for Automation (JXA) | AppleScript |