-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (59 loc) · 2.52 KB
/
index.html
File metadata and controls
74 lines (59 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
layout: default
title: ScPL
description: An easier way to write Shortcuts
---
<p>
Note that ScPL has not been updated to support the new iOS 13/14+ actions.
If you are looking for a text shortcuts language, consider
<a href="https://www.notion.so/Jellycuts-Public-4aeaec663ffe4032b959028b94f97190">Jellycuts</a>.
</p>
<p>
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.
<a href="https://docs.scpl.dev/gettingstarted">Get Started</a>
</p>
<pre><code class="scpleditor language-scpleditor">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</code></pre>
<p>See what your shortcut looks like in ScPL by uploading it in the <a href="https://editor.scpl.dev/">ScPL Editor</a>.</p>
<h1 id="whatisscpl">What is ScPL</h1>
<p>
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
<code>ShowResult "My shortcut"</code> to build long and complex
shortcuts.
</p>
<h1 id="editors">Editors</h1>
<h2 id="webeditor">Web Editor</h2>
<p>
The ScPL Web Editor (<a href="https://editor.scpl.dev">editor.scpl.dev</a>)
is the easiest way to write ScPL.
</p>
<h2 id="visualstudiocode">Visual Studio Code</h2>
<p>
ScPL has a plugin for Visual Studio Code with autocompletion, error messages,
and hover documentation.
<a href="https://marketplace.visualstudio.com/items?itemname=pfg.vscode-shortcutslang-extension">VSCode Extension</a>.
</p>
<p>
To compile your ScPL code you can use the scpl-cli npm package.
<code>npm install --global scpl-cli</code>. Then you can run
<code>scpl <filename.scpl> -o <outputfile.shortcut></code>
</p>
<h1 id="contributing">Contributing</h1>
<p><a href="https://github.com/pfgithub/scpl">Github page</a></p>
<p>
ScPL is written in TypeScript. To install the dev version, clone the git repo
and run <code>yarn install</code>. Before making a pull request, make sure to
run <code>yarn format</code> to automatically format your code with prettier
and <code>yarn test</code> to make sure it passes all the tests.
</p>