Mit dem iPhone scannen, um zu installieren
Extract key/values from a dictionary action. Can someone do the opposite? (Take a list of keys/values and import them into a dictionary action)
Neue Funktionen
Version 1.0
First release
Was er macht
11 Aktionen-
Choose from Menu
-
Choose from MenuKeys
-
Dictionary
-
Get Dictionary Value
-
Combine Text
-
Quick Look
-
Choose from MenuValues
-
Dictionary
-
Get Dictionary Value
-
Combine Text
-
Quick Look
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#define color taupe
#define glyph lifePreserver
menu nil {
item "Keys":
const Dictionary = {
"Eight": "8",
"Five": "5",
"Four": "4",
"Nine": "9",
"One": "1",
"Seven": "7",
"Six": "6",
"Ten": "10",
"Three": "3",
"Two": "2"
}
const DictionaryValue = getKeys(Dictionary)
const CombinedText = joinText(DictionaryValue)
quicklook(CombinedText)
item "Values":
const Dictionary1 = {
"Eight": "8",
"Five": "5",
"Four": "4",
"Nine": "9",
"One": "1",
"Seven": "7",
"Six": "6",
"Ten": "10",
"Three": "3",
"Two": "2"
}
const DictionaryValue1 = getValues(Dictionary1)
const CombinedText1 = joinText(DictionaryValue1)
quicklook(CombinedText1)
}
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
Mehr von theslug
Das gefällt dir vielleicht auch
Werbung