Close app after running script from widget

Is it possible to close the Scriptable app after running a script from interacting with a widget?

Currently, when my script has finished running the app is left open. I’d like it to close leaving the functionality of tapping the widget being a “reload” action.

Not entirely with Scriptable. I’m working around it by calling the SpringBoard shortcut with this function

function SpringBoard() {`shortcuts://run-shortcut?name=SpringBoard`)
1 Like

Yeah - this is the sort of route I ended up taking. I came up with a shortcut to run the widget script + then run springboard which gave me “tap widget to refresh” functionality.