andyngo / conversable-for-scriptable

Conversable is a simple contacts widget for Scriptable.
193 stars 41 forks source link

Changing Profile images. #1

Closed CarePackageUK closed 4 years ago

CarePackageUK commented 4 years ago

Hi there, I've noticed a problem when switching the profile pictures to other pictures. I've been using .PNG files like usual, even tried with the same names (1,2,3,4) but I'm having no luck. when i change them to the new images they disappear off the widget.

Any help would be appreciated, also great work, i love it.

CarePackageUK commented 4 years ago

As you can see from the pictures

EBC20FF8-BA60-4CB3-92EB-250E569693A9 3FFAB4CA-B3B3-4172-9B1E-57251AFBBA6F

andyngo commented 4 years ago

@CarePackageUK Hi, could you check if you've added .PNG to the end of the filename in the Conversable folder? If you did, you should remove the .PNG extension.

iCloud Drive seems to hide file extensions by default and I'm not sure if there's a way to change this. This could end up adding an extra .PNG (eg: 1.PNG.PNG) to your file, which may have caused the issue.

CarePackageUK commented 4 years ago

Thank you for getting back to me, yeh there's no .PNG at the end of the name, only as a file type.

CarePackageUK commented 4 years ago

image

andyngo commented 4 years ago

@CarePackageUK That's odd. Your files seem to be stuck at 'Waiting…' which may indicate that it's not uploading to iCloud. I'm not sure if this is directly connected to your issue.

Could you try adding adding console.log(isDownloaded) like so, and run the script? Dismiss the Widget preview and click on the console (the one with [8] in the picture below). image

There should be some message printed there.

CarePackageUK commented 4 years ago

That might be the problem (iCloud download part) as I only 4 true. You know how to make the files download to iCloud faster?

andyngo commented 4 years ago

@CarePackageUK I'm not so sure, the files shouldn't take too long to download assuming that they're not that big in size. Toggling your iCloud Drive on/off in Settings might work but proceed at your own risk. Or simply toggle Airplane mode to see if it forces the file to start uploading.

One more thing: could you add this code console.log(fm.fileExists(path)) and show me the output?

CarePackageUK commented 4 years ago

Got all true image

CarePackageUK commented 4 years ago

Just did airplane mode and the files all download and now works. Thank you

andyngo commented 4 years ago

@CarePackageUK Glad you got it to work! Enjoy the widget. :)

andyngo commented 4 years ago

Closing this as the issue seems to have been resolved. Feel free to reopen if the issue arises again.