Awesome
build-osa
Atom Build provider for Apple's Open Scripting Architecture, runs or compiles AppleScript and JavaScript for Automation (JXA)
Installation
apm
Install build-osa
from Atom's Package Manager or the command-line equivalent:
$ apm install build-osa
Using Git
Change to your Atom packages directory:
Change to your Atom packages directory:
Windows
# Powershell
$ cd $Env:USERPROFILE\.atom\packages
:: Command Prompt
$ cd %USERPROFILE%\.atom\packages
Linux & macOS
$ cd ~/.atom/packages/
Clone repository as build-osa
:
$ git clone https://github.com/idleberg/atom-build-osa build-osa
Inside the cloned directory, install Node dependencies:
$ yarn || npm install
You should now be setup to build the package:
$ yarn build || npm run build
Usage
Build
Before you can build, select an active target with your preferred build option.
Available targets:
AppleScript: Compile Application
AppleScript: Compile Script
AppleScript: Compile Script bundle
AppleScript: Run Script
JXA: Compile Application
JXA: Compile Script
JXA: Compile Script bundle
JXA: Run Script
Shortcuts
Here's a reminder of the default shortcuts you can use with this package:
Keyboard Shortcut | Description |
---|---|
<kbd>Alt</kbd>+<kbd>Cmd</kbd>+<kbd>T</kbd> / <kbd>F7</kbd> | Choose target |
<kbd>Alt</kbd>+<kbd>Cmd</kbd>+<kbd>V</kbd> / <kbd>F8</kbd> | Toggle build panel |
<kbd>Alt</kbd>+<kbd>Cmd</kbd>+<kbd>B</kbd> / <kbd>F9</kbd> | Build script |
License
This work is licensed under the The MIT License.