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
•
u/AutoModerator Nov 03 '21
Thanks for the submission!
It looks like you may have not shared the code you want help with.
Please be sure to include that. If you did, then you can safely ignore this comment.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/[deleted] Nov 03 '21 edited Nov 03 '21
If you run the script in the app, it will make you select a photo. After that, once you set your widget to run this script on your home screen, it shouldn’t ask; it will use the one you last selected in the app. I’ve actually used this bit of code it another script and it works fine if you do as above. No need to change anything
1
u/[deleted] Nov 03 '21
Mind sending me the code? So I can replicate and try stuff myself then get back to you?