Отсканируй на iPhone, чтобы установить
This shortcut will get the URL Scheme from an IPA, select the file and the shortcut will copy the URL Scheme to the clipboard.
Что нового
Версия 1.0
First release
Что делает
Действий: 51-
List
-
Set VariableDelete
-
Get File
-
Extract Archive
-
Set VariableFile
-
Count
-
If
-
Repeat with Each
-
Get Name
-
If
-
Set Name
-
Save File
-
Add to Variable
-
CommentiCloud won't update immediately.
-
Wait
-
Get File
-
Repeat with Each
-
Get Details of Files
-
If
-
Get Variable
-
Set VariableFile
-
Save File
-
Add to Variable
-
Get Name
-
Set VariableName
-
List
-
Set VariableURLs
-
Get File
-
Set VariableFile
-
If
-
If
-
Get File
-
Set VariableFile
-
Get Dictionary from Input
-
Get Dictionary Value
-
Repeat with Each
-
Get Dictionary Value
-
Text
-
Add to Variable
-
Count
-
If
-
Show Alert
-
Stop This Shortcut
-
If
-
Get Item from List
-
Show Alert
-
If
-
Choose from List
-
Copy to Clipboard
-
Repeat with Each
-
Delete Files
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/sharing'
#include 'actions/documents'
#define color green
#define glyph globe
list()
@Delete = ShortcutInput
const File = getFileFromFolder(, "")
extractArchive(File)
@File
const Count = count(@File, "Items")
if Count > 1 {
for _ in @File {
const Name = getName(@RepeatItem)
if Name == "Payload" {
const RenamedItem = setName(@RepeatItem, "324bc7c4-21fc-49c1-96e2-b761d294de1d")
saveFile("", RenamedItem, true)
@Delete
// iCloud won't update immediately.
wait(0)
const File1 = getFile("324bc7c4-21fc-49c1-96e2-b761d294de1d")
for _ in File1 {
const FileExtension = getFileDetail(nil, "File Extension")
if FileExtension == "app" {
// TODO: Get Variable not supported: Assign variable here to '@RepeatItem2'.
@File = @RepeatItem2
}
}
}
}
}
saveFile("", @File, true)
@Delete
getName(@File)
@Name
list()
@URLs = nil
getFile("{@Name}.app/info.plist", false)
@File
if @File contains @File {
} else {
getFile("{@Name}.app/Info.plist")
@File
}
const Dictionary = getDictionary(@File)
const DictionaryValue = getValue(Dictionary, "CFBundleURLTypes")
for _ in DictionaryValue {
@URLs += "{}://"
}
const Count1 = count(@URLs, "Items")
if Count1 contains "0" {
alert("This app doesn't have a URL scheme.", "")
stop()
}
if IfResult == 2 {
getFirstItem(@URLs)
alert("URL {} sent to the clipboard.", "")
} else {
chooseFromList(@URLs, "Choose which URL is going to be copied to the clipboard.")
}
setClipboard(IfResult1)
for _ in @Delete {
deleteFiles(@RepeatItem)
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от hunter9888x
Вам также может понравиться
Реклама