Mit dem iPhone scannen, um zu installieren
A programming language made using Shortcuts
Neue Funktionen
Version 1.0
First release
Was er macht
35 Aktionen-
Dictionary
-
Select File
-
Split Text
-
Repeat with Each
-
If
-
Split Text
-
Get Item from List
-
Combine Text
-
Show Result
-
If
-
If
-
Split Text
-
Get Item from List
-
Set VariablebufferVariable
-
Get Item from List
-
Set Dictionary Value
-
Set VariablebufferVariable
-
If
-
If
-
Split Text
-
Get Item from List
-
Get Dictionary Value
-
Combine Text
-
Show Result
-
If
-
If
-
Split Text
-
Get Item from List
-
Set VariablebufferVariable
-
Get Item from List
-
Combine Text
-
Ask for Input…
-
Set Dictionary Value
-
Set VariablebufferVariable
-
If
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#include 'actions/documents'
#define color darkblue
const File = selectFile(false)
const SplitText = splitText(File, "
")
for _ in SplitText {
if @RepeatItem beginsWith "echo" {
const SplitText1 = splitText(@RepeatItem, " ")
const ItemFromList = getListItems(SplitText1, 2, 0)
joinText(ItemFromList, " ")
show()
} else {
if @RepeatItem beginsWith "svar" {
const SplitText2 = splitText(@RepeatItem, " ")
getListItem(SplitText2, 2)
@bufferVariable
getListItem(SplitText2, 3)
const Dictionary = setValue(Dictionary, @bufferVariable)
@bufferVariable = nil
} else {
if @RepeatItem beginsWith "evar" {
const SplitText3 = splitText(@RepeatItem, " ")
getListItem(SplitText3, 2)
const DictionaryValue = getValue(Dictionary)
joinText(DictionaryValue, " ")
show()
} else {
if @RepeatItem beginsWith "sinput" {
const SplitText4 = splitText(@RepeatItem, " ")
getListItem(SplitText4, 2)
@bufferVariable
const ItemFromList1 = getListItems(SplitText4, 3, 0)
joinText(ItemFromList1, " ")
prompt()
const Dictionary1 = setValue(Dictionary1, @bufferVariable)
@bufferVariable = nil
} else {
}
}
}
}
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Das gefällt dir vielleicht auch
Werbung