ShareShortcuts

Background Sounds

Enable/disable background sounds

te55eract
Dupliquer « Background Sounds »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que te55eract soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
12K
Enregistré
0
Actions
11
Catégorie
API
Version
1.1
Langue
EN

Aperçu

Enable/disable background sounds

Nouveautés

Version 1.1

Some housecleaning

Historique des versions
1.1 4 nov. 2025

Some housecleaning

1.0 17 août 2025

First release

Ce qu’il fait

11 actions
  1. Comment
    This shortcut allows you to enable Background Sounds and choose what plays. By running a second time and choosing ‘ON’ again you can change the sound. Run the shortcut again and choose ‘OFF’ to turn it off.
  2. Comment
    This also sets the default volume of background sounds down a bit as the original default is quite loud.
  3. A X Set Background Sound Volume
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  4. Choose from Menu
    On or Off?
  5. Choose from Menu
    ON / Change sound
  6. A X Set Background Sound
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  7. Wait
  8. A X Toggle Background Sounds
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  9. Choose from Menu
    OFF
  10. A X Toggle Background Sounds
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  11. Stop This Shortcut

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#define glyph musicWaveForm

/*
This shortcut allows you to enable Background Sounds and choose what plays. By running a second time and choosing ‘ON’ again you can change the sound. 

Run the shortcut again and choose ‘OFF’ to turn it off.
*/
// This also sets the default volume of background sounds down a bit as the original default is quite loud. 

rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXSetBackgroundSoundVolumeIntent", {
	"volumeValue": 30.120772123336792
})

menu "On or Off?" {
item "ON / Change sound":
	rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXSetBackgroundSoundIntent", {
		"backgroundSound": "Ask"
	})
	wait(0)
	rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXToggleBackgroundSoundsIntent", {
		"operation": "turn",
		"setting": "backgroundSounds",
		"state": 1
	})
item "OFF":
	rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXToggleBackgroundSoundsIntent", {
		"operation": "turn",
		"setting": "backgroundSounds",
		"state": 0
	})
	stop()
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de te55eract

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité