ShareShortcuts

Action Button (Toggle)

medieval-kenieval
Bifurcar “Action Button (Toggle)”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que medieval-kenieval reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
10K
Guardado
1
Acciones
6
Categoría
API
Versión
1.0
Idioma
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

Novedades

Versión 1.0

First release

Historial de versiones
1.0 26 de oct. de 2025

First release

Qué hace

6 acciones
  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

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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"
	})
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de medieval-kenieval

Ver todo

También te puede gustar

Ver todo
Publicidad