Отсканируй на iPhone, чтобы установить
The official Apple Shortcut to view your total amount of screen time and make shortcuts with
Use this one to make shortcuts with it
Что нового
Версия 1.0
First release
Что делает
Действий: 19-
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
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/math'
#define color lightblue
#define glyph hourglass
const Text = "{ShortcutInput}"
const SplitText = splitText(Text, "
")
const Sum = statistic("Sum", nil)
const SplitText1 = splitText(Sum, ".")
getListItems(SplitText1, 0, 0)
getLastItem(SplitText1)
const Text1 = "0.{}"
const Text2 = "{}"
const SplitText2 = splitText(Text2, ".")
getListItems(SplitText2, 0, 0)
getListItems(SplitText2, 0, 0)
const Text3 = "0.{}"
const CalculationResult = Text3 * 60
round(CalculationResult)
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от coltensus
Вам также может понравиться
Реклама