Escanea con tu iPhone para instalar
Commands for your iPhone/iPad.
Novedades
Versión 1.1
Added API.
Qué hace
77 acciones-
Text
-
Set VariableHelp v1.1
-
Text
-
If
-
Nothing
-
If
-
If
-
Get File
-
URLsimplecuts.glitch.me/updates/commander.json
-
Get Contents of URL…
-
Get Text from Input
-
Set VariableAutoUpdate
-
If
-
If
-
If
-
If
-
Choose from MenuA commander update is available!
-
Choose from MenuInstall
-
Get Dictionary Value
-
Show Web Page
-
Stop This Shortcut
-
Choose from MenuDetails
-
Get Dictionary Value
-
Get Dictionary Value
-
Text
-
Choose from Menu…
-
Choose from MenuInstall
-
Get Dictionary Value
-
Show Web Page
-
Stop This Shortcut
-
Choose from MenuSkip
-
Save File
-
Choose from MenuSkip
-
Get Dictionary Value
-
Save File
-
If
-
Set Variableinvalidsyntax
-
Show Alert
-
Get Device Details
-
If
-
Show Alert
-
Get Device Details
-
If
-
Split Text
-
Get Item from List
-
Get Text from Input
-
If
-
Ask for InputCommander on iOS …, …
-
Set VariableCommand-er
-
If
-
Replace Text
-
Speak Text
-
Run ShortcutCommander v1
-
If
-
If
-
Get Contents of URLsimplecuts.glitch.me/updates/commander.json
-
Get Dictionary Value
-
Open URLs
-
Stop This Shortcut
-
If
-
If
-
Show AlertTime
-
Run ShortcutCommander v1
-
If
-
If
-
Show AlertDate
-
Run ShortcutCommander v1
-
If
-
If
-
Show Result
-
Run ShortcutCommander v1
-
If
-
If
-
Replace Text
-
Get File
-
Stop This Shortcut
-
Run ShortcutCommander v1
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#include 'actions/web'
#define color red
#define glyph documentFilled
@HelpV11 = "• Commander •\nsay - Says anything.\n(e.g. say Commander is the best!)\nupdate - If you enabled Manual Update, this command works.\nhelp - Heres what you are viewing.\ntime - Here's the time\ndate - Here's the date.\n\nEnd of Commander help list\n\nStart of Commander API list\nTo use Commander API, run this shortcut with input \\"Commander -(command)\\" and it will execute.\n\nNew commands in API only:\n- getfile (file path in /Shortcuts/)"
const updatescommander = "MANUAL"
if updatescommander contains "MANUAL" {
} else {
if updatescommander contains "AUTO" {
const File = getFileFromFolder(, "skipper.txt", false)
url("simplecuts.glitch.me/updates/commander.json")
const ContentsOfURL = downloadURL()
getText(ContentsOfURL)
@AutoUpdate
if @AutoUpdate contains "1.1" {
} else {
if File {
} else {
menu "A commander update is available!" {
item "Install":
const DictionaryValue = getValue(@AutoUpdate, "URL")
showWebpage(DictionaryValue)
stop()
item "Details":
const DictionaryValue2 = getValue(@AutoUpdate, "NewVer")
menu {
item "Install":
const DictionaryValue1 = getValue(@AutoUpdate, "URL")
showWebpage(DictionaryValue1)
stop()
item "Skip":
saveFile("skipper.txt", DictionaryValue2, true)
}
item "Skip":
const DictionaryValue3 = getValue(@AutoUpdate, "NewVer")
saveFile("skipper.txt", DictionaryValue3, true)
}
}
}
} else {
@invalidsyntax = updatescommander
confirm("Invalid update syntax. Using manual instead.")
}
}
const sysver = getDeviceDetail("System Version")
if sysver contains "12" {
confirm("Shortcuts is too old. Please run on a newer version of iOS.")
}
const sysname = getDeviceDetail("Device Name")
if ShortcutInput {
const SplitText = splitText(sysname, "Commander -")
const ItemFromList = getListItem(SplitText, 2)
getText(ItemFromList)
} else {
prompt("Commander on iOS {sysver}, {sysname}")
}
@Commander
if @Commander contains "say" {
replaceText("say ", "", @Commander)
speak()
runSelf()
} else {
if @Commander contains "update" {
const ContentsOfURL1 = downloadURL("simplecuts.glitch.me/updates/commander.json")
const DictionaryValue4 = getValue(ContentsOfURL1, "URL")
openURL(DictionaryValue4)
stop()
} else {
if @Commander contains "time" {
alert(CurrentDate, "Time")
runSelf()
} else {
if @Commander contains "date" {
alert(CurrentDate, "Date")
runSelf()
} else {
if @Commander == "help" {
show(@HelpV11)
runSelf()
} else {
if @Commander contains "getfile" {
replaceText("getfile ", "", @Commander)
const File1 = getFile()
stop()
}
runSelf()
}
}
}
}
}
Abrir en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
Más de turtle
También te puede gustar
Publicidad