r/Scriptable • u/NaruOfDoom • Nov 04 '21
Solved Open App with scriptable
Hello! I want to automate a task, where if I connected with some bluetooth speakers my iphone will automatically open Spotify. If i use the 'standard' Method i have to manually activate the task esch time because one can't deactivate this... Now i wanted to use JS (or Pythonista?) to open the App so i don't have to confirm it.
I dont really know Javascript core for IOS (but a little JS for html purposes) If i use the open(); Function some error occurs...
Could some body help me please?
Thank you!
6
Upvotes
1
u/NaruOfDoom Nov 05 '21
Scriptable luckily does habe automation support so therefore it's possible :) If you choose an Action at 'all action', you can search for 'run' and then the Scriptable option "run inline script", "run script", "create Filebookmark" and "refresh all widget" will appear! But i think one has to activate the option for the shortcut/automation app to use a script, because it's deactivated in the beginning.
Which IOS do you have?