I am wondering if you’ve ever experienced issues with scripts being cleared out / contents deleted.
I have seen it happening randomly but it causes scriptable to crash when trying to launch it, which I’m guessing is because it’s trying to parse the .js files that are blank inside and it doesn’t see the scriptable header
I am on iOS 16.5 beta but I do wonder if this has anything to do with the iCloud syncing issues that I’ve been seeing for some time. Files seem to offload more than they should (even files used frequently are being offloaded)
When the space on my iPhone was quite full, I too experienced aggressive off-loading of files by iCloud. It was so much that I had to write a small script (which was small enough so that it wasn’t off-loaded) to download the other scripts. At this time I only had about 1 GB left of free space.
So maybe try freeing some space? I think you should not have any problems, when you have at least 5-6 GB free.
I have seen that happen as well. The files aren’t being offloaded however, the script’s contents are being wiped out. For example, If I have a script named “Test.js”, I try loading Scriptable and noticed some issue that it wouldn’t open. I go look in the Scriptable folder in iCloud Drive and Test.js has recently been modified but now shows as a blank document.
I can’t find any pattern as to when this happens either.
FWIW my phone storage has a little more than 7 GB free
I am unable to even airdrop the Scripts from my back up phone to this phone. When I open the app, there are no script showing. But they are on my iCloud and will not download. I have uninstalled the application and reinstalled it and that did not fix the issue.