Отсканируй на iPhone, чтобы установить
This will Install a shortcut where you can watch anything!
Что нового
Версия 1.0
First release
Что делает
Действий: 16-
Show Result
-
Get My Shortcuts
-
Get Text from Input
-
If
-
Choose from MenuYou already installed the shortcut! Please choose one:
-
Choose from MenuReinstall
-
Text
-
Open URLs
-
Choose from MenuQuit
-
Stop This Shortcut
-
If
-
Choose from MenuOk, Let's Install!
-
Choose from MenuInstall
-
Text
-
Open URLs
-
Choose from MenuQuit
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/web'
#include 'actions/text'
#include 'actions/shortcuts'
#define color darkblue
#define glyph play
show("If you already have the shortcut, there is no need to use this installer! If you don't have the shortcut, I would recommend you to use this installer!")
const MyShortcuts = getShortcuts()
const Text = getText(MyShortcuts)
if Text contains "Stream Anywhere" {
menu "You already installed the shortcut! Please choose one:" {
item "Reinstall":
const Text1 = "https://www.icloud.com/shortcuts/0d02af7b73f94d0191514fc0679f3029"
openURL(Text1)
item "Quit":
stop()
}
} else {
}
menu "Ok, Let's Install!" {
item "Install":
const Text2 = "https://www.icloud.com/shortcuts/0d02af7b73f94d0191514fc0679f3029"
openURL(Text2)
item "Quit":
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от vultario
Вам также может понравиться
Реклама