본문 바로가기
Scriptable/공통

Scriptable이란?

by Gofo 2021. 2. 6.

Scriptable 이란?

IOS에서 동작하는 어플리케이션으로,

아이폰/아이패드에서 자바스크립트(Java script) 언어 기반의 코드가 동작하도록 하는 일종의 컴파일러이다.

 

Scriptable은 iOS의 파일, 캘린더, 미리알림 등의 어플에서 정보를 읽거나 쓰는 등 연동할 수 있으며,

홈화면의 위젯을 추가하여 작성된 js 코드를 위젯에서 보일 수 있다.

 

쉽게 생각하면, 만든 코드를 위젯으로 보여주는 어플리케이션이다.

 

설치는 앱스토어(클릭)에서 할 수 있다.

Scriptable is an automation tool that enables you to write scripts that integrates with native features of iOS such as files, calendars, reminders, documents and much more.
An extensive support for widgets enables you to write your own widgets using JavaScript and run the scripts on your Home Screen. Your widgets can show any data and be customised to look just the way you want.
- App store, Scriptable introduction -

 

Scriptable을 이용한 위젯 예시 (좌 : 코로나 위젯 / 우 : 달력 위젯)

 


사용 방법

Scriptable을 사용하는 방법은 아주 간단하다.

  1. Scriptable에 Java script 기반의 코드를 추가하고 실행한다.
  2. 홈화면에 Scriptable 위젯을 만든다.
  3. 홈화면 > 위젯 편집 에 들어가서 추가한 코드를 선택한다.
  4. 끝.

 

때문에 원하는 기능을 하는 코드를 찾는 것이 관건이라고 할 수 있다.

코드는 필자의 블로그에서도 공유하고 있으며, 현재 클리앙, 디스코드 등을 통해서도 많이 공개되었다. 이를 이용해서 원하는 위젯을 만들 수 있을 것이다.

 


참고

Scriptable은 다음과 같은 기능을 지원한다고 하니 참고해보자.

- Ask Siri whether a web service is down.
- Create a widget that shows data from your weather station.
- Postpone the next event in your calendar half an hour.
- Check what is currently on TV.
- Manage a list of movies you would like to watch.
- Upload files to an image optimizer and store a URL to the optimized image.
- Receive a notification with the weather report every morning.
- Create todos with prefilled data in your favorite todo app using URL schemes.
Features include:
- Write and run JavaScript.
- Auto complete of variable names, functions, keywords and properties as you type.
- Access lots of native iOS features from your JavaScript code, including managing files, calendars, reminders, contacts, photos, location, pasteboard, web views and more.
- Create your own widgets. Your scripts run on the Home Screen without needing to open the app.
- Siri Shortcuts enabling you to present images, tables, websites, HTML and more in Siri as well as making Siri read out loud a text.
- Support for input and output parameters in Siri Shortcuts.
- Easily schedule rich notifications to run your scripts periodically.
- Work with files and directories from third party apps using File Bookmarks.
- Synchronise scripts to all of your devices using iCloud Drive.
- Scripts are stored as plain JavaScript files and can be browsed using the Files app.
- Assign one of over 800 glyphs and a color to a script to easily identify it in your directory of scripts.
- Run scripts directly on your Home screen using widgets.
- Run a script by 3D touching the app icon.
- Run a script from a share sheet and process the inputs.
- Schedule notifications and run a script directly from a notification.
- URL schemes enabling you to run scripts from other apps.
- Support for x-callback-url enabling advanced integration with other apps that support x-callback-url.
- Export and share scripts.
- Example scripts helping you get started creating your own scripts.
- Extensive documentation for all the native APIs you can use in your scripts. Available offline in the app and online on docs.scriptable.app.
- View the documentation in a separate window on iPad.
- Support for dark mode.
- Customise the editor to your liking.

출처 : https://apps.apple.com/kr/app/scriptable/id1405459188

 

* 본 게시글의 모든 iphone mock-up은 MediaKit을 이용하여 제작되었습니다.

'Scriptable > 공통' 카테고리의 다른 글

단축어로 다른 어플 실행하기(URL Scheme 이용)  (0) 2021.02.14
iMazing으로 URL Scheme 알아내기  (4) 2021.02.09
URL Scheme 목록  (2) 2021.02.06
기상청 App key 발급받기  (6) 2021.02.01
URL Scheme  (0) 2021.01.27

댓글