ShareShortcuts

Action Button (Toggle)

medieval-kenieval
Fork “Action Button (Toggle)”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so medieval-kenieval gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
10K
Saved
1
Actions
6
Category
API
Version
1.0
Language
EN

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

Version 1.0

First release

Version History
1.0 Oct 26, 2025

First release

What it does

6 actions
  1. Is Audio Playing
    com.alexhay.ToolboxProForShortcuts
  2. If
  3. Play/Pause
  4. Run Shortcut
    AirPods
  5. If
  6. Set Silent Mode
    com.apple.ShortcutsActions

View as code
Beta

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"
	})
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by medieval-kenieval

See All

You Might Also Like

See All
Advertisement