-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accurate Readme and Build Script Bundle
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# JXASublimeText | ||
Build a package to work with JXA in Sublime Text 3. This works just on Mac OSX Yosemite (10.10). As a first step I included a build and a run command. | ||
This package makes it easier to use your favorite editor Sublime Text to program with JavaScript for Automation. This works just on Mac OSX Yosemite (10.10). For now I created the build system. | ||
|
||
## Build System | ||
Run and Build commands for Scripts, Script Bundles and Applets. Choose 'JXA' from `Tools > Build Systems`. | ||
|
||
The standard `Build` command creates an executable and in Apple Script Editor editable script file (.scpt). | ||
|
||
The `Run` command executes the script directly in ST. | ||
In the command palette are more variants to build: | ||
- `Build: App`: Build an executable application (.app) | ||
- `Build: App (execute only)`: Build an executable application (.app), which can not be read, nor edited. | ||
- `Build: Script Bundle`: Build an executable Script Bundle (.scptd) | ||
|
||
The Build System takes a vanilla JavaScript file and runs the shell command `osascript -l Javascript [file_name]` or `osacompile -l JavaScript -o [file_name].scpt [file_name]`. Look the `osacompile` manual for more options. |