r/Scriptable • u/dpopov44 • Nov 03 '21
Solved Help with setting an image as widget background
Not much of a coder and this is referring to the Daily Logs V2 widget (created by u/randomo_redditor). I’m trying to set a background image for the widget without being prompted to select it from my camera roll every time I run it. Is this possible and if so what’s the code I need? Here is the area of the code that I think controls this: https://imgur.com/a/3BwVqsY .
Thanks in advance
P.S (Lines 182-184 is me trying something with no luck, given a ‘Cannot parse response to an image’ error)
3
Upvotes
View all comments
Show parent comment
1
u/[deleted] Nov 03 '21 edited Nov 03 '21
I really thought I figured it out :( Nah it didn’t, if you don’t click on the widget it’s fine, but, to run it I guess you’d need to and then it goes through the whole thing again. So the crux of the issue is getting it to make exist == true. Edit: And I don’t see how we’d do that because by running it, by default it will run in app not widget so will skip over those parts