I’m scratching my head trying to figure out a way to create an automated action in response to incoming messages (for example, copy the text and paste it in a note).
As you know, in messages trigger, there is no option for complete automation.
However, assuming that I can live with it, my problem is when several messages are coming in a row, and I want to react to every one of them and make the automation work continuously.
Is there a way (maybe with Pushcut) to create a loop or some background process requiring only a single tap for a period of time and continually react to incoming messages until the automation will end?
One approach that I thought of could be copying messages in a loop and when finding a change in the last message it will imply that there is a new incoming message, (instead of relying on the messages trigger), once a change was detected it will notify a shortcut which then copies the text and paste it in a note. Could that be done in a loop? - (1. detect a change in a text by comparing the last text to new text (or a change in the last sender name to the new sender name) 2. notify another shortcut to copy and paste the text in a note 3. not missing any message 4. process all in the background)?
If so, could it be done in the background while a 3rd party app is in the foreground (e.g., Spotify)?