ScPL is a programming language for Shortcuts that allows you to write shortcuts in text instead of dragging and dropping blocks. ScPL lets you work with large shortcuts easily by letting you copy and paste actions, view long shortcuts without scrolling, and type actions instead of dragging them in. Get Started
ShowResult "Hello ScPL" ChooseFromMenu prompt="ScPL" items=["Getting Started", "View Documentation"] Case "Getting Started" URL "https://docs.scpl.dev/gettingstarted" Case "View Documentation" URL "https://docs.scpl.dev/" End Menu OpenURLs
See what your shortcut looks like in ScPL by uploading it in the ScPL Editor.
What is ScPL
ScPL lets you write shortcuts in text. Instead of dragging actions
around on a small screen in a slow app, you can write text like
ShowResult "My shortcut" to build long and complex
The ScPL Web Editor (editor.scpl.dev) is the easiest way to write ScPL.
Visual Studio Code
ScPL has a plugin for Visual Studio Code with autocompletion, error messages, and hover documentation. VSCode Extension.
To compile your ScPL code you can use the scpl-cli npm package.
npm install --global scpl-cli. Then you can run
scpl <filename.scpl> -o <outputfile.shortcut>
iOS app (Coming Soon)
ScPL is written in TypeScript. To install the dev version, clone the git repo
yarn install. Before making a pull request, make sure to
yarn format to automatically format your code with prettier
yarn test to make sure it passes all the tests.