Scan with your iPhone to install
Preview
Set and Reset your alarm for 30 minutes, each 5 minutes apart. To avoid duplicity the shortcut will delete all alarms and create new. Also an option to delete all the alarms without setting a new one
What's New
Version 1.0
First release
What it does
10 actions-
Get Alarmscom.apple.mobiletimer-framework.MobileTimerIntents
-
If
-
Run ShortcutSet new Alarm
-
If
-
Choose from MenuWhat do you want?
-
Choose from MenuDelete alarms and set new ones
-
Delete Alarmcom.apple.mobiletimer
-
Run ShortcutSet new Alarm
-
Choose from MenuDelete the alarms
-
Delete Alarmcom.apple.mobiletimer
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/calendar'
#define color darkorange
const Alarm = getAlarms()
if !Alarm {
runSelf(ShortcutResult)
} else {
menu "What do you want?" {
item "Delete alarms and set new ones":
rawAction("com.apple.mobiletimer.DeleteAlarmIntent", {
"AppIntentDescriptor": "",
"entities": "Alarm"
})
run("Set new Alarm", ShortcutResult)
item "Delete the alarms":
rawAction("com.apple.mobiletimer.DeleteAlarmIntent", {
"AppIntentDescriptor": "",
"entities": "Alarm"
})
}
}
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