Select group message mark as read automate
-
I was wondering if somebody could help me. I’m trying to write a script that will automatically select a specific group texts and market as read automatically at a certain time every day. Is there anyway to do that? I’ve looked a lot in the documentation and I can’t seem to find what I’m looking for if anybody can help me get started that would be really helpful thank you so much for any help you can give me!
-
Pyto app looks good. Just can’t figure out where to start with the code. I guess it would be a widget.
-
@smiddleton if you want that your script can run in background, even your device off, I think that your script has to run outside of an open app, either Pythonista or Pyto.
But if you have Pyto, the Apple Shortcuts app provides an action called "Execute Pyto code" where you can put a short Python code which runs outside Pyto.This is an example that I have tested with a daily automation. It runs even device off and does not start Pyto app.
-
@smiddleton Personally, I never use Pyto, I prefer Pythonista but in this last case, Pyto works in background.
-
Thanks for the help. I am trying that example. Would happen to know what API I would use for selecting the group message and then marking it as read? I still can’t find it.
-
I can get a widget to run, but. I still can’t find the right module or API to “select messages” from the text messages app. I’m starting simple and looking for that function first. Manually it is accessed by selecting the 3 dots in the top right and then clicking select messages.
-
@smiddleton Sorry, I can't help you, not sure it is possible. Hoping another guy here could help
-
Emma0122,
Thanks for posting. You say you are happy with the result. Does that mean you were able to get it working? Do you mind sharing the code you used? Thanks.
-
That’s great to know. Do you mind sharing more details about how you got it working?
-
@smiddleton I think that @emma0122 is happy with the background process, not with the group messages process, but I may be wrong