id = "osascript" name = "osascript" description = "Runs AppleScript and other OSA scripts on macOS." executables = ["osascript"] platforms = ["macos"] [commands] format = 1 label = "Run a script" description = "Run an inline statement or a script file." quality = "ai-draft" base = "fig:osascript" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/osascript.ts" license = "MIT" [[commands.field]] id = "script" label = "Script file" type = "path" position = 0 path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "statement" label = "Inline statement" type = "string" option = ["-e"] multiple = true sources = ["fig"] [[commands.field]] id = "language" label = "Language" type = "string" option = ["-l"] suggestions = [{ value = "AppleScript", label = "AppleScript" }, { value = "JavaScript", label = "JavaScript" }] sources = ["fig"] [[commands.task]] id = "inline" label = "Run a statement" fields = ["statement", "language"] required = ["statement"] [[commands.task]] id = "file" label = "Run a script file" fields = ["script", "language"] required = ["script"] [[commands.group]] id = "basic" label = "Basic" fields = ["statement", "script", "language"]