Open a file in a script #21
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Up until today I had a custom widget that would show what was in a file located at /storage/emulated/0/Documents/myfile.md however now with custom widgets removed I'm trying to do this with Lua scripting. I have gotten files:read("myfile.md","r") to work, but it needs the file to be deep inside android/data/ru.. and I need to be able to read files that are not all the way in there. I've tried doing io.open , but it seems like aio doesn't have access to external files or something. Is it now impossible to have a widget show what is in one of my files? Thanks so much!
Yes. Modern android versions restricts access to storage. As workaround you can connect script with tasker profile that reads your file. See "Tasker" section in the README.
Ah! Tasker, I should have known. Thanks so much for the info, the fast reply, working on such an awesome launcher, everything! I really appreciate it.
Thank you