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
Neue Funktionen
First release
Was er macht
6 Aktionen-
Is Audio Playingcom.alexhay.ToolboxProForShortcuts
-
If
-
Play/Pause
-
Run ShortcutAirPods
-
If
-
Set Silent Modecom.apple.ShortcutsActions
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#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"
})
}
Bewertungen und Rezensionen
Rezension schreibenNo reviews yet. Be the first to share what you think!