How to close Scriptable programmatically?

I’ve created a widget using Scriptable. It’s working as expected. But sometimes the refresh interval is just too long, and I’d love to be able to touch the widget to updated it on demand. I can do this by configuring it to run the script. Alas, that would leave me with Scriptable in the foreground. Is there any way to close/minimize it programmatically, so I’d be back on the start screen again?

Remember to search the forum for the answer first :wink:


Well… that’s embarrassing… trust me when I say that I spent a good amount of time searching (both the web in general and this forum specifically…). But oh well… thank you very much for that link! Looks a bit clumsy, but does the job as expected.

1 Like