Отсканируй на iPhone, чтобы установить
The official Apple Shortcut to view your total amount of screen time and make shortcuts with This one is just to preview it, so please use the DEV versions of this shortcut to make apple shortcuts with it
Что нового
Версия 1.0
First release
Что делает
Действий: 29-
Get Website & App Activitycom.apple.intelligenceplatform.IntelligencePlatform.IntelligencePlatformDataActionsAppIntentsExtension
-
Text
-
Split Text
-
Calculate Statistics
-
Split Text
-
Get Item from List
-
Text
-
Get Item from List
-
Text
-
Calculate
-
Text
-
Split Text
-
Get Item from List
-
Text
-
Get Item from List
-
Text
-
Calculate
-
Round Number
-
Text
-
Text
-
Choose from MenuPreview Options (…)
-
Choose from MenuShow Content (Small Popup)
-
Show Result
-
Choose from MenuQuick Look (Full Screen Popup)
-
Quick Look
-
Choose from MenuRerun Shortcut
-
Run ShortcutRun Script 4
-
Choose from MenuExit
-
Stop This Shortcut
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/math'
#include 'actions/device'
#define color lightblue
#define glyph hourglass
getDeviceUsage("all", "today")
const Text = "{['totalDuration']}"
const SplitText = splitText(Text, "
")
const Sum = statistic("Sum", nil)
const SplitText1 = splitText(Sum, ".")
getListItem(SplitText1, 0)
getListItem(SplitText1, 0)
const Text1 = "0.{}"
const Text2 = "{}"
const SplitText2 = splitText(Text2, ".")
getRandomItem(SplitText2)
getListItem(SplitText2, 0)
const Text3 = "0.{}"
const CalculationResult = Text3 * 60
round(CalculationResult)
const Text4 = "{} {} {}"
menu "Preview Options ({Text4})" {
item "Show Content (Small Popup)":
show(Text4)
item "Quick Look (Full Screen Popup)":
quicklook(Text4)
item "Rerun Shortcut":
runSelf()
item "Exit":
stop()
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от coltensus
Вам также может понравиться
Реклама