If you don’t know what the codes are check the command I’ll have all the codes there and if you don’t know what it does it’s basically let you turn off and turn on Pacific stuff
What's New
Version 1.0
First release
What it does
21 actions-
Ask for InputEnter code
-
If
-
Set Airplane Mode
-
If
-
Set Bluetooth
-
If
-
Set Wi-Fi
-
If
-
Set Silent Modecom.apple.ShortcutsActions
-
If
-
Set Low Power Mode
-
If
-
Show Control Centercom.apple.ShortcutsActions
-
If
-
Set AirDrop
-
If
-
Lock Screen
-
If
-
Set Appearance
-
If
-
Set Orientation Lock
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define mac false
#include 'actions/device'
#define color violet
const ProvidedInput = prompt("Enter code", "Number")
if ProvidedInput == 1234 {
setAirplaneMode(false)
}
if ProvidedInput == 1111 {
setBluetooth(false)
}
if ProvidedInput == 2222 {
setWifi(false)
}
if ProvidedInput == 3333 {
rawAction("com.apple.ShortcutsActions.SetSilentModeAction", {
"AppIntentDescriptor": "",
"operation": "toggle"
})
}
if ProvidedInput == 4444 {
setLowPowerMode(false)
}
if ProvidedInput == 5555 {
showControlCenter()
}
if ProvidedInput == 6666 {
setAirdropReceiving("Off")
}
if ProvidedInput == 7777 {
lockScreen()
}
if ProvidedInput == 8888 {
darkMode()
}
if ProvidedInput == 9999 {
setOrientationLock(false)
}
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
You Might Also Like
Advertisement