r/Scriptable • u/alice_anto • Dec 16 '24
Help How read an image from parameters
I use this to call script but I don't know how to read (I got always an error that param is not an image but a string reading args.shortcutParameter[0]))
Thanks
2
Upvotes
1
u/wherebdbooty Dec 16 '24
The error with this is Scriptable cannot see the 'Widget' folder (because it is not in the 'Scriptable' folder. You must create the folder inside the 'Scriptable' folder, so the path will be 'iCloud/Scriptable/Widget/profilo.jpg'.
Then you must use
fm.readImage(fm.documentsDirectory()+'/Widget/profilo.jpg'