All apps/osascript

osascript

osascript

Runs AppleScript and other OSA scripts on macOS.

Runs as osascript|macOS

Command form

ai-draft · 2 tasks · 3 fields

Run an inline statement or a script file.

Opens the form; the finished command lands at your prompt, unrun
otty gui osascript
Run a scriptExample values, fixed in this page — nothing here reaches a terminal
Basic
Inline statement*
string
Language
string
TasksEach one presets the form for one job
Run a statement
statementlanguage
Run a script file
scriptlanguage
ParametersOnly these flags are editable in the form
Script file
path · positional 0
Inline statement
string · repeatable
-e
Language
string
-lAppleScriptJavaScript
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed osascript against its version. A form that does not match your version is not offered.