Action Button toggle silent and also Pause audio
I've just finished my shortcut I use with the action button on my Iphone 17.
Running the shortcut checks if there is any audio playing, if not then it toggles silent mode; if audio is playing then it pauses the audio, unless you are using AirPods, in which case it pauses the audio and then sets the noise cancelling mode to Transparency.
You will need both shortcuts, the one titles Action Button and also the on titles AirPods .
I have a more finessed version that changes the focus when I have silent mode toggled on, but this version runs perfectly
What's New
First release
What it does
6 actions-
Is Audio Playingcom.alexhay.ToolboxProForShortcuts
-
If
-
Play/Pause
-
Run ShortcutAirPods
-
If
-
Set Silent Modecom.apple.ShortcutsActions
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define color darkblue
#define glyph waveform
rawAction("com.alexhay.ToolboxProForShortcuts.IsAudioPlayingIntent", {})
if IsAudioPlayingResult == 1 {
play()
run("AirPods", IsAudioPlayingResult)
} else {
rawAction("com.apple.ShortcutsActions.SetSilentModeAction", {
"AppIntentDescriptor": "",
"operation": "toggle"
})
}
Ratings & Reviews
Write a ReviewNo reviews yet. Be the first to share what you think!