{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/osascript.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "script",
        "label": "Script file",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "statement",
        "label": "Inline statement",
        "type": "string",
        "option": [
          "-e"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "language",
        "label": "Language",
        "type": "string",
        "option": [
          "-l"
        ],
        "suggestions": [
          {
            "value": "AppleScript",
            "label": "AppleScript"
          },
          {
            "value": "JavaScript",
            "label": "JavaScript"
          }
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "inline",
        "label": "Run a statement",
        "fields": [
          "statement",
          "language"
        ],
        "required": [
          "statement"
        ]
      },
      {
        "id": "file",
        "label": "Run a script file",
        "fields": [
          "script",
          "language"
        ],
        "required": [
          "script"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "statement",
          "script",
          "language"
        ]
      }
    ]
  }
}
