Automating An iPhone With Just JavaScript
Learn how to extend IOS functionality with pure JS & Scriptable
If you would like to receive tutorials on the most exciting technologies built around JavaScript, sign up below.
Scriptable
Scriptable is an extremely powerful IOS app that lets you run any JavaScript on your iPhone. The app also allows you to access Native APIs (think File System, Contacts, Native UI, Widgets & more) making it a brilliant tool for those developer with JS skills looking to quickly automate their iPhones.
Building a fully featured iPhone app and publishing to the App Store is expensive and hard work. With Scriptable you can be extending your IOS device with custom functionality in a matter of minutes.
What We’re Going To Build
Every morning I get up and meditate. My morning meditation ritual looked a bit like this:
Google on iPhone “morning meditation”.
Look for a meditation video that I had not done before too many times.
Play the mediation.
Meditate (often not successfully)
Update my note in my iPhone as to the current length of my meditation streak. This is just how many days in a row I meditated in order to introduce some motivation/gamification.
This is ripe for automation with JavaScript and Scriptable.
Code Walkthrough
Links
https://scriptable.app/
https://docs.scriptable.app/
https://www.reddit.com/r/Scriptable/
https://scriptable.app/mac-beta/
https://twitter.com/simonbs
Follow Me
If you enjoyed this post, follow me on twitter. I’m usually tweeting about JavaScript and interesting side projects.
Subscribe
Subscribe and never miss the latest tutorial on the most exciting additions to the JS ecosystem.
Feedback
It would be great if you could leave feedback. Just hit one of the emojis below. If you have some more detailed feedback, feel free to email me at jamesrobertson@outlook.com
Share
If you enjoyed this content, please feel free to share with friends.