/streamdeck-osascript

Primary LanguageJavaScriptMIT LicenseMIT

streamdeck-osascript

Description

Run OSA Script is a plugin that allows you to run arbitrary OSA language scripts (AppleScript and JavaScript for automation). It's based on the plugin streamdeck-applescript but this one has been rewritten from the scratch to update it to the Stream Deck SDK v2.

Features

  • code written in Objective-C
  • macOS only
  • executes AppleScript scripts
  • executes JXA (JavaScript for automation) scripts

Installation

In the Release folder, you can find the file com.gabrielperales.osascript.streamDeckPlugin. If you double-click this file on your machine, Stream Deck will install the plugin.

Source code

The Sources folder contains the source code of the plugin.

Examples

Open VS Code

var code = Application('Visual Studio Code');
code.activate();

Resources to learn AppleScript and JXA