scriptables
scriptables copied to clipboard
Scriptable Development Environment for VSCode
Scriptable Development Environment
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
Getting started
How to start to develop scriptable apps with VSCode:
- Download Scirptable for MacOS
- 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.
Initialize your local env
Tou can use BASH script or VSCode extension for it
$ ./scriptable.sh init
Import your script for git integration
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
Relative projects
-
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
ERRORS
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" />
...
Thanks
- schl3ck for Scriptable types definition: ios-scriptable-types