ShareShortcuts
Fazer fork de “Action Button (Toggle)”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que medieval-kenieval receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
10K
Salvo
1
Ações
6
Categoria
API
Versão
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

Novidades

Versão 1.0

First release

Histórico de versões
1.0 26 de out de 2025

First release

O que ele faz

6 ações
  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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de medieval-kenieval

Ver tudo

Você também pode gostar

Ver tudo
Publicidade