This project includes
- Scriptable types generated from documentation page
- RUN SCRIPT hotkey: ⌘ + SHIFT + B, it will run current script in Scriptable
Script file name should not contain spaces
- Folder with all your Scriptable apps
How to start to develop scriptable apps with VSCode:
- Download Scriptable for MacOS (via Internet Archive Wayback Machine)
- Enable iCloud sync for Scriptable
- Download VSCode
- Clone this repository
git clone https://github.com/gebeto/scriptables
- Run command to initialize your sources folder link
./scriptable.sh init
- Done! Open VSCode in the repo(
code .
) and start to build your apps fast and easy!
Folder
sources
is your scriptable folder link, you can edit files there and it will be updated in scriptable app.
Tou can use BASH script or VSCode extension for it
$ ./scriptable.sh init
IMPORTANT: Script name should not contain any spaces, because RUN hotkey will now working
$ ./scriptable.sh import ScriptName
# or
$ ./scriptable.sh import Script-Name
# or
$ ./scriptable.sh import Script_Name
- https://github.com/gebeto/scriptable-vscode
plugin will replace
scriptable.sh
when it will done(work in progress). - https://github.com/schl3ck/ios-scriptable-types
Scriptable Typescript typings
If scriptable typing are not loaded for you, need to add ///<reference path="../index.d.ts" />
on top of the your script (like shown below).
Where path is a relative path to the index.d.ts
file.
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: green; icon-glyph: magic;
+ ///<reference path="../index.d.ts" />
...
- schl3ck for Scriptable types definition: ios-scriptable-types