- Notifications
You must be signed in to change notification settings - Fork2
AppleScript command completions, build system and useful snippets. Supports editing binary scripts
License
idleberg/sublime-applescript
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
ThisSublime Text package adds completions, snippets and build tools forAppleScript (including binary files) and JavaScript for Automation (JXA).
Screenshot of AppleScript in Sublime Text withHopscotch color scheme
- Make sure you already havePackage Control installed
- Choose “Install Package” from the Command Palette (Super+Shift+p)
- Select “AppleScript Extensions”” and pressEnter
- Change to your Sublime Text
Packagesdirectory - Clone repository
git clone https://github.com/idleberg/sublime-applescript.git 'AppleScript Extensions'
- Download the lateststable release
- Unzip the archive to your Sublime Text
Packagesdirectory
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.
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 eventFinder:Open locationOS:Notification MessageSafari:Open locationTerminal:Run shell script
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.
This work is licensed under theThe MIT License.
About
AppleScript command completions, build system and useful snippets. Supports editing binary scripts
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.
