Scan with your iPhone to install
Preview
Enable/disable background sounds
What's New
Version 1.1
Some housecleaning
What it does
11 actions-
CommentThis 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.
-
CommentThis also sets the default volume of background sounds down a bit as the original default is quite loud.
-
A X Set Background Sound Volumecom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Choose from MenuOn or Off?
-
Choose from MenuON / Change sound
-
A X Set Background Soundcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Wait
-
A X Toggle Background Soundscom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Choose from MenuOFF
-
A X Toggle Background Soundscom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Stop This Shortcut
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#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()
}
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 te55eract
You Might Also Like
Advertisement