Thanks for your reply. I cant use multiple script cause it must stay simple to install for others. I cant believe that i cant use a “hyperlink” to start a function.
Thanks alot! I got it to work. Not the best solution, cause the widget opens Scriptable App, then opens the widget in the App and then the code gets submitted as a attr parameter. But at the end: it seems to work Again: thanks for your help!
Yes, I hope Apple would make this behaviour a lot more subtle ie: a simple banner saying “Scriptable is running your script” would be sufficient compared to opening the host app.
Regarding the widget opening in Scriptable, perhaps something like this would work for you?
if (config.runsInApp) {
w.presentSmall()
}
if (config.runsInWidget) {
// run your function without invoking the w.presentSmall()
}