ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Apple​Script Extensions

by idleberg ST2/ST3

AppleScript command completions, build system and useful snippets. Supports editing binary scripts

Details

Installs

  • Total 3K
  • Win 589
  • OS X 2K
  • Linux 120
Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9
Windows 0 0 0 1 0 1 1 0 1 1 1 1 0 0 1 1 0 1 0 0 0 0 0 0 2 1 0 2 0 1 1 0 1 2 0 1 2 0 1 0 1 2 0 2 0
OS X 1 2 1 0 1 2 1 3 2 0 3 2 5 2 0 0 2 1 1 1 0 1 1 2 5 1 6 0 1 1 0 2 1 1 4 2 0 0 1 0 1 0 0 1 4
Linux 0 0 0 0 0 0 1 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

Package Control

This Sublime Text package adds completions, snippets and build tools for AppleScript. As of version 2.0, this package also lets you edit binary script files.

Screenshot

Screenshot of AppleScript in Sublime Text with Hopscotch color scheme

Installation

Package Control

  1. Make sure you already have Package Control installed
  2. Choose “*Install Package*” from the Command Palette (Super+Shift+p)
  3. Select “*AppleScript Extensions*”” and press Enter

GitHub

  1. Change to your Sublime Text Packages directory
  2. Clone repository git clone https://github.com/idleberg/sublime-applescript.git 'AppleScript Extensions'

Manual installation

  1. Download the latest stable release
  2. 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 comment command with license names as parameter. You could, for example, use comment:mit to add an MIT License text, or comment: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.

License

This work is licensed under the The MIT License.

Donate

You are welcome support this project using Flattr or Bitcoin 17CXJuPsmhuTzFV2k4RKYwpEHVjskJktRd