Language syntax, snippets and build system for AppleScript and JavaScript for Automation
Screenshot of AppleScript in Visual Studio Code with Hopscotch theme
Launch Quick Open, paste the following command, and press Enter
ext install idleberg.applescript
With shell commands installed, you can use the following command to install the extension:
$ code --install-extension idleberg.applescript
Download the packaged extension from the the release page and install it from the command-line:
$ code --install-extension path/to/applescript-*.vsixAlternatively, you can download the packaged extension from the Open VSX Registry or install it using the ovsx command-line tool:
$ ovsx get idleberg.applescriptOn macOS, you can make use of the following build commands through the command-palette:
- AppleScript: Run Script – Shift ⇧+Option ⌥+R
- AppleScript: Compile Script – Shift ⇧+Option ⌥+B
- AppleScript: Compile Script bundle
- AppleScript: Compile Application
- JXA: Run Script
- JXA: Compile Script
- JXA: Compile Script bundle
- JXA: Compile Application
You can tweak the defaults for this package, osacompile and osascript in the package settings.
The default character encoding for AppleScript text files is Mac Roman. If you wish to change this, you can do so in the settings.
Example:
{
"[applescript]": {
"files.encoding": "utf16le"
}
}This work is licensed under The MIT License

