Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

idleberg/sublime-applescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LicenseVersionPackage Control

ThisSublime Text package adds completions, snippets and build tools forAppleScript (including binary files) and JavaScript for Automation (JXA).

Screenshot

Screenshot of AppleScript in Sublime Text withHopscotch color scheme

Installation

Package Control

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

Using Git

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

Manual installation

  1. Download the lateststable release
  2. Unzip the archive to your Sublime TextPackages directory

Usage

Completions

Many commands can simply be triggered by completing a standard AppleScript command. Commands such astry,if,repeat, orset will create a code block. PressTab to jump between input-fields.

Snippets

There are several snippets included to generate license-texts enclosed in a comment. To trigger these, try thelicense command with license names as parameter. You could, for example, uselicense:mit to add anMIT License text, orlicense:gpl2 for theGNU General Public License in version 2.0. PressTab 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 usingMail:Send message, telling Mail to send a message. You can useTab to jump between recipient, subject and message fields. Other examples would beSystem Preferences:Security to open the according panel in System Preferences, oriTunes: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 orShift++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 theThe MIT License.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp