Отсканируй на iPhone, чтобы установить
Просмотр
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
Что нового
Версия 1.0
First release
Что делает
Действий: 10-
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
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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"
})
}
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Вам также может понравиться
Реклама