Skip to content

gebeto/scriptables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Download Scriptable for MacOS (via Internet Archive Wayback Machine)
  2. Enable iCloud sync for Scriptable
  3. Download VSCode
  4. Clone this repository
git clone https://github.com/gebeto/scriptables
  1. Run command to initialize your sources folder link
./scriptable.sh init
  1. 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

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

About

Scriptable Development Environment for VSCode

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •