AppleScript Extensions
AppleScript command completions, build system and useful snippets. Supports editing binary scripts
Details
Installs
- Total 6K
- Win 1K
- Mac 4K
- Linux 277
Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 3 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
AppleScript Extensions for Sublime Text
This Sublime Text package adds completions, snippets and build tools for AppleScript (including binary files) and JavaScript for Automation (JXA).
Screenshot of AppleScript in Sublime Text with Hopscotch color scheme
Installation
Package Control
- Make sure you already have Package Control installed
- Choose “*Install Package*” from the Command Palette (Super+Shift+p)
- Select “*AppleScript Extensions*”” and press Enter
Using Git
- Change to your Sublime Text
Packages
directory - Clone repository
git clone https://github.com/idleberg/sublime-applescript.git 'AppleScript Extensions'
Manual installation
- Download the latest stable release
- Unzip the archive to your Sublime Text
Packages
directory
Usage
Completions
Many commands can simply be triggered by completing a standard AppleScript command. Commands such as try
, if
, repeat
, or set
will create a code block. Press Tab to jump between input-fields.
Snippets
There are several snippets included to generate license-texts enclosed in a comment. To trigger these, try the license
command with license names as parameter. You could, for example, use license:mit
to add an MIT License text, or license:gpl2
for the GNU General Public License in version 2.0. Press Tab to jump between input-fields.
You can directly address several macOS applications to have them perform some action. For instance you can scaffold a script using Mail:Send message
, telling Mail to send a message. You can use Tab to jump between recipient, subject and message fields. Other examples would be System Preferences:Security
to open the according panel in System Preferences, or iTunes:Open file
to play a piece of music in iTunes.
More examples:
Calendar:Add event
Finder:Open location
OS:Notification Message
Safari:Open location
Terminal:Run shell script
Build System
Build systems are available on macOS to compile or run scripts. Use the default shortcut ⌘+B to build or Shift+⌘+B to select a build system variant.
Note: When editing binary AppleScripts decompiled by this package, you can simply save the file for it to be re-compiled. Building it will lead to undesired results.
License
This work is licensed under the The MIT License.