Creation of Shortcut Automation
As one of the most powerful applications from Apple, it's quite disappointing due to official limitations.
I would like to create an automation that checks whether AirPods are connected when the app is opened or closed. If AirPods are connected, it does nothing; otherwise, it sets the media volume to 50%. When the app is closed and AirPods are not connected, it sets the media volume to 0%.
However, I can only achieve this by:
1. Creating an automation that "when AirPods are connected, copies the text 'AirPods Connected' to the clipboard";
2. Creating an automation that "when the app is opened, if the clipboard does not contain 'AirPods Connected', sets the media volume to 50%";
3. Creating an automation that "when the app is closed, if the clipboard does not contain 'AirPods Connected', sets the media volume to 0%".
This operation is very cumbersome, and if the clipboard is overwritten, these three automations will fail to run.
I hope there can be some relaxation of system permissions, such as being able to read connected Bluetooth devices, whether the app is open, and so on.
thanks.
iPhone 13 mini, iOS 17